@convert_js_args_to_python_args
def __init__(self, *args, **kwargs):
    'ComputeVmediaRelationship - a model defined in OpenAPI\n\n        Args:\n\n        Keyword Args:\n            class_id (str): The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data.. defaults to "mo.MoRef", must be one of ["mo.MoRef", ]  # noqa: E501\n            _check_type (bool): if True, values for parameters in openapi_types\n                                will be type checked and a TypeError will be\n                                raised if the wrong type is input.\n                                Defaults to True\n            _path_to_item (tuple/list): This is a list of keys or values to\n                                drill down to the model in received_data\n                                when deserializing a response\n            _spec_property_naming (bool): True if the variable names in the input data\n                                are serialized names, as specified in the OpenAPI document.\n                                False if the variable names in the input data\n                                are pythonic names, e.g. snake case (default)\n            _configuration (Configuration): the instance to use when\n                                deserializing a file_type parameter.\n                                If passed, type conversion is attempted\n                                If omitted no type conversion is done.\n            _visited_composed_classes (tuple): This stores a tuple of\n                                classes that we have traveled through so that\n                                if we see that class again we will not use its\n                                discriminator again.\n                                When traveling through a discriminator, the\n                                composed schema that is\n                                is traveled through is added to this set.\n                                For example if Animal has a discriminator\n                                petType and we pass in "Dog", and the class Dog\n                                allOf includes Animal, we move through Animal\n                                once using the discriminator, and pick Dog.\n                                Then in Dog, we will make an instance of the\n                                Animal class but this time we won\'t travel\n                                through its discriminator because we passed in\n                                _visited_composed_classes = (Animal,)\n            moid (str): The Moid of the referenced REST resource.. [optional]  # noqa: E501\n            selector (str): An OData $filter expression which describes the REST resource to be referenced. This field may be set instead of \'moid\' by clients. 1. If \'moid\' is set this field is ignored. 1. If \'selector\' is set and \'moid\' is empty/absent from the request, Intersight determines the Moid of the resource matching the filter expression and populates it in the MoRef that is part of the object instance being inserted/updated to fulfill the REST request. An error is returned if the filter matches zero or more than one REST resource. An example filter string is: Serial eq \'3AA8B7T11\'.. [optional]  # noqa: E501\n            link (str): A URL to an instance of the \'mo.MoRef\' class.. [optional]  # noqa: E501\n            account_moid (str): The Account ID for this managed object.. [optional]  # noqa: E501\n            create_time (datetime): The time when this managed object was created.. [optional]  # noqa: E501\n            domain_group_moid (str): The DomainGroup ID for this managed object.. [optional]  # noqa: E501\n            mod_time (datetime): The time when this managed object was last modified.. [optional]  # noqa: E501\n            owners ([str], none_type): [optional]  # noqa: E501\n            shared_scope (str): Intersight provides pre-built workflows, tasks and policies to end users through global catalogs. Objects that are made available through global catalogs are said to have a \'shared\' ownership. Shared objects are either made globally available to all end users or restricted to end users based on their license entitlement. Users can use this property to differentiate the scope (global or a specific license tier) to which a shared MO belongs.. [optional]  # noqa: E501\n            tags ([MoTag], none_type): [optional]  # noqa: E501\n            version_context (MoVersionContext): [optional]  # noqa: E501\n            ancestors ([MoBaseMoRelationship], none_type): An array of relationships to moBaseMo resources.. [optional]  # noqa: E501\n            parent (MoBaseMoRelationship): [optional]  # noqa: E501\n            permission_resources ([MoBaseMoRelationship], none_type): An array of relationships to moBaseMo resources.. [optional]  # noqa: E501\n            display_names (DisplayNames): [optional]  # noqa: E501\n            device_mo_id (str): The database identifier of the registered device of an object.. [optional]  # noqa: E501\n            dn (str): The Distinguished Name unambiguously identifies an object in the system.. [optional]  # noqa: E501\n            rn (str): The Relative Name uniquely identifies an object within a given context.. [optional]  # noqa: E501\n            enabled (bool): State of the Virtual Media service on the server.. [optional] if omitted the server will use the default value of True  # noqa: E501\n            encryption (bool): If enabled, allows encryption of all Virtual Media communications.. [optional]  # noqa: E501\n            low_power_usb (bool): If enabled, the virtual drives appear on the boot selection menu after mapping the image and rebooting the host.. [optional] if omitted the server will use the default value of True  # noqa: E501\n            compute_physical_unit (ComputePhysicalRelationship): [optional]  # noqa: E501\n            inventory_device_info (InventoryDeviceInfoRelationship): [optional]  # noqa: E501\n            mappings ([ComputeMappingRelationship], none_type): An array of relationships to computeMapping resources.. [optional]  # noqa: E501\n            registered_device (AssetDeviceRegistrationRelationship): [optional]  # noqa: E501\n            object_type (str): The fully-qualified name of the remote type referred by this relationship.. [optional]  # noqa: E501\n        '
    class_id = kwargs.get('class_id', 'mo.MoRef')
    _check_type = kwargs.pop('_check_type', True)
    _spec_property_naming = kwargs.pop('_spec_property_naming', False)
    _path_to_item = kwargs.pop('_path_to_item', ())
    _configuration = kwargs.pop('_configuration', None)
    _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
    if args:
        raise ApiTypeError(('Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments.' % (args, self.__class__.__name__)), path_to_item=_path_to_item, valid_classes=(self.__class__,))
    self._data_store = {}
    self._check_type = _check_type
    self._spec_property_naming = _spec_property_naming
    self._path_to_item = _path_to_item
    self._configuration = _configuration
    self._visited_composed_classes = (_visited_composed_classes + (self.__class__,))
    constant_args = {'_check_type': _check_type, '_path_to_item': _path_to_item, '_spec_property_naming': _spec_property_naming, '_configuration': _configuration, '_visited_composed_classes': self._visited_composed_classes}
    required_args = {'class_id': class_id}
    model_args = {}
    model_args.update(required_args)
    model_args.update(kwargs)
    composed_info = validate_get_composed_info(constant_args, model_args, self)
    self._composed_instances = composed_info[0]
    self._var_name_to_model_instances = composed_info[1]
    self._additional_properties_model_instances = composed_info[2]
    unused_args = composed_info[3]
    for (var_name, var_value) in required_args.items():
        setattr(self, var_name, var_value)
    for (var_name, var_value) in kwargs.items():
        if ((var_name in unused_args) and (self._configuration is not None) and self._configuration.discard_unknown_keys and (not self._additional_properties_model_instances)):
            continue
        setattr(self, var_name, var_value)
