diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/CHANGELOG.md b/sdk/mixedreality/azure-mgmt-mixedreality/CHANGELOG.md index f6606badaf94..f3b08fc35659 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/CHANGELOG.md +++ b/sdk/mixedreality/azure-mgmt-mixedreality/CHANGELOG.md @@ -1,5 +1,29 @@ # Release History +## 0.3.0 (2021-02-07) + +**Features** + + - Model RemoteRenderingAccount has a new parameter system_data + - Model RemoteRenderingAccount has a new parameter storage_account_name + - Model RemoteRenderingAccount has a new parameter kind + - Model RemoteRenderingAccount has a new parameter plan + - Model RemoteRenderingAccount has a new parameter sku + - Model SpatialAnchorsAccount has a new parameter system_data + - Model SpatialAnchorsAccount has a new parameter storage_account_name + - Model SpatialAnchorsAccount has a new parameter kind + - Model SpatialAnchorsAccount has a new parameter plan + - Model SpatialAnchorsAccount has a new parameter sku + - Model SpatialAnchorsAccount has a new parameter identity + - Model Operation has a new parameter origin + - Model Operation has a new parameter properties + - Model Operation has a new parameter is_data_action + +**Breaking changes** + + - Operation SpatialAnchorsAccountsOperations.update has a new signature + - Operation SpatialAnchorsAccountsOperations.create has a new signature + ## 0.2.0 (2020-05-25) **Features** diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/_mixed_reality_client.py b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/_mixed_reality_client.py index 3d5046fdace8..be21d356ce62 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/_mixed_reality_client.py +++ b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/_mixed_reality_client.py @@ -49,6 +49,7 @@ def __init__( super(MixedRealityClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self.api_version = '2021-01-01' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/__init__.py b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/__init__.py index fb9b522306dc..b7348202f5ef 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/__init__.py +++ b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/__init__.py @@ -16,19 +16,24 @@ from ._models_py3 import CheckNameAvailabilityRequest from ._models_py3 import CheckNameAvailabilityResponse from ._models_py3 import Identity + from ._models_py3 import LogSpecification + from ._models_py3 import MetricDimension + from ._models_py3 import MetricSpecification from ._models_py3 import Operation from ._models_py3 import OperationDisplay + from ._models_py3 import OperationProperties from ._models_py3 import Plan from ._models_py3 import ProxyResource from ._models_py3 import RemoteRenderingAccount - from ._models_py3 import RemoteRenderingAccountIdentity from ._models_py3 import Resource from ._models_py3 import ResourceModelWithAllowedPropertySet from ._models_py3 import ResourceModelWithAllowedPropertySetIdentity from ._models_py3 import ResourceModelWithAllowedPropertySetPlan from ._models_py3 import ResourceModelWithAllowedPropertySetSku + from ._models_py3 import ServiceSpecification from ._models_py3 import Sku from ._models_py3 import SpatialAnchorsAccount + from ._models_py3 import SystemData from ._models_py3 import TrackedResource except (SyntaxError, ImportError): from ._models import AccountKeyRegenerateRequest @@ -37,28 +42,33 @@ from ._models import CheckNameAvailabilityRequest from ._models import CheckNameAvailabilityResponse from ._models import Identity + from ._models import LogSpecification + from ._models import MetricDimension + from ._models import MetricSpecification from ._models import Operation from ._models import OperationDisplay + from ._models import OperationProperties from ._models import Plan from ._models import ProxyResource from ._models import RemoteRenderingAccount - from ._models import RemoteRenderingAccountIdentity from ._models import Resource from ._models import ResourceModelWithAllowedPropertySet from ._models import ResourceModelWithAllowedPropertySetIdentity from ._models import ResourceModelWithAllowedPropertySetPlan from ._models import ResourceModelWithAllowedPropertySetSku + from ._models import ServiceSpecification from ._models import Sku from ._models import SpatialAnchorsAccount + from ._models import SystemData from ._models import TrackedResource from ._paged_models import OperationPaged from ._paged_models import RemoteRenderingAccountPaged from ._paged_models import SpatialAnchorsAccountPaged from ._mixed_reality_client_enums import ( - NameAvailability, NameUnavailableReason, - SkuTier, ResourceIdentityType, + SkuTier, + CreatedByType, ) __all__ = [ @@ -68,25 +78,30 @@ 'CheckNameAvailabilityRequest', 'CheckNameAvailabilityResponse', 'Identity', + 'LogSpecification', + 'MetricDimension', + 'MetricSpecification', 'Operation', 'OperationDisplay', + 'OperationProperties', 'Plan', 'ProxyResource', 'RemoteRenderingAccount', - 'RemoteRenderingAccountIdentity', 'Resource', 'ResourceModelWithAllowedPropertySet', 'ResourceModelWithAllowedPropertySetIdentity', 'ResourceModelWithAllowedPropertySetPlan', 'ResourceModelWithAllowedPropertySetSku', + 'ServiceSpecification', 'Sku', 'SpatialAnchorsAccount', + 'SystemData', 'TrackedResource', 'OperationPaged', 'SpatialAnchorsAccountPaged', 'RemoteRenderingAccountPaged', - 'NameAvailability', 'NameUnavailableReason', - 'SkuTier', 'ResourceIdentityType', + 'SkuTier', + 'CreatedByType', ] diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/_mixed_reality_client_enums.py b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/_mixed_reality_client_enums.py index e91a8bd69683..cbaa3598730f 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/_mixed_reality_client_enums.py +++ b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/_mixed_reality_client_enums.py @@ -12,18 +12,17 @@ from enum import Enum -class NameAvailability(str, Enum): - - true = "true" - false = "false" - - class NameUnavailableReason(str, Enum): invalid = "Invalid" already_exists = "AlreadyExists" +class ResourceIdentityType(str, Enum): + + system_assigned = "SystemAssigned" + + class SkuTier(str, Enum): free = "Free" @@ -32,6 +31,9 @@ class SkuTier(str, Enum): premium = "Premium" -class ResourceIdentityType(str, Enum): +class CreatedByType(str, Enum): - system_assigned = "SystemAssigned" + user = "User" + application = "Application" + managed_identity = "ManagedIdentity" + key = "Key" 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 7a533b33bc69..d6eec8f49536 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 @@ -60,16 +60,19 @@ def __init__(self, **kwargs): class Resource(Model): """Resource. + Common fields that are returned in the response for all Azure Resource + Manager resources. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -93,19 +96,21 @@ def __init__(self, **kwargs): class AzureEntityResource(Resource): - """The resource model definition for a Azure Resource Manager resource with an - etag. + """Entity Resource. + + The resource model definition for an Azure Resource Manager resource with + an etag. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :ivar etag: Resource Etag. :vartype etag: str @@ -163,10 +168,8 @@ class CheckNameAvailabilityResponse(Model): All required parameters must be populated in order to send to Azure. - :param name_available: Required. if name Available. Possible values - include: 'true', 'false' - :type name_available: str or - ~azure.mgmt.mixedreality.models.NameAvailability + :param name_available: Required. if name Available + :type name_available: bool :param reason: Resource Name To Verify. Possible values include: 'Invalid', 'AlreadyExists' :type reason: str or ~azure.mgmt.mixedreality.models.NameUnavailableReason @@ -179,7 +182,7 @@ class CheckNameAvailabilityResponse(Model): } _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'str'}, + 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, 'reason': {'key': 'reason', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, } @@ -194,7 +197,7 @@ def __init__(self, **kwargs): class CloudError(Model): """An Error response. - :param error: + :param error: An Error response. :type error: ~azure.mgmt.mixedreality.models.CloudErrorBody """ @@ -282,6 +285,95 @@ def __init__(self, **kwargs): self.type = kwargs.get('type', None) +class LogSpecification(Model): + """Specifications of the Log for Azure Monitoring. + + :param name: Name of the log + :type name: str + :param display_name: Localized friendly display name of the log + :type display_name: str + :param blob_duration: Blob duration of the log + :type blob_duration: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LogSpecification, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.blob_duration = kwargs.get('blob_duration', None) + + +class MetricDimension(Model): + """Specifications of the Dimension of metrics. + + :param name: Name of the dimension + :type name: str + :param display_name: Localized friendly display name of the dimension + :type display_name: str + :param internal_name: Internal name of the dimension. + :type internal_name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'internal_name': {'key': 'internalName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MetricDimension, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.internal_name = kwargs.get('internal_name', None) + + +class MetricSpecification(Model): + """Specifications of the Metrics for Azure Monitoring. + + :param name: Name of the metric + :type name: str + :param display_name: Localized friendly display name of the metric + :type display_name: str + :param display_description: Localized friendly description of the metric + :type display_description: str + :param unit: Unit that makes sense for the metric + :type unit: str + :param aggregation_type: Only provide one value for this field. Valid + values: Average, Minimum, Maximum, Total, Count. + :type aggregation_type: 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] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'internal_metric_name': {'key': 'internalMetricName', 'type': 'str'}, + 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, + } + + def __init__(self, **kwargs): + super(MetricSpecification, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.display_description = kwargs.get('display_description', None) + self.unit = kwargs.get('unit', None) + self.aggregation_type = kwargs.get('aggregation_type', None) + self.internal_metric_name = kwargs.get('internal_metric_name', None) + self.dimensions = kwargs.get('dimensions', None) + + class Operation(Model): """REST API operation. @@ -289,17 +381,29 @@ class Operation(Model): :type name: str :param display: The object that represents the operation. :type display: ~azure.mgmt.mixedreality.models.OperationDisplay + :param is_data_action: Whether or not this is a data plane operation + :type is_data_action: bool + :param origin: The origin + :type origin: str + :param properties: Properties of the operation + :type properties: ~azure.mgmt.mixedreality.models.OperationProperties """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'OperationProperties'}, } def __init__(self, **kwargs): super(Operation, self).__init__(**kwargs) self.name = kwargs.get('name', None) self.display = kwargs.get('display', None) + self.is_data_action = kwargs.get('is_data_action', None) + self.origin = kwargs.get('origin', None) + self.properties = kwargs.get('properties', None) class OperationDisplay(Model): @@ -340,6 +444,23 @@ def __init__(self, **kwargs): self.description = kwargs.get('description', None) +class OperationProperties(Model): + """Operation properties. + + :param service_specification: Service specification. + :type service_specification: + ~azure.mgmt.mixedreality.models.ServiceSpecification + """ + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'ServiceSpecification'}, + } + + def __init__(self, **kwargs): + super(OperationProperties, self).__init__(**kwargs) + self.service_specification = kwargs.get('service_specification', None) + + class Plan(Model): """Plan for the resource. @@ -386,19 +507,21 @@ def __init__(self, **kwargs): class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have - everything other than required location and tags. + """Proxy Resource. + + The resource model definition for a Azure Resource Manager proxy resource. + It will not have tags and a location. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -419,20 +542,23 @@ def __init__(self, **kwargs): class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. + """Tracked Resource. + + The resource model definition for an Azure Resource Manager tracked top + level resource which has 'tags' and a 'location'. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] @@ -469,26 +595,36 @@ class RemoteRenderingAccount(TrackedResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] :param location: Required. The geo-location where the resource lives :type location: str - :param identity: - :type identity: - ~azure.mgmt.mixedreality.models.RemoteRenderingAccountIdentity + :param storage_account_name: The name of the storage account associated + with this accountId + :type storage_account_name: str :ivar account_id: unique id of certain account. :vartype account_id: str :ivar account_domain: Correspond domain name of certain Spatial Anchors Account :vartype account_domain: str + :param identity: The identity associated with this account + :type identity: ~azure.mgmt.mixedreality.models.Identity + :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 + :param system_data: System metadata for this account + :type system_data: ~azure.mgmt.mixedreality.models.SystemData """ _validation = { @@ -506,45 +642,26 @@ class RemoteRenderingAccount(TrackedResource): 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'location': {'key': 'location', 'type': 'str'}, - 'identity': {'key': 'identity', 'type': 'RemoteRenderingAccountIdentity'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, 'account_id': {'key': 'properties.accountId', 'type': 'str'}, 'account_domain': {'key': 'properties.accountDomain', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'plan': {'key': 'plan', 'type': 'Identity'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'kind': {'key': 'kind', 'type': 'Sku'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, } def __init__(self, **kwargs): super(RemoteRenderingAccount, self).__init__(**kwargs) - self.identity = kwargs.get('identity', None) + self.storage_account_name = kwargs.get('storage_account_name', None) self.account_id = None self.account_domain = None - - -class RemoteRenderingAccountIdentity(Identity): - """RemoteRenderingAccountIdentity. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :param type: The identity type. Possible values include: 'SystemAssigned' - :type type: str or ~azure.mgmt.mixedreality.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, **kwargs): - super(RemoteRenderingAccountIdentity, 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 = kwargs.get('system_data', None) class ResourceModelWithAllowedPropertySet(Model): @@ -555,19 +672,19 @@ class ResourceModelWithAllowedPropertySet(Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param location: The geo-location where the resource lives :type location: str - :param managed_by: The fully qualified resource ID of the resource that + :param managed_by: The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another - azure resource. If this is present, complete mode deployment will not + Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. :type managed_by: str @@ -787,6 +904,29 @@ def __init__(self, **kwargs): super(ResourceModelWithAllowedPropertySetSku, self).__init__(**kwargs) +class ServiceSpecification(Model): + """Service specification payload. + + :param log_specifications: Specifications of the Log for Azure Monitoring + :type log_specifications: + list[~azure.mgmt.mixedreality.models.LogSpecification] + :param metric_specifications: Specifications of the Metrics for Azure + Monitoring + :type metric_specifications: + list[~azure.mgmt.mixedreality.models.MetricSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + } + + def __init__(self, **kwargs): + super(ServiceSpecification, self).__init__(**kwargs) + self.log_specifications = kwargs.get('log_specifications', None) + self.metric_specifications = kwargs.get('metric_specifications', None) + + class SpatialAnchorsAccount(TrackedResource): """SpatialAnchorsAccount Response. @@ -795,23 +935,36 @@ class SpatialAnchorsAccount(TrackedResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] :param location: Required. The geo-location where the resource lives :type location: str + :param storage_account_name: The name of the storage account associated + with this accountId + :type storage_account_name: str :ivar account_id: unique id of certain account. :vartype account_id: str :ivar account_domain: Correspond domain name of certain Spatial Anchors Account :vartype account_domain: str + :param identity: The identity associated with this account + :type identity: ~azure.mgmt.mixedreality.models.Identity + :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 + :param system_data: System metadata for this account + :type system_data: ~azure.mgmt.mixedreality.models.SystemData """ _validation = { @@ -829,11 +982,65 @@ class SpatialAnchorsAccount(TrackedResource): 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'location': {'key': 'location', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, 'account_id': {'key': 'properties.accountId', 'type': 'str'}, 'account_domain': {'key': 'properties.accountDomain', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'plan': {'key': 'plan', 'type': 'Identity'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'kind': {'key': 'kind', 'type': 'Sku'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, } def __init__(self, **kwargs): super(SpatialAnchorsAccount, self).__init__(**kwargs) + self.storage_account_name = kwargs.get('storage_account_name', None) self.account_id = None self.account_domain = None + 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 = kwargs.get('system_data', None) + + +class SystemData(Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. + Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + :type created_by_type: str or + ~azure.mgmt.mixedreality.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the + resource. Possible values include: 'User', 'Application', + 'ManagedIdentity', 'Key' + :type last_modified_by_type: str or + ~azure.mgmt.mixedreality.models.CreatedByType + :param last_modified_at: The type of identity that last modified the + resource. + :type last_modified_at: datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(SystemData, self).__init__(**kwargs) + self.created_by = kwargs.get('created_by', None) + self.created_by_type = kwargs.get('created_by_type', None) + self.created_at = kwargs.get('created_at', None) + self.last_modified_by = kwargs.get('last_modified_by', None) + self.last_modified_by_type = kwargs.get('last_modified_by_type', None) + self.last_modified_at = kwargs.get('last_modified_at', None) 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 760611f3df0a..c09201c39520 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 @@ -60,16 +60,19 @@ def __init__(self, **kwargs) -> None: class Resource(Model): """Resource. + Common fields that are returned in the response for all Azure Resource + Manager resources. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -93,19 +96,21 @@ def __init__(self, **kwargs) -> None: class AzureEntityResource(Resource): - """The resource model definition for a Azure Resource Manager resource with an - etag. + """Entity Resource. + + The resource model definition for an Azure Resource Manager resource with + an etag. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :ivar etag: Resource Etag. :vartype etag: str @@ -163,10 +168,8 @@ class CheckNameAvailabilityResponse(Model): All required parameters must be populated in order to send to Azure. - :param name_available: Required. if name Available. Possible values - include: 'true', 'false' - :type name_available: str or - ~azure.mgmt.mixedreality.models.NameAvailability + :param name_available: Required. if name Available + :type name_available: bool :param reason: Resource Name To Verify. Possible values include: 'Invalid', 'AlreadyExists' :type reason: str or ~azure.mgmt.mixedreality.models.NameUnavailableReason @@ -179,12 +182,12 @@ class CheckNameAvailabilityResponse(Model): } _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'str'}, + 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, 'reason': {'key': 'reason', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, } - def __init__(self, *, name_available, reason=None, message: str=None, **kwargs) -> None: + def __init__(self, *, name_available: bool, reason=None, message: str=None, **kwargs) -> None: super(CheckNameAvailabilityResponse, self).__init__(**kwargs) self.name_available = name_available self.reason = reason @@ -194,7 +197,7 @@ def __init__(self, *, name_available, reason=None, message: str=None, **kwargs) class CloudError(Model): """An Error response. - :param error: + :param error: An Error response. :type error: ~azure.mgmt.mixedreality.models.CloudErrorBody """ @@ -282,6 +285,95 @@ def __init__(self, *, type=None, **kwargs) -> None: self.type = type +class LogSpecification(Model): + """Specifications of the Log for Azure Monitoring. + + :param name: Name of the log + :type name: str + :param display_name: Localized friendly display name of the log + :type display_name: str + :param blob_duration: Blob duration of the log + :type blob_duration: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, display_name: str=None, blob_duration: str=None, **kwargs) -> None: + super(LogSpecification, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.blob_duration = blob_duration + + +class MetricDimension(Model): + """Specifications of the Dimension of metrics. + + :param name: Name of the dimension + :type name: str + :param display_name: Localized friendly display name of the dimension + :type display_name: str + :param internal_name: Internal name of the dimension. + :type internal_name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'internal_name': {'key': 'internalName', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, display_name: str=None, internal_name: str=None, **kwargs) -> None: + super(MetricDimension, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.internal_name = internal_name + + +class MetricSpecification(Model): + """Specifications of the Metrics for Azure Monitoring. + + :param name: Name of the metric + :type name: str + :param display_name: Localized friendly display name of the metric + :type display_name: str + :param display_description: Localized friendly description of the metric + :type display_description: str + :param unit: Unit that makes sense for the metric + :type unit: str + :param aggregation_type: Only provide one value for this field. Valid + values: Average, Minimum, Maximum, Total, Count. + :type aggregation_type: 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] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'internal_metric_name': {'key': 'internalMetricName', 'type': 'str'}, + 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, + } + + def __init__(self, *, name: str=None, display_name: str=None, display_description: str=None, unit: str=None, aggregation_type: str=None, internal_metric_name: str=None, dimensions=None, **kwargs) -> None: + super(MetricSpecification, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.display_description = display_description + self.unit = unit + self.aggregation_type = aggregation_type + self.internal_metric_name = internal_metric_name + self.dimensions = dimensions + + class Operation(Model): """REST API operation. @@ -289,17 +381,29 @@ class Operation(Model): :type name: str :param display: The object that represents the operation. :type display: ~azure.mgmt.mixedreality.models.OperationDisplay + :param is_data_action: Whether or not this is a data plane operation + :type is_data_action: bool + :param origin: The origin + :type origin: str + :param properties: Properties of the operation + :type properties: ~azure.mgmt.mixedreality.models.OperationProperties """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'OperationProperties'}, } - def __init__(self, *, name: str=None, display=None, **kwargs) -> None: + def __init__(self, *, name: str=None, display=None, is_data_action: bool=None, origin: str=None, properties=None, **kwargs) -> None: super(Operation, self).__init__(**kwargs) self.name = name self.display = display + self.is_data_action = is_data_action + self.origin = origin + self.properties = properties class OperationDisplay(Model): @@ -340,6 +444,23 @@ def __init__(self, *, provider: str, resource: str, operation: str, description: self.description = description +class OperationProperties(Model): + """Operation properties. + + :param service_specification: Service specification. + :type service_specification: + ~azure.mgmt.mixedreality.models.ServiceSpecification + """ + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'ServiceSpecification'}, + } + + def __init__(self, *, service_specification=None, **kwargs) -> None: + super(OperationProperties, self).__init__(**kwargs) + self.service_specification = service_specification + + class Plan(Model): """Plan for the resource. @@ -386,19 +507,21 @@ def __init__(self, *, name: str, publisher: str, product: str, promotion_code: s class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have - everything other than required location and tags. + """Proxy Resource. + + The resource model definition for a Azure Resource Manager proxy resource. + It will not have tags and a location. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -419,20 +542,23 @@ def __init__(self, **kwargs) -> None: class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. + """Tracked Resource. + + The resource model definition for an Azure Resource Manager tracked top + level resource which has 'tags' and a 'location'. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] @@ -469,26 +595,36 @@ class RemoteRenderingAccount(TrackedResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] :param location: Required. The geo-location where the resource lives :type location: str - :param identity: - :type identity: - ~azure.mgmt.mixedreality.models.RemoteRenderingAccountIdentity + :param storage_account_name: The name of the storage account associated + with this accountId + :type storage_account_name: str :ivar account_id: unique id of certain account. :vartype account_id: str :ivar account_domain: Correspond domain name of certain Spatial Anchors Account :vartype account_domain: str + :param identity: The identity associated with this account + :type identity: ~azure.mgmt.mixedreality.models.Identity + :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 + :param system_data: System metadata for this account + :type system_data: ~azure.mgmt.mixedreality.models.SystemData """ _validation = { @@ -506,45 +642,26 @@ class RemoteRenderingAccount(TrackedResource): 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'location': {'key': 'location', 'type': 'str'}, - 'identity': {'key': 'identity', 'type': 'RemoteRenderingAccountIdentity'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, 'account_id': {'key': 'properties.accountId', 'type': 'str'}, 'account_domain': {'key': 'properties.accountDomain', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'plan': {'key': 'plan', 'type': 'Identity'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'kind': {'key': 'kind', 'type': 'Sku'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, } - def __init__(self, *, location: str, tags=None, identity=None, **kwargs) -> None: + def __init__(self, *, location: str, tags=None, storage_account_name: str=None, identity=None, plan=None, sku=None, kind=None, system_data=None, **kwargs) -> None: super(RemoteRenderingAccount, self).__init__(tags=tags, location=location, **kwargs) - self.identity = identity + self.storage_account_name = storage_account_name self.account_id = None self.account_domain = None - - -class RemoteRenderingAccountIdentity(Identity): - """RemoteRenderingAccountIdentity. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :param type: The identity type. Possible values include: 'SystemAssigned' - :type type: str or ~azure.mgmt.mixedreality.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, *, type=None, **kwargs) -> None: - super(RemoteRenderingAccountIdentity, self).__init__(type=type, **kwargs) + self.identity = identity + self.plan = plan + self.sku = sku + self.kind = kind + self.system_data = system_data class ResourceModelWithAllowedPropertySet(Model): @@ -555,19 +672,19 @@ class ResourceModelWithAllowedPropertySet(Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param location: The geo-location where the resource lives :type location: str - :param managed_by: The fully qualified resource ID of the resource that + :param managed_by: The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another - azure resource. If this is present, complete mode deployment will not + Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. :type managed_by: str @@ -787,6 +904,29 @@ def __init__(self, *, name: str, tier=None, size: str=None, family: str=None, ca super(ResourceModelWithAllowedPropertySetSku, self).__init__(name=name, tier=tier, size=size, family=family, capacity=capacity, **kwargs) +class ServiceSpecification(Model): + """Service specification payload. + + :param log_specifications: Specifications of the Log for Azure Monitoring + :type log_specifications: + list[~azure.mgmt.mixedreality.models.LogSpecification] + :param metric_specifications: Specifications of the Metrics for Azure + Monitoring + :type metric_specifications: + list[~azure.mgmt.mixedreality.models.MetricSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + } + + def __init__(self, *, log_specifications=None, metric_specifications=None, **kwargs) -> None: + super(ServiceSpecification, self).__init__(**kwargs) + self.log_specifications = log_specifications + self.metric_specifications = metric_specifications + + class SpatialAnchorsAccount(TrackedResource): """SpatialAnchorsAccount Response. @@ -795,23 +935,36 @@ class SpatialAnchorsAccount(TrackedResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] :param location: Required. The geo-location where the resource lives :type location: str + :param storage_account_name: The name of the storage account associated + with this accountId + :type storage_account_name: str :ivar account_id: unique id of certain account. :vartype account_id: str :ivar account_domain: Correspond domain name of certain Spatial Anchors Account :vartype account_domain: str + :param identity: The identity associated with this account + :type identity: ~azure.mgmt.mixedreality.models.Identity + :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 + :param system_data: System metadata for this account + :type system_data: ~azure.mgmt.mixedreality.models.SystemData """ _validation = { @@ -829,11 +982,65 @@ class SpatialAnchorsAccount(TrackedResource): 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'location': {'key': 'location', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, 'account_id': {'key': 'properties.accountId', 'type': 'str'}, 'account_domain': {'key': 'properties.accountDomain', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'plan': {'key': 'plan', 'type': 'Identity'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'kind': {'key': 'kind', 'type': 'Sku'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, } - def __init__(self, *, location: str, tags=None, **kwargs) -> None: + def __init__(self, *, location: str, tags=None, storage_account_name: str=None, identity=None, plan=None, sku=None, kind=None, system_data=None, **kwargs) -> None: super(SpatialAnchorsAccount, self).__init__(tags=tags, location=location, **kwargs) + self.storage_account_name = storage_account_name self.account_id = None self.account_domain = None + self.identity = identity + self.plan = plan + self.sku = sku + self.kind = kind + self.system_data = system_data + + +class SystemData(Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. + Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + :type created_by_type: str or + ~azure.mgmt.mixedreality.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the + resource. Possible values include: 'User', 'Application', + 'ManagedIdentity', 'Key' + :type last_modified_by_type: str or + ~azure.mgmt.mixedreality.models.CreatedByType + :param last_modified_at: The type of identity that last modified the + resource. + :type last_modified_at: datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__(self, *, created_by: str=None, created_by_type=None, created_at=None, last_modified_by: str=None, last_modified_by_type=None, last_modified_at=None, **kwargs) -> None: + super(SystemData, self).__init__(**kwargs) + self.created_by = created_by + self.created_by_type = created_by_type + self.created_at = created_at + self.last_modified_by = last_modified_by + self.last_modified_by_type = last_modified_by_type + self.last_modified_at = last_modified_at diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/operations/_mixed_reality_client_operations.py b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/operations/_mixed_reality_client_operations.py index cf0a12211932..3d1dc82151d6 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/operations/_mixed_reality_client_operations.py +++ b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/operations/_mixed_reality_client_operations.py @@ -41,8 +41,6 @@ def check_name_availability_local( """ check_name_availability = models.CheckNameAvailabilityRequest(name=name, type=type) - api_version = "2020-05-01" - # Construct URL url = self.check_name_availability_local.metadata['url'] path_format_arguments = { @@ -53,7 +51,7 @@ def check_name_availability_local( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers header_parameters = {} diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/operations/_operations.py b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/operations/_operations.py index 2b493ee32c92..d29760a92c16 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/operations/_operations.py +++ b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/operations/_operations.py @@ -25,7 +25,7 @@ class Operations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to be used with the HTTP request. Constant value: "2020-05-01". + :ivar api_version: The API version to be used with the HTTP request. Constant value: "2021-01-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-05-01" + self.api_version = "2021-01-01" self.config = config diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/operations/_remote_rendering_accounts_operations.py b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/operations/_remote_rendering_accounts_operations.py index bb97ce3351f3..9bf430795145 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/operations/_remote_rendering_accounts_operations.py +++ b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/operations/_remote_rendering_accounts_operations.py @@ -25,7 +25,7 @@ class RemoteRenderingAccountsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to be used with the HTTP request. Constant value: "2020-04-06-preview". + :ivar api_version: The API version to be used with the HTTP request. Constant value: "2021-01-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-04-06-preview" + self.api_version = "2021-01-01" self.config = config diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/operations/_spatial_anchors_accounts_operations.py b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/operations/_spatial_anchors_accounts_operations.py index 2a39ded51db1..c822f10035e5 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/operations/_spatial_anchors_accounts_operations.py +++ b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/operations/_spatial_anchors_accounts_operations.py @@ -25,7 +25,7 @@ class SpatialAnchorsAccountsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to be used with the HTTP request. Constant value: "2020-05-01". + :ivar api_version: The API version to be used with the HTTP request. Constant value: "2021-01-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-05-01" + self.api_version = "2021-01-01" self.config = config @@ -289,17 +289,16 @@ def get( get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}'} def update( - self, resource_group_name, account_name, location, tags=None, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, account_name, spatial_anchors_account, custom_headers=None, raw=False, **operation_config): """Updating a Spatial Anchors Account. :param resource_group_name: Name of an Azure resource group. :type resource_group_name: str :param account_name: Name of an Mixed Reality Account. :type account_name: str - :param location: The geo-location where the resource lives - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] + :param spatial_anchors_account: Spatial Anchors Account parameter. + :type spatial_anchors_account: + ~azure.mgmt.mixedreality.models.SpatialAnchorsAccount :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -310,8 +309,6 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ - spatial_anchors_account = models.SpatialAnchorsAccount(tags=tags, location=location) - # Construct URL url = self.update.metadata['url'] path_format_arguments = { @@ -360,17 +357,16 @@ def update( update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}'} def create( - self, resource_group_name, account_name, location, tags=None, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, account_name, spatial_anchors_account, custom_headers=None, raw=False, **operation_config): """Creating or Updating a Spatial Anchors Account. :param resource_group_name: Name of an Azure resource group. :type resource_group_name: str :param account_name: Name of an Mixed Reality Account. :type account_name: str - :param location: The geo-location where the resource lives - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] + :param spatial_anchors_account: Spatial Anchors Account parameter. + :type spatial_anchors_account: + ~azure.mgmt.mixedreality.models.SpatialAnchorsAccount :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -381,8 +377,6 @@ def create( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ - spatial_anchors_account = models.SpatialAnchorsAccount(tags=tags, location=location) - # Construct URL url = self.create.metadata['url'] path_format_arguments = { 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 9bd1dfac7ecb..3e682bbd5fb1 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/version.py +++ b/sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.2.0" +VERSION = "0.3.0" diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/tests/recordings/test_cli_mgmt_mixedreality.test_mixedreality.yaml b/sdk/mixedreality/azure-mgmt-mixedreality/tests/recordings/test_cli_mgmt_mixedreality.test_mixedreality.yaml index 6da5e4ae1ed4..0fb382ee2e1f 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/tests/recordings/test_cli_mgmt_mixedreality.test_mixedreality.yaml +++ b/sdk/mixedreality/azure-mgmt-mixedreality/tests/recordings/test_cli_mgmt_mixedreality.test_mixedreality.yaml @@ -14,14 +14,14 @@ interactions: - application/json; charset=utf-8 User-Agent: - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-mixedreality/0.2.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-mixedreality/0.3.0 Azure-SDK-For-Python accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/spatialAnchorsAccounts/myAccount?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/spatialAnchorsAccounts/myAccount?api-version=2021-01-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/spatialAnchorsAccounts/myAccount","name":"myAccount","type":"Microsoft.MixedReality/spatialAnchorsAccounts","identity":null,"location":"eastus","plan":null,"sku":null,"kind":null,"tags":{},"properties":{"accountDomain":"eastus.mixedreality.azure.com","accountId":"d5efd4a6-5a0c-4ca5-87bc-83561d237a14"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/spatialAnchorsAccounts/myAccount","name":"myAccount","type":"Microsoft.MixedReality/spatialAnchorsAccounts","identity":null,"location":"eastus","plan":null,"sku":null,"kind":null,"tags":{},"properties":{"accountDomain":"eastus.mixedreality.azure.com","accountId":"d4407a0d-bee5-4a1c-9be8-7835fc8e7afb"}}' headers: cache-control: - no-cache @@ -30,13 +30,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 May 2020 14:36:02 GMT + - Sun, 07 Feb 2021 06:11:49 GMT expires: - '-1' location: - subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/spatialAnchorsAccounts/myAccount ms-cv: - - 2SfUfiuU9k2m4bZV1Gt6ig.0 + - XNGHaHuXyU+Cg3/YxjZ14g.0 pragma: - no-cache strict-transport-security: @@ -63,29 +63,29 @@ interactions: - application/json; charset=utf-8 User-Agent: - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-mixedreality/0.2.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-mixedreality/0.3.0 Azure-SDK-For-Python accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/remoteRenderingAccounts/myAccount?api-version=2020-04-06-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/remoteRenderingAccounts/myAccount?api-version=2021-01-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/remoteRenderingAccounts/myAccount","name":"myAccount","type":"Microsoft.MixedReality/remoteRenderingAccounts","identity":{"type":"SystemAssigned","principalId":"fb896ed1-57fc-4f7e-ac5c-c21051d56cd5","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"location":"eastus","plan":null,"sku":null,"kind":null,"tags":{},"properties":{"accountDomain":"mixedreality.azure.com","accountId":"cb19e00c-3d40-4d83-a82b-a0b6d26cecdb"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/remoteRenderingAccounts/myAccount","name":"myAccount","type":"Microsoft.MixedReality/remoteRenderingAccounts","identity":{"type":"SystemAssigned","principalId":"7c987da4-0f85-457a-90ac-9a933c93cc40","tenantId":"00000000-0000-0000-0000-000000000000"},"location":"eastus","plan":null,"sku":null,"kind":null,"tags":{},"properties":{"accountDomain":"eastus.mixedreality.azure.com","accountId":"28096da6-261b-43ca-aa1e-d42f70242e38"}}' headers: cache-control: - no-cache content-length: - - '582' + - '589' content-type: - application/json; charset=utf-8 date: - - Mon, 25 May 2020 14:36:08 GMT + - Sun, 07 Feb 2021 06:11:56 GMT expires: - '-1' location: - subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/remoteRenderingAccounts/myAccount ms-cv: - - cvGF45ZK+UqqT1IK6w1lag.0 + - kO5+KshK9k2DKmaGcFaJzA.0 pragma: - no-cache strict-transport-security: @@ -108,27 +108,27 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-mixedreality/0.2.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-mixedreality/0.3.0 Azure-SDK-For-Python accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/remoteRenderingAccounts/myAccount?api-version=2020-04-06-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/remoteRenderingAccounts/myAccount?api-version=2021-01-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/remoteRenderingAccounts/myAccount","name":"myAccount","type":"Microsoft.MixedReality/remoteRenderingAccounts","identity":{"type":"SystemAssigned","principalId":"fb896ed1-57fc-4f7e-ac5c-c21051d56cd5","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"location":"eastus","plan":null,"sku":null,"kind":null,"tags":{},"properties":{"accountDomain":"mixedreality.azure.com","accountId":"cb19e00c-3d40-4d83-a82b-a0b6d26cecdb"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/remoteRenderingAccounts/myAccount","name":"myAccount","type":"Microsoft.MixedReality/remoteRenderingAccounts","identity":{"type":"SystemAssigned","principalId":"7c987da4-0f85-457a-90ac-9a933c93cc40","tenantId":"00000000-0000-0000-0000-000000000000"},"location":"eastus","plan":null,"sku":null,"kind":null,"tags":{},"properties":{"accountDomain":"eastus.mixedreality.azure.com","accountId":"28096da6-261b-43ca-aa1e-d42f70242e38"}}' headers: cache-control: - no-cache content-length: - - '582' + - '589' content-type: - application/json; charset=utf-8 date: - - Mon, 25 May 2020 14:36:08 GMT + - Sun, 07 Feb 2021 06:11:57 GMT expires: - '-1' ms-cv: - - 3FRWLMM/Lk+BVtxo2xy6mg.0 + - 1eAQK0DVH0KstSfCKx7EcQ.0 pragma: - no-cache strict-transport-security: @@ -153,14 +153,14 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-mixedreality/0.2.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-mixedreality/0.3.0 Azure-SDK-For-Python accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/spatialAnchorsAccounts/myAccount?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/spatialAnchorsAccounts/myAccount?api-version=2021-01-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/spatialAnchorsAccounts/myAccount","name":"myAccount","type":"Microsoft.MixedReality/spatialAnchorsAccounts","identity":null,"location":"eastus","plan":null,"sku":null,"kind":null,"tags":{},"properties":{"accountDomain":"eastus.mixedreality.azure.com","accountId":"d5efd4a6-5a0c-4ca5-87bc-83561d237a14"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/spatialAnchorsAccounts/myAccount","name":"myAccount","type":"Microsoft.MixedReality/spatialAnchorsAccounts","identity":null,"location":"eastus","plan":null,"sku":null,"kind":null,"tags":{},"properties":{"accountDomain":"eastus.mixedreality.azure.com","accountId":"d4407a0d-bee5-4a1c-9be8-7835fc8e7afb"}}' headers: cache-control: - no-cache @@ -169,11 +169,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 May 2020 14:36:08 GMT + - Sun, 07 Feb 2021 06:11:57 GMT expires: - '-1' ms-cv: - - otFvRRDEq0aEIwZjl+uE6g.0 + - NimCKzcxZkevGIvB7rgI2A.0 pragma: - no-cache strict-transport-security: @@ -202,14 +202,14 @@ interactions: - application/json; charset=utf-8 User-Agent: - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-mixedreality/0.2.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-mixedreality/0.3.0 Azure-SDK-For-Python accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/remoteRenderingAccounts/myAccount/regenerateKeys?api-version=2020-04-06-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/remoteRenderingAccounts/myAccount/regenerateKeys?api-version=2021-01-01 response: body: - string: '{"primaryKey":"EDu0rTgqDBmtJXnzPC+Pv6NizphmfmX3VFNyHq/JOuw=","secondaryKey":"BqYW8k9SWJ/FbgfaIwP2GYM3vxEA3jFkv5QPbKq6QBw="}' + string: '{"primaryKey":"tl+kpGFfU1JbcZ2eiGHqtUL1Q8q1TuAoBsD/7MPgFzE=","secondaryKey":"3dhV0+AtZC9giC9onez9fI9Ce/wu3cQCIAoltrHOtFM="}' headers: cache-control: - no-cache @@ -218,11 +218,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 May 2020 14:36:09 GMT + - Sun, 07 Feb 2021 06:11:58 GMT expires: - '-1' ms-cv: - - 3ZjOD5FnE0OBcQiuZxCMiQ.0 + - 8lq1MpnNAEyDZ2900UcJAQ.0 pragma: - no-cache strict-transport-security: @@ -253,14 +253,14 @@ interactions: - application/json; charset=utf-8 User-Agent: - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-mixedreality/0.2.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-mixedreality/0.3.0 Azure-SDK-For-Python accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/spatialAnchorsAccounts/myAccount/regenerateKeys?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/spatialAnchorsAccounts/myAccount/regenerateKeys?api-version=2021-01-01 response: body: - string: '{"primaryKey":"EGBr5LLwZFsyGjTh+6r6MPITH2DH3JUqt+pS9oLf8G8=","secondaryKey":"5BHT2aHZzZJ/FyaU7ozHpVuumhEscISsPCmOsa90p5A="}' + string: '{"primaryKey":"p3Hy6VgteaZMMmzR6X7N4FHq+o+9iFhtasP98DEsGas=","secondaryKey":"aLXVSKMyjFvDPS48xJNc6eXtgIWO2GzOVWvHKT4coTA="}' headers: cache-control: - no-cache @@ -269,11 +269,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 May 2020 14:36:10 GMT + - Sun, 07 Feb 2021 06:11:59 GMT expires: - '-1' ms-cv: - - krMuNd5950e+hNf+DxGh+w.0 + - GsLrT/IH80iqcFGOfpLYeA.0 pragma: - no-cache strict-transport-security: @@ -305,27 +305,27 @@ interactions: - application/json; charset=utf-8 User-Agent: - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-mixedreality/0.2.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-mixedreality/0.3.0 Azure-SDK-For-Python accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/remoteRenderingAccounts/myAccount?api-version=2020-04-06-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/remoteRenderingAccounts/myAccount?api-version=2021-01-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/remoteRenderingAccounts/myAccount","name":"myAccount","type":"Microsoft.MixedReality/remoteRenderingAccounts","identity":{"type":"SystemAssigned","principalId":"fb896ed1-57fc-4f7e-ac5c-c21051d56cd5","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"location":"eastus","plan":null,"sku":null,"kind":null,"tags":{"heroine":"juliet","hero":"romeo"},"properties":{"accountDomain":"mixedreality.azure.com","accountId":"cb19e00c-3d40-4d83-a82b-a0b6d26cecdb"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/remoteRenderingAccounts/myAccount","name":"myAccount","type":"Microsoft.MixedReality/remoteRenderingAccounts","identity":{"type":"SystemAssigned","principalId":"7c987da4-0f85-457a-90ac-9a933c93cc40","tenantId":"00000000-0000-0000-0000-000000000000"},"location":"eastus","plan":null,"sku":null,"kind":null,"tags":{"heroine":"juliet","hero":"romeo"},"properties":{"accountDomain":"eastus.mixedreality.azure.com","accountId":"28096da6-261b-43ca-aa1e-d42f70242e38"}}' headers: cache-control: - no-cache content-length: - - '615' + - '622' content-type: - application/json; charset=utf-8 date: - - Mon, 25 May 2020 14:36:12 GMT + - Sun, 07 Feb 2021 06:12:02 GMT expires: - '-1' ms-cv: - - dwAOTUn0nEaC1i8RPyI28Q.0 + - p+SvAk+V3U6ms5yVcOgLCw.0 pragma: - no-cache strict-transport-security: @@ -356,14 +356,14 @@ interactions: - application/json; charset=utf-8 User-Agent: - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-mixedreality/0.2.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-mixedreality/0.3.0 Azure-SDK-For-Python accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/spatialAnchorsAccounts/myAccount?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/spatialAnchorsAccounts/myAccount?api-version=2021-01-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/spatialAnchorsAccounts/myAccount","name":"myAccount","type":"Microsoft.MixedReality/spatialAnchorsAccounts","identity":null,"location":"eastus","plan":null,"sku":null,"kind":null,"tags":{"heroine":"juliet","hero":"romeo"},"properties":{"accountDomain":"eastus.mixedreality.azure.com","accountId":"d5efd4a6-5a0c-4ca5-87bc-83561d237a14"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/spatialAnchorsAccounts/myAccount","name":"myAccount","type":"Microsoft.MixedReality/spatialAnchorsAccounts","identity":null,"location":"eastus","plan":null,"sku":null,"kind":null,"tags":{"heroine":"juliet","hero":"romeo"},"properties":{"accountDomain":"eastus.mixedreality.azure.com","accountId":"d4407a0d-bee5-4a1c-9be8-7835fc8e7afb"}}' headers: cache-control: - no-cache @@ -372,11 +372,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 May 2020 14:36:14 GMT + - Sun, 07 Feb 2021 06:12:05 GMT expires: - '-1' ms-cv: - - ThFq6KBOuE6SxWJxNw7EGA.0 + - KFrbGkh8akKLhrWXg7srtQ.0 pragma: - no-cache strict-transport-security: @@ -407,11 +407,11 @@ interactions: - application/json; charset=utf-8 User-Agent: - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-mixedreality/0.2.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-mixedreality/0.3.0 Azure-SDK-For-Python accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MixedReality/locations/eastus/checkNameAvailability?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MixedReality/locations/eastus/checkNameAvailability?api-version=2021-01-01 response: body: string: '{"nameAvailable":true,"reason":null,"message":null}' @@ -423,11 +423,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 May 2020 14:36:14 GMT + - Sun, 07 Feb 2021 06:12:07 GMT expires: - '-1' ms-cv: - - zQnk5xJHxk+phDN0hgfrHA.0 + - pB12QbxjoUW0q4vQjBAXcg.0 pragma: - no-cache strict-transport-security: @@ -454,11 +454,11 @@ interactions: - '0' User-Agent: - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-mixedreality/0.2.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-mixedreality/0.3.0 Azure-SDK-For-Python accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/remoteRenderingAccounts/myAccount?api-version=2020-04-06-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/remoteRenderingAccounts/myAccount?api-version=2021-01-01 response: body: string: '' @@ -468,11 +468,11 @@ interactions: content-length: - '0' date: - - Mon, 25 May 2020 14:36:18 GMT + - Sun, 07 Feb 2021 06:12:10 GMT expires: - '-1' ms-cv: - - G3N+W0GtHUiIM/tEgOaj3g.0 + - M/GCmEC0PkmDypkHeVKS5w.0 pragma: - no-cache strict-transport-security: @@ -497,11 +497,11 @@ interactions: - '0' User-Agent: - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-mixedreality/0.2.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-mixedreality/0.3.0 Azure-SDK-For-Python accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/spatialAnchorsAccounts/myAccount?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mixedreality_test_mixedreality9961123a/providers/Microsoft.MixedReality/spatialAnchorsAccounts/myAccount?api-version=2021-01-01 response: body: string: '' @@ -511,11 +511,11 @@ interactions: content-length: - '0' date: - - Mon, 25 May 2020 14:36:21 GMT + - Sun, 07 Feb 2021 06:12:14 GMT expires: - '-1' ms-cv: - - 9asu5pEc+0OP8jcSm6oT3w.0 + - IJyq4GBOSEaDQdwmppQLjg.0 pragma: - no-cache strict-transport-security: diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/tests/test_cli_mgmt_mixedreality.py b/sdk/mixedreality/azure-mgmt-mixedreality/tests/test_cli_mgmt_mixedreality.py index f7a088ae7907..78df69625479 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/tests/test_cli_mgmt_mixedreality.py +++ b/sdk/mixedreality/azure-mgmt-mixedreality/tests/test_cli_mgmt_mixedreality.py @@ -40,7 +40,10 @@ def test_mixedreality(self, resource_group): ACCOUNT_NAME = "myAccount" # /SpatialAnchorsAccounts/put/Create spatial anchor account[put] - result = self.mgmt_client.spatial_anchors_accounts.create(resource_group_name=RESOURCE_GROUP, account_name=ACCOUNT_NAME, location=AZURE_LOCATION) + BODY = { + "location": AZURE_LOCATION + } + result = self.mgmt_client.spatial_anchors_accounts.create(resource_group_name=RESOURCE_GROUP, account_name=ACCOUNT_NAME, spatial_anchors_account=BODY) # /RemoteRenderingAccounts/put/Create remote rendering account[put] BODY = { @@ -92,11 +95,14 @@ def test_mixedreality(self, resource_group): result = self.mgmt_client.remote_rendering_accounts.update(resource_group_name=RESOURCE_GROUP, account_name=ACCOUNT_NAME, remote_rendering_account=BODY) # /SpatialAnchorsAccounts/patch/Update spatial anchors account[patch] - TAGS = { - "heroine": "juliet", - "hero": "romeo" + BODY = { + "location": AZURE_LOCATION, + "tags": { + "heroine": "juliet", + "hero": "romeo" + } } - result = self.mgmt_client.spatial_anchors_accounts.update(resource_group_name=RESOURCE_GROUP, account_name=ACCOUNT_NAME, location=AZURE_LOCATION, tags=TAGS) + result = self.mgmt_client.spatial_anchors_accounts.update(resource_group_name=RESOURCE_GROUP, account_name=ACCOUNT_NAME, spatial_anchors_account=BODY) # //post/CheckLocalNameAvailability[post] result = self.mgmt_client.check_name_availability_local(location=AZURE_LOCATION, name="MyAccount", type="Microsoft.MixedReality/spatialAnchorsAccounts")