diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/_meta.json b/sdk/mixedreality/azure-mgmt-mixedreality/_meta.json index ed178900391be..d960c86bbf0af 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.2", + "use": [ + "@autorest/python@5.8.0", + "@autorest/modelerfour@4.19.1" + ], + "commit": "d33386bbc9106ae1661d56bae5a798863d3afcc6", "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.0 --use=@autorest/modelerfour@4.19.1 --version=3.4.2", "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 3bce270dec23c..15b842334a2c9 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 c47f66669f1bf..8dbbc07e35678 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 1d435292a4265..1539dc2a0f6bc 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 90bb7cccda3d2..7fb2189d7a19b 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 f89f93a748757..705940147e1b1 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 99afd8c2148e8..b1e4e1cb06618 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 6ef116fb0a3af..cfb83f1d89bd2 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 32f3dd1c25da3..14211e7150afe 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 @@ -228,12 +228,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 +247,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 +264,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 +297,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 +320,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): 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 985a66f73875c..9fa38e0bdbc1e 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 @@ -251,12 +251,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 +268,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 +292,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 +325,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 +346,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 +365,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):