ComputeVmediaRelationship - a model defined in OpenAPI

Args:

Keyword Args:
    class_id (str): The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data.. defaults to "mo.MoRef", must be one of ["mo.MoRef", ]  # noqa: E501
    _check_type (bool): if True, values for parameters in openapi_types
                        will be type checked and a TypeError will be
                        raised if the wrong type is input.
                        Defaults to True
    _path_to_item (tuple/list): This is a list of keys or values to
                        drill down to the model in received_data
                        when deserializing a response
    _spec_property_naming (bool): True if the variable names in the input data
                        are serialized names, as specified in the OpenAPI document.
                        False if the variable names in the input data
                        are pythonic names, e.g. snake case (default)
    _configuration (Configuration): the instance to use when
                        deserializing a file_type parameter.
                        If passed, type conversion is attempted
                        If omitted no type conversion is done.
    _visited_composed_classes (tuple): This stores a tuple of
                        classes that we have traveled through so that
                        if we see that class again we will not use its
                        discriminator again.
                        When traveling through a discriminator, the
                        composed schema that is
                        is traveled through is added to this set.
                        For example if Animal has a discriminator
                        petType and we pass in "Dog", and the class Dog
                        allOf includes Animal, we move through Animal
                        once using the discriminator, and pick Dog.
                        Then in Dog, we will make an instance of the
                        Animal class but this time we won't travel
                        through its discriminator because we passed in
                        _visited_composed_classes = (Animal,)
    moid (str): The Moid of the referenced REST resource.. [optional]  # noqa: E501
    selector (str): An OData $filter expression which describes the REST resource to be referenced. This field may be set instead of 'moid' by clients. 1. If 'moid' is set this field is ignored. 1. If 'selector' is set and 'moid' is empty/absent from the request, Intersight determines the Moid of the resource matching the filter expression and populates it in the MoRef that is part of the object instance being inserted/updated to fulfill the REST request. An error is returned if the filter matches zero or more than one REST resource. An example filter string is: Serial eq '3AA8B7T11'.. [optional]  # noqa: E501
    link (str): A URL to an instance of the 'mo.MoRef' class.. [optional]  # noqa: E501
    account_moid (str): The Account ID for this managed object.. [optional]  # noqa: E501
    create_time (datetime): The time when this managed object was created.. [optional]  # noqa: E501
    domain_group_moid (str): The DomainGroup ID for this managed object.. [optional]  # noqa: E501
    mod_time (datetime): The time when this managed object was last modified.. [optional]  # noqa: E501
    owners ([str], none_type): [optional]  # noqa: E501
    shared_scope (str): Intersight provides pre-built workflows, tasks and policies to end users through global catalogs. Objects that are made available through global catalogs are said to have a 'shared' ownership. Shared objects are either made globally available to all end users or restricted to end users based on their license entitlement. Users can use this property to differentiate the scope (global or a specific license tier) to which a shared MO belongs.. [optional]  # noqa: E501
    tags ([MoTag], none_type): [optional]  # noqa: E501
    version_context (MoVersionContext): [optional]  # noqa: E501
    ancestors ([MoBaseMoRelationship], none_type): An array of relationships to moBaseMo resources.. [optional]  # noqa: E501
    parent (MoBaseMoRelationship): [optional]  # noqa: E501
    permission_resources ([MoBaseMoRelationship], none_type): An array of relationships to moBaseMo resources.. [optional]  # noqa: E501
    display_names (DisplayNames): [optional]  # noqa: E501
    device_mo_id (str): The database identifier of the registered device of an object.. [optional]  # noqa: E501
    dn (str): The Distinguished Name unambiguously identifies an object in the system.. [optional]  # noqa: E501
    rn (str): The Relative Name uniquely identifies an object within a given context.. [optional]  # noqa: E501
    enabled (bool): State of the Virtual Media service on the server.. [optional] if omitted the server will use the default value of True  # noqa: E501
    encryption (bool): If enabled, allows encryption of all Virtual Media communications.. [optional]  # noqa: E501
    low_power_usb (bool): If enabled, the virtual drives appear on the boot selection menu after mapping the image and rebooting the host.. [optional] if omitted the server will use the default value of True  # noqa: E501
    compute_physical_unit (ComputePhysicalRelationship): [optional]  # noqa: E501
    inventory_device_info (InventoryDeviceInfoRelationship): [optional]  # noqa: E501
    mappings ([ComputeMappingRelationship], none_type): An array of relationships to computeMapping resources.. [optional]  # noqa: E501
    registered_device (AssetDeviceRegistrationRelationship): [optional]  # noqa: E501
    object_type (str): The fully-qualified name of the remote type referred by this relationship.. [optional]  # noqa: E501
