diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/_meta.json b/sdk/mixedreality/azure-mgmt-mixedreality/_meta.json index ed178900391b..9bd07da4e7fe 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/_meta.json +++ b/sdk/mixedreality/azure-mgmt-mixedreality/_meta.json @@ -1,8 +1,11 @@ { - "autorest": "3.3.0", - "use": "@autorest/python@5.6.6", - "commit": "4e6a4ff608dde7a2312d13ce0d939e2126aa86e1", + "autorest": "3.4.5", + "use": [ + "@autorest/python@5.8.4", + "@autorest/modelerfour@4.19.2" + ], + "commit": "1b0cac333a3368600f0b28cbbd6a27f8c24c4c5d", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/mixedreality/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.6 --version=3.3.0", + "autorest_command": "autorest specification/mixedreality/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5", "readme": "specification/mixedreality/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/_metadata.json b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/_metadata.json index 3bce270dec23..15b842334a2c 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/_metadata.json +++ b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/_metadata.json @@ -114,7 +114,7 @@ }, "async": { "coroutine": true, - "signature": "async def check_name_availability_local(\n self,\n location: str,\n check_name_availability: \"_models.CheckNameAvailabilityRequest\",\n **kwargs\n) -\u003e \"_models.CheckNameAvailabilityResponse\":\n", + "signature": "async def check_name_availability_local(\n self,\n location: str,\n check_name_availability: \"_models.CheckNameAvailabilityRequest\",\n **kwargs: Any\n) -\u003e \"_models.CheckNameAvailabilityResponse\":\n", "doc": "\"\"\"Check Name Availability for local uniqueness.\n\n:param location: The location in which uniqueness will be verified.\n:type location: str\n:param check_name_availability: Check Name Availability Request.\n:type check_name_availability: ~azure.mgmt.mixedreality.models.CheckNameAvailabilityRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: CheckNameAvailabilityResponse, or the result of cls(response)\n:rtype: ~azure.mgmt.mixedreality.models.CheckNameAvailabilityResponse\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "location, check_name_availability" diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/_version.py b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/_version.py index c47f66669f1b..8dbbc07e3567 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/_version.py +++ b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0" +VERSION = "0.0.1" diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_mixed_reality_client_operations.py b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_mixed_reality_client_operations.py index 1d435292a426..1539dc2a0f6b 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_mixed_reality_client_operations.py +++ b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_mixed_reality_client_operations.py @@ -24,7 +24,7 @@ async def check_name_availability_local( self, location: str, check_name_availability: "_models.CheckNameAvailabilityRequest", - **kwargs + **kwargs: Any ) -> "_models.CheckNameAvailabilityResponse": """Check Name Availability for local uniqueness. diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_object_anchors_accounts_operations.py b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_object_anchors_accounts_operations.py index 90bb7cccda3d..7fb2189d7a19 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_object_anchors_accounts_operations.py +++ b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_object_anchors_accounts_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ObjectAnchorsAccountPage"]: """List Object Anchors Accounts by Subscription. @@ -110,7 +110,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ObjectAnchorsAccountPage"]: """List Resources by Resource Group. @@ -181,7 +181,7 @@ async def delete( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete an Object Anchors Account. @@ -236,7 +236,7 @@ async def get( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> "_models.ObjectAnchorsAccount": """Retrieve an Object Anchors Account. @@ -295,7 +295,7 @@ async def update( resource_group_name: str, account_name: str, object_anchors_account: "_models.ObjectAnchorsAccount", - **kwargs + **kwargs: Any ) -> "_models.ObjectAnchorsAccount": """Updating an Object Anchors Account. @@ -361,7 +361,7 @@ async def create( resource_group_name: str, account_name: str, object_anchors_account: "_models.ObjectAnchorsAccount", - **kwargs + **kwargs: Any ) -> "_models.ObjectAnchorsAccount": """Creating or Updating an object anchors Account. @@ -430,7 +430,7 @@ async def list_keys( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> "_models.AccountKeys": """List Both of the 2 Keys of an object anchors Account. @@ -489,7 +489,7 @@ async def regenerate_keys( resource_group_name: str, account_name: str, regenerate: "_models.AccountKeyRegenerateRequest", - **kwargs + **kwargs: Any ) -> "_models.AccountKeys": """Regenerate specified Key of an object anchors Account. diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_operations.py b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_operations.py index f89f93a74875..705940147e1b 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_operations.py +++ b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationPage"]: """Exposing Available Operations. diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_remote_rendering_accounts_operations.py b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_remote_rendering_accounts_operations.py index 99afd8c2148e..b1e4e1cb0661 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_remote_rendering_accounts_operations.py +++ b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_remote_rendering_accounts_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RemoteRenderingAccountPage"]: """List Remote Rendering Accounts by Subscription. @@ -110,7 +110,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RemoteRenderingAccountPage"]: """List Resources by Resource Group. @@ -181,7 +181,7 @@ async def delete( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a Remote Rendering Account. @@ -236,7 +236,7 @@ async def get( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> "_models.RemoteRenderingAccount": """Retrieve a Remote Rendering Account. @@ -295,7 +295,7 @@ async def update( resource_group_name: str, account_name: str, remote_rendering_account: "_models.RemoteRenderingAccount", - **kwargs + **kwargs: Any ) -> "_models.RemoteRenderingAccount": """Updating a Remote Rendering Account. @@ -361,7 +361,7 @@ async def create( resource_group_name: str, account_name: str, remote_rendering_account: "_models.RemoteRenderingAccount", - **kwargs + **kwargs: Any ) -> "_models.RemoteRenderingAccount": """Creating or Updating a Remote Rendering Account. @@ -430,7 +430,7 @@ async def list_keys( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> "_models.AccountKeys": """List Both of the 2 Keys of a Remote Rendering Account. @@ -489,7 +489,7 @@ async def regenerate_keys( resource_group_name: str, account_name: str, regenerate: "_models.AccountKeyRegenerateRequest", - **kwargs + **kwargs: Any ) -> "_models.AccountKeys": """Regenerate specified Key of a Remote Rendering Account. diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_spatial_anchors_accounts_operations.py b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_spatial_anchors_accounts_operations.py index 6ef116fb0a3a..cfb83f1d89bd 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_spatial_anchors_accounts_operations.py +++ b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/aio/operations/_spatial_anchors_accounts_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SpatialAnchorsAccountPage"]: """List Spatial Anchors Accounts by Subscription. @@ -110,7 +110,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SpatialAnchorsAccountPage"]: """List Resources by Resource Group. @@ -181,7 +181,7 @@ async def delete( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a Spatial Anchors Account. @@ -236,7 +236,7 @@ async def get( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> "_models.SpatialAnchorsAccount": """Retrieve a Spatial Anchors Account. @@ -295,7 +295,7 @@ async def update( resource_group_name: str, account_name: str, spatial_anchors_account: "_models.SpatialAnchorsAccount", - **kwargs + **kwargs: Any ) -> "_models.SpatialAnchorsAccount": """Updating a Spatial Anchors Account. @@ -361,7 +361,7 @@ async def create( resource_group_name: str, account_name: str, spatial_anchors_account: "_models.SpatialAnchorsAccount", - **kwargs + **kwargs: Any ) -> "_models.SpatialAnchorsAccount": """Creating or Updating a Spatial Anchors Account. @@ -430,7 +430,7 @@ async def list_keys( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> "_models.AccountKeys": """List Both of the 2 Keys of a Spatial Anchors Account. @@ -489,7 +489,7 @@ async def regenerate_keys( resource_group_name: str, account_name: str, regenerate: "_models.AccountKeyRegenerateRequest", - **kwargs + **kwargs: Any ) -> "_models.AccountKeys": """Regenerate specified Key of a Spatial Anchors Account. diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/_models.py b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/_models.py index 32f3dd1c25da..f8af7b6e3827 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/_models.py +++ b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/_models.py @@ -165,14 +165,14 @@ class Identity(msrest.serialization.Model): :vartype principal_id: str :ivar tenant_id: The tenant ID of resource. :vartype tenant_id: str - :ivar type: The identity type. Default value: "SystemAssigned". - :vartype type: str + :param type: The identity type. The only acceptable values to pass in are None and + "SystemAssigned". The default value is None. + :type type: str """ _validation = { 'principal_id': {'readonly': True}, 'tenant_id': {'readonly': True}, - 'type': {'constant': True}, } _attribute_map = { @@ -181,8 +181,6 @@ class Identity(msrest.serialization.Model): 'type': {'key': 'type', 'type': 'str'}, } - type = "SystemAssigned" - def __init__( self, **kwargs @@ -190,6 +188,7 @@ def __init__( super(Identity, self).__init__(**kwargs) self.principal_id = None self.tenant_id = None + self.type = kwargs.get('type', None) class LogSpecification(msrest.serialization.Model): @@ -228,12 +227,15 @@ class MetricDimension(msrest.serialization.Model): :type display_name: str :param internal_name: Internal name of the dimension. :type internal_name: str + :param to_be_exported_for_shoebox: Flag to indicate export for Shoebox. + :type to_be_exported_for_shoebox: bool """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'internal_name': {'key': 'internalName', 'type': 'str'}, + 'to_be_exported_for_shoebox': {'key': 'toBeExportedForShoebox', 'type': 'bool'}, } def __init__( @@ -244,6 +246,7 @@ def __init__( self.name = kwargs.get('name', None) self.display_name = kwargs.get('display_name', None) self.internal_name = kwargs.get('internal_name', None) + self.to_be_exported_for_shoebox = kwargs.get('to_be_exported_for_shoebox', None) class MetricSpecification(msrest.serialization.Model): @@ -260,10 +263,31 @@ class MetricSpecification(msrest.serialization.Model): :param aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. :type aggregation_type: str + :param supported_aggregation_types: Supported aggregation types. Valid values: Average, + Minimum, Maximum, Total, Count. + :type supported_aggregation_types: list[str] + :param supported_time_grain_types: Supported time grains. Valid values: PT1M, PT5M, PT15M, + PT30M, PT1H, PT6H, PT12H, P1D. + :type supported_time_grain_types: list[str] + :param enable_regional_mdm_account: Flag to indicate use of regional Mdm accounts. + :type enable_regional_mdm_account: bool + :param source_mdm_account: Source mdm account. + :type source_mdm_account: str + :param source_mdm_namespace: Source mdm namespace. + :type source_mdm_namespace: str + :param metric_filter_pattern: Metric filter regex pattern. + :type metric_filter_pattern: str + :param fill_gap_with_zero: Flag to determine is Zero is returned for time duration where no + metric is emitted. + :type fill_gap_with_zero: bool + :param category: Metric category. + :type category: str :param internal_metric_name: Internal metric name. :type internal_metric_name: str :param dimensions: Dimensions of the metric. :type dimensions: list[~azure.mgmt.mixedreality.models.MetricDimension] + :param locked_aggregation_type: Locked aggregation type of the metric. + :type locked_aggregation_type: str """ _attribute_map = { @@ -272,8 +296,17 @@ class MetricSpecification(msrest.serialization.Model): 'display_description': {'key': 'displayDescription', 'type': 'str'}, 'unit': {'key': 'unit', 'type': 'str'}, 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'supported_aggregation_types': {'key': 'supportedAggregationTypes', 'type': '[str]'}, + 'supported_time_grain_types': {'key': 'supportedTimeGrainTypes', 'type': '[str]'}, + 'enable_regional_mdm_account': {'key': 'enableRegionalMdmAccount', 'type': 'bool'}, + 'source_mdm_account': {'key': 'sourceMdmAccount', 'type': 'str'}, + 'source_mdm_namespace': {'key': 'sourceMdmNamespace', 'type': 'str'}, + 'metric_filter_pattern': {'key': 'metricFilterPattern', 'type': 'str'}, + 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'}, + 'category': {'key': 'category', 'type': 'str'}, 'internal_metric_name': {'key': 'internalMetricName', 'type': 'str'}, 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, + 'locked_aggregation_type': {'key': 'lockedAggregationType', 'type': 'str'}, } def __init__( @@ -286,8 +319,17 @@ def __init__( self.display_description = kwargs.get('display_description', None) self.unit = kwargs.get('unit', None) self.aggregation_type = kwargs.get('aggregation_type', None) + self.supported_aggregation_types = kwargs.get('supported_aggregation_types', None) + self.supported_time_grain_types = kwargs.get('supported_time_grain_types', None) + self.enable_regional_mdm_account = kwargs.get('enable_regional_mdm_account', None) + self.source_mdm_account = kwargs.get('source_mdm_account', None) + self.source_mdm_namespace = kwargs.get('source_mdm_namespace', None) + self.metric_filter_pattern = kwargs.get('metric_filter_pattern', None) + self.fill_gap_with_zero = kwargs.get('fill_gap_with_zero', None) + self.category = kwargs.get('category', None) self.internal_metric_name = kwargs.get('internal_metric_name', None) self.dimensions = kwargs.get('dimensions', None) + self.locked_aggregation_type = kwargs.get('locked_aggregation_type', None) class Resource(msrest.serialization.Model): @@ -393,6 +435,12 @@ class ObjectAnchorsAccount(TrackedResource): :type location: str :param identity: :type identity: ~azure.mgmt.mixedreality.models.ObjectAnchorsAccountIdentity + :param plan: The plan associated with this account. + :type plan: ~azure.mgmt.mixedreality.models.Identity + :param sku: The sku associated with this account. + :type sku: ~azure.mgmt.mixedreality.models.Sku + :param kind: The kind of account, if supported. + :type kind: ~azure.mgmt.mixedreality.models.Sku :ivar system_data: The system metadata related to an object anchors account. :vartype system_data: ~azure.mgmt.mixedreality.models.SystemData :param storage_account_name: The name of the storage account associated with this accountId. @@ -420,6 +468,9 @@ class ObjectAnchorsAccount(TrackedResource): 'tags': {'key': 'tags', 'type': '{str}'}, 'location': {'key': 'location', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'ObjectAnchorsAccountIdentity'}, + 'plan': {'key': 'plan', 'type': 'Identity'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'kind': {'key': 'kind', 'type': 'Sku'}, 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, 'account_id': {'key': 'properties.accountId', 'type': 'str'}, @@ -432,6 +483,9 @@ def __init__( ): super(ObjectAnchorsAccount, self).__init__(**kwargs) self.identity = kwargs.get('identity', None) + self.plan = kwargs.get('plan', None) + self.sku = kwargs.get('sku', None) + self.kind = kwargs.get('kind', None) self.system_data = None self.storage_account_name = kwargs.get('storage_account_name', None) self.account_id = None @@ -447,14 +501,14 @@ class ObjectAnchorsAccountIdentity(Identity): :vartype principal_id: str :ivar tenant_id: The tenant ID of resource. :vartype tenant_id: str - :ivar type: The identity type. Default value: "SystemAssigned". - :vartype type: str + :param type: The identity type. The only acceptable values to pass in are None and + "SystemAssigned". The default value is None. + :type type: str """ _validation = { 'principal_id': {'readonly': True}, 'tenant_id': {'readonly': True}, - 'type': {'constant': True}, } _attribute_map = { @@ -463,8 +517,6 @@ class ObjectAnchorsAccountIdentity(Identity): 'type': {'key': 'type', 'type': 'str'}, } - type = "SystemAssigned" - def __init__( self, **kwargs diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/_models_py3.py b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/_models_py3.py index 985a66f73875..294808001e03 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/_models_py3.py +++ b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/_models_py3.py @@ -184,14 +184,14 @@ class Identity(msrest.serialization.Model): :vartype principal_id: str :ivar tenant_id: The tenant ID of resource. :vartype tenant_id: str - :ivar type: The identity type. Default value: "SystemAssigned". - :vartype type: str + :param type: The identity type. The only acceptable values to pass in are None and + "SystemAssigned". The default value is None. + :type type: str """ _validation = { 'principal_id': {'readonly': True}, 'tenant_id': {'readonly': True}, - 'type': {'constant': True}, } _attribute_map = { @@ -200,15 +200,16 @@ class Identity(msrest.serialization.Model): 'type': {'key': 'type', 'type': 'str'}, } - type = "SystemAssigned" - def __init__( self, + *, + type: Optional[str] = None, **kwargs ): super(Identity, self).__init__(**kwargs) self.principal_id = None self.tenant_id = None + self.type = type class LogSpecification(msrest.serialization.Model): @@ -251,12 +252,15 @@ class MetricDimension(msrest.serialization.Model): :type display_name: str :param internal_name: Internal name of the dimension. :type internal_name: str + :param to_be_exported_for_shoebox: Flag to indicate export for Shoebox. + :type to_be_exported_for_shoebox: bool """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'internal_name': {'key': 'internalName', 'type': 'str'}, + 'to_be_exported_for_shoebox': {'key': 'toBeExportedForShoebox', 'type': 'bool'}, } def __init__( @@ -265,12 +269,14 @@ def __init__( name: Optional[str] = None, display_name: Optional[str] = None, internal_name: Optional[str] = None, + to_be_exported_for_shoebox: Optional[bool] = None, **kwargs ): super(MetricDimension, self).__init__(**kwargs) self.name = name self.display_name = display_name self.internal_name = internal_name + self.to_be_exported_for_shoebox = to_be_exported_for_shoebox class MetricSpecification(msrest.serialization.Model): @@ -287,10 +293,31 @@ class MetricSpecification(msrest.serialization.Model): :param aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. :type aggregation_type: str + :param supported_aggregation_types: Supported aggregation types. Valid values: Average, + Minimum, Maximum, Total, Count. + :type supported_aggregation_types: list[str] + :param supported_time_grain_types: Supported time grains. Valid values: PT1M, PT5M, PT15M, + PT30M, PT1H, PT6H, PT12H, P1D. + :type supported_time_grain_types: list[str] + :param enable_regional_mdm_account: Flag to indicate use of regional Mdm accounts. + :type enable_regional_mdm_account: bool + :param source_mdm_account: Source mdm account. + :type source_mdm_account: str + :param source_mdm_namespace: Source mdm namespace. + :type source_mdm_namespace: str + :param metric_filter_pattern: Metric filter regex pattern. + :type metric_filter_pattern: str + :param fill_gap_with_zero: Flag to determine is Zero is returned for time duration where no + metric is emitted. + :type fill_gap_with_zero: bool + :param category: Metric category. + :type category: str :param internal_metric_name: Internal metric name. :type internal_metric_name: str :param dimensions: Dimensions of the metric. :type dimensions: list[~azure.mgmt.mixedreality.models.MetricDimension] + :param locked_aggregation_type: Locked aggregation type of the metric. + :type locked_aggregation_type: str """ _attribute_map = { @@ -299,8 +326,17 @@ class MetricSpecification(msrest.serialization.Model): 'display_description': {'key': 'displayDescription', 'type': 'str'}, 'unit': {'key': 'unit', 'type': 'str'}, 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'supported_aggregation_types': {'key': 'supportedAggregationTypes', 'type': '[str]'}, + 'supported_time_grain_types': {'key': 'supportedTimeGrainTypes', 'type': '[str]'}, + 'enable_regional_mdm_account': {'key': 'enableRegionalMdmAccount', 'type': 'bool'}, + 'source_mdm_account': {'key': 'sourceMdmAccount', 'type': 'str'}, + 'source_mdm_namespace': {'key': 'sourceMdmNamespace', 'type': 'str'}, + 'metric_filter_pattern': {'key': 'metricFilterPattern', 'type': 'str'}, + 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'}, + 'category': {'key': 'category', 'type': 'str'}, 'internal_metric_name': {'key': 'internalMetricName', 'type': 'str'}, 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, + 'locked_aggregation_type': {'key': 'lockedAggregationType', 'type': 'str'}, } def __init__( @@ -311,8 +347,17 @@ def __init__( display_description: Optional[str] = None, unit: Optional[str] = None, aggregation_type: Optional[str] = None, + supported_aggregation_types: Optional[List[str]] = None, + supported_time_grain_types: Optional[List[str]] = None, + enable_regional_mdm_account: Optional[bool] = None, + source_mdm_account: Optional[str] = None, + source_mdm_namespace: Optional[str] = None, + metric_filter_pattern: Optional[str] = None, + fill_gap_with_zero: Optional[bool] = None, + category: Optional[str] = None, internal_metric_name: Optional[str] = None, dimensions: Optional[List["MetricDimension"]] = None, + locked_aggregation_type: Optional[str] = None, **kwargs ): super(MetricSpecification, self).__init__(**kwargs) @@ -321,8 +366,17 @@ def __init__( self.display_description = display_description self.unit = unit self.aggregation_type = aggregation_type + self.supported_aggregation_types = supported_aggregation_types + self.supported_time_grain_types = supported_time_grain_types + self.enable_regional_mdm_account = enable_regional_mdm_account + self.source_mdm_account = source_mdm_account + self.source_mdm_namespace = source_mdm_namespace + self.metric_filter_pattern = metric_filter_pattern + self.fill_gap_with_zero = fill_gap_with_zero + self.category = category self.internal_metric_name = internal_metric_name self.dimensions = dimensions + self.locked_aggregation_type = locked_aggregation_type class Resource(msrest.serialization.Model): @@ -431,6 +485,12 @@ class ObjectAnchorsAccount(TrackedResource): :type location: str :param identity: :type identity: ~azure.mgmt.mixedreality.models.ObjectAnchorsAccountIdentity + :param plan: The plan associated with this account. + :type plan: ~azure.mgmt.mixedreality.models.Identity + :param sku: The sku associated with this account. + :type sku: ~azure.mgmt.mixedreality.models.Sku + :param kind: The kind of account, if supported. + :type kind: ~azure.mgmt.mixedreality.models.Sku :ivar system_data: The system metadata related to an object anchors account. :vartype system_data: ~azure.mgmt.mixedreality.models.SystemData :param storage_account_name: The name of the storage account associated with this accountId. @@ -458,6 +518,9 @@ class ObjectAnchorsAccount(TrackedResource): 'tags': {'key': 'tags', 'type': '{str}'}, 'location': {'key': 'location', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'ObjectAnchorsAccountIdentity'}, + 'plan': {'key': 'plan', 'type': 'Identity'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'kind': {'key': 'kind', 'type': 'Sku'}, 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, 'account_id': {'key': 'properties.accountId', 'type': 'str'}, @@ -470,11 +533,17 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, identity: Optional["ObjectAnchorsAccountIdentity"] = None, + plan: Optional["Identity"] = None, + sku: Optional["Sku"] = None, + kind: Optional["Sku"] = None, storage_account_name: Optional[str] = None, **kwargs ): super(ObjectAnchorsAccount, self).__init__(tags=tags, location=location, **kwargs) self.identity = identity + self.plan = plan + self.sku = sku + self.kind = kind self.system_data = None self.storage_account_name = storage_account_name self.account_id = None @@ -490,14 +559,14 @@ class ObjectAnchorsAccountIdentity(Identity): :vartype principal_id: str :ivar tenant_id: The tenant ID of resource. :vartype tenant_id: str - :ivar type: The identity type. Default value: "SystemAssigned". - :vartype type: str + :param type: The identity type. The only acceptable values to pass in are None and + "SystemAssigned". The default value is None. + :type type: str """ _validation = { 'principal_id': {'readonly': True}, 'tenant_id': {'readonly': True}, - 'type': {'constant': True}, } _attribute_map = { @@ -506,13 +575,13 @@ class ObjectAnchorsAccountIdentity(Identity): 'type': {'key': 'type', 'type': 'str'}, } - type = "SystemAssigned" - def __init__( self, + *, + type: Optional[str] = None, **kwargs ): - super(ObjectAnchorsAccountIdentity, self).__init__(**kwargs) + super(ObjectAnchorsAccountIdentity, self).__init__(type=type, **kwargs) class ObjectAnchorsAccountPage(msrest.serialization.Model):