models_v2.network_port_group module

class models_v2.network_port_group.NetworkPortGroup(id=None, name=None)[source]

Bases: object

Implementation of the ‘NetworkPortGroup’ model.

Specifies the network port group (i.e, either a standard switch port group or a distributed port group) that will attached to the recovered Object. This parameter is mandatory if detach network is specified as false.

Attributes:

id (long|int): Specifies the id of the object. name (string): Specifies the name of the object.

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.