@convert_js_args_to_python_args
def __init__(self, *args, **kwargs):
    'ComputeVmediaRelationship - a model defined in OpenAPI\n\n        Args:\n\n        Keyword Args:\n            class_id (str): The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data.. defaults to "mo.MoRef", must be one of ["mo.MoRef", ]  # noqa: E501\n            _check_type (bool): if True, values for parameters in openapi_types\n                                will be type checked and a TypeError will be\n                                raised if the wrong type is input.\n                                Defaults to True\n            _path_to_item (tuple/list): This is a list of keys or values to\n                                drill down to the model in received_data\n                                when deserializing a response\n            _spec_property_naming (bool): True if the variable names in the input data\n                                are serialized names, as specified in the OpenAPI document.\n                                False if the variable names in the input data\n                                are pythonic names, e.g. snake case (default)\n            _configuration (Configuration): the instance to use when\n                                deserializing a file_type parameter.\n                                If passed, type conversion is attempted\n                                If omitted no type conversion is done.\n            _visited_composed_classes (tuple): This stores a tuple of\n                                classes that we have traveled through so that\n                                if we see that class again we will not use its\n                                discriminator again.\n                                When traveling through a discriminator, the\n                                composed schema that is\n                                is traveled through is added to this set.\n                                For example if Animal has a discriminator\n                                petType and we pass in "Dog", and the class Dog\n                                allOf includes Animal, we move through Animal\n                                once using the discriminator, and pick Dog.\n                                Then in Dog, we will make an instance of the\n                                Animal class but this time we won\'t travel\n                                through its discriminator because we passed in\n                                _visited_composed_classes = (Animal,)\n            moid (str): The Moid of the referenced REST resource.. [optional]  # noqa: E501\n            selector (str): An OData $filter expression which describes the REST resource to be referenced. This field may be set instead of \'moid\' by clients. 1. If \'moid\' is set this field is ignored. 1. If \'selector\' is set and \'moid\' is empty/absent from the request, Intersight determines the Moid of the resource matching the filter expression and populates it in the MoRef that is part of the object instance being inserted/updated to fulfill the REST request. An error is returned if the filter matches zero or more than one REST resource. An example filter string is: Serial eq \'3AA8B7T11\'.. [optional]  # noqa: E501\n            link (str): A URL to an instance of the \'mo.MoRef\' class.. [optional]  # noqa: E501\n            account_moid (str): The Account ID for this managed object.. [optional]  # noqa: E501\n            create_time (datetime): The time when this managed object was created.. [optional]  # noqa: E501\n            domain_group_moid (str): The DomainGroup ID for this managed object.. [optional]  # noqa: E501\n            mod_time (datetime): The time when this managed object was last modified.. [optional]  # noqa: E501\n            owners ([str], none_type): [optional]  # noqa: E501\n            shared_scope (str): Intersight provides pre-built workflows, tasks and policies to end users through global catalogs. Objects that are made available through global catalogs are said to have a \'shared\' ownership. Shared objects are either made globally available to all end users or restricted to end users based on their license entitlement. Users can use this property to differentiate the scope (global or a specific license tier) to which a shared MO belongs.. [optional]  # noqa: E501\n            tags ([MoTag], none_type): [optional]  # noqa: E501\n            version_context (MoVersionContext): [optional]  # noqa: E501\n            ancestors ([MoBaseMoRelationship], none_type): An array of relationships to moBaseMo resources.. [optional]  # noqa: E501\n            parent (MoBaseMoRelationship): [optional]  # noqa: E501\n            permission_resources ([MoBaseMoRelationship], none_type): An array of relationships to moBaseMo resources.. [optional]  # noqa: E501\n            display_names (DisplayNames): [optional]  # noqa: E501\n            device_mo_id (str): The database identifier of the registered device of an object.. [optional]  # noqa: E501\n            dn (str): The Distinguished Name unambiguously identifies an object in the system.. [optional]  # noqa: E501\n            rn (str): The Relative Name uniquely identifies an object within a given context.. [optional]  # noqa: E501\n            enabled (bool): State of the Virtual Media service on the server.. [optional] if omitted the server will use the default value of True  # noqa: E501\n            encryption (bool): If enabled, allows encryption of all Virtual Media communications.. [optional]  # noqa: E501\n            low_power_usb (bool): If enabled, the virtual drives appear on the boot selection menu after mapping the image and rebooting the host.. [optional] if omitted the server will use the default value of True  # noqa: E501\n            compute_physical_unit (ComputePhysicalRelationship): [optional]  # noqa: E501\n            inventory_device_info (InventoryDeviceInfoRelationship): [optional]  # noqa: E501\n            mappings ([ComputeMappingRelationship], none_type): An array of relationships to computeMapping resources.. [optional]  # noqa: E501\n            registered_device (AssetDeviceRegistrationRelationship): [optional]  # noqa: E501\n            object_type (str): The fully-qualified name of the remote type referred by this relationship.. [optional]  # noqa: E501\n        '
    class_id = kwargs.get('class_id', 'mo.MoRef')
    _check_type = kwargs.pop('_check_type', True)
    _spec_property_naming = kwargs.pop('_spec_property_naming', False)
    _path_to_item = kwargs.pop('_path_to_item', ())
    _configuration = kwargs.pop('_configuration', None)
    _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
    if args:
        raise ApiTypeError(('Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments.' % (args, self.__class__.__name__)), path_to_item=_path_to_item, valid_classes=(self.__class__,))
    self._data_store = {}
    self._check_type = _check_type
    self._spec_property_naming = _spec_property_naming
    self._path_to_item = _path_to_item
    self._configuration = _configuration
    self._visited_composed_classes = (_visited_composed_classes + (self.__class__,))
    constant_args = {'_check_type': _check_type, '_path_to_item': _path_to_item, '_spec_property_naming': _spec_property_naming, '_configuration': _configuration, '_visited_composed_classes': self._visited_composed_classes}
    required_args = {'class_id': class_id}
    model_args = {}
    model_args.update(required_args)
    model_args.update(kwargs)
    composed_info = validate_get_composed_info(constant_args, model_args, self)
    self._composed_instances = composed_info[0]
    self._var_name_to_model_instances = composed_info[1]
    self._additional_properties_model_instances = composed_info[2]
    unused_args = composed_info[3]
    for (var_name, var_value) in required_args.items():
        setattr(self, var_name, var_value)
    for (var_name, var_value) in kwargs.items():
        if ((var_name in unused_args) and (self._configuration is not None) and self._configuration.discard_unknown_keys and (not self._additional_properties_model_instances)):
            continue
        setattr(self, var_name, var_value)