in partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/model/products_product_id_packageconfigurations_package_configuration_id_get200_response.py [0:0]
def __init__(self, *args, **kwargs): # noqa: E501
"""ProductsProductIDPackageconfigurationsPackageConfigurationIDGet200Response - a model defined in OpenAPI
Keyword Args:
_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,)
resource_type (str): [optional] if omitted the server will use the default value of "AzureResourceManagerTestDrivePackageConfiguration" # noqa: E501
id (str): [optional] # noqa: E501
odata_etag (str): [optional] # noqa: E501
package_type (str): [optional] # noqa: E501
application_installation_uri (str): [optional] # noqa: E501
package_references ([MicrosoftIngestionApiModelsCommonTypeValuePair]): [optional] # noqa: E501
base_license_model (str): [optional] # noqa: E501
require_s2_s_outbound_and_crm_secure_store_access (bool, none_type): [optional] # noqa: E501
application_configuration_uri (str): [optional] # noqa: E501
package_location_uri (str): [optional] # noqa: E501
package_region_availabilities ([MicrosoftIngestionApiModelsPackagesPackageRegionAvailability]): [optional] # noqa: E501
multiple_packages_in_package_file (bool, none_type): [optional] # noqa: E501
release_version (str): [optional] # noqa: E501
solution_identifier (str): [optional] # noqa: E501
azure_active_directory_application_id (str): [optional] # noqa: E501
azure_active_directory_application_key (str): [optional] # noqa: E501
azure_active_directory_tenant_id (str): [optional] # noqa: E501
test_drive_duration (int, none_type): [optional] # noqa: E501
azure_active_directory_tenant_name (str): [optional] # noqa: E501
max_concurrent_test_drives (int, none_type): [optional] # noqa: E501
instance_uri (str): [optional] # noqa: E501
role_name (str): [optional] # noqa: E501
instance_web_api_uri (str): [optional] # noqa: E501
trial_legal_entity (str): [optional] # noqa: E501
version (str): [optional] # noqa: E501
allow_jit_access (bool, none_type): [optional] # noqa: E501
can_enable_customer_actions (bool, none_type): [optional] # noqa: E501
allowed_customer_actions ([str]): [optional] # noqa: E501
public_azure_tenant_id (str): [optional] # noqa: E501
public_azure_authorizations ([MicrosoftIngestionApiModelsPackagesRoleAuthorization]): [optional] # noqa: E501
azure_government_tenant_id (str): [optional] # noqa: E501
azure_government_authorizations ([MicrosoftIngestionApiModelsPackagesRoleAuthorization]): [optional] # noqa: E501
policies ([MicrosoftIngestionApiModelsPackagesAzurePolicy]): [optional] # noqa: E501
regions ([str]): [optional] # noqa: E501
hot_instances (int, none_type): [optional] # noqa: E501
warm_instances (int, none_type): [optional] # noqa: E501
cold_instances (int, none_type): [optional] # noqa: E501
azure_subscription_id (str): [optional] # noqa: E501
"""
_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:
for arg in args:
if isinstance(arg, dict):
kwargs.update(arg)
else:
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,
}
composed_info = validate_get_composed_info(
constant_args, kwargs, self)
self._composed_instances = composed_info[0]
self._var_name_to_model_instances = composed_info[1]
self._additional_properties_model_instances = composed_info[2]
discarded_args = composed_info[3]
for var_name, var_value in kwargs.items():
if var_name in discarded_args and \
self._configuration is not None and \
self._configuration.discard_unknown_keys and \
self._additional_properties_model_instances:
# discard variable.
continue
setattr(self, var_name, var_value)
if var_name in self.read_only_vars:
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
f"class with read only attributes.")