models.static_route module¶
-
class
models.static_route.
StaticRoute
(description=None, is_update=None, network_interface_group=None, network_interface_ids=None, subnet=None, vlan_id=None)[source]¶ Bases:
object
Implementation of the ‘StaticRoute’ model.
Specifies the settings of a Static Route.
- Attributes:
description (string): Specifies a description of the Static Route. is_update (bool): Specifies if the route is currently being updated on
the Cohesity Cluster.
- network_interface_group (string): Specifies the group name of the
network interfaces to use for communicating with the destination subnet.
- network_interface_ids (list of long|int): Array of Network Interface
Ids. Specifies the ids of the network interfaces to use for communicating with the destination subnet.
- subnet (Subnet): Specifies the destination subnet of the Static Route.
The netmask can be specified by setting netmaskBits or netmaskIp4. The netmask can only be set using netmaskIp4 if the IP address is an IPv4 address.
- vlan_id (int): Specifies the ID of the VLAN to use for communication
with the destination subnet.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.
- Returns:
object: An instance of this structure class.