Skip to content

Commit

Permalink
CodeGen from PR 13777 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 5422126876a82d488ff95c0c586e72351c19470c into 76b6531
  • Loading branch information
SDKAuto committed May 24, 2021
1 parent ff63cbf commit 62ba802
Show file tree
Hide file tree
Showing 10 changed files with 131 additions and 32 deletions.
11 changes: 7 additions & 4 deletions sdk/mixedreality/azure-mgmt-mixedreality/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"autorest": "3.3.0",
"use": "@autorest/[email protected]",
"commit": "4e6a4ff608dde7a2312d13ce0d939e2126aa86e1",
"autorest": "3.4.2",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"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/[email protected] --version=3.4.2",
"readme": "specification/mixedreality/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -181,7 +181,7 @@ async def delete(
self,
resource_group_name: str,
account_name: str,
**kwargs
**kwargs: Any
) -> None:
"""Delete an Object Anchors Account.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:

def list(
self,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.OperationPage"]:
"""Exposing Available Operations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -181,7 +181,7 @@ async def delete(
self,
resource_group_name: str,
account_name: str,
**kwargs
**kwargs: Any
) -> None:
"""Delete a Remote Rendering Account.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -181,7 +181,7 @@ async def delete(
self,
resource_group_name: str,
account_name: str,
**kwargs
**kwargs: Any
) -> None:
"""Delete a Spatial Anchors Account.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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__(
Expand All @@ -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):
Expand All @@ -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 = {
Expand All @@ -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__(
Expand All @@ -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):
Expand Down
Loading

0 comments on commit 62ba802

Please sign in to comment.