Skip to content

Commit

Permalink
T1 mixedreality 2021 02 23 (#16870)
Browse files Browse the repository at this point in the history
* CodeGen from PR 13077 in Azure/azure-rest-api-specs
Fixed order of operations parameters (#13077)

Co-authored-by: Raymond Ononiwu <raonon@microsoft.com>

* test,version,CHANGELOG

* fix test

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: Raymond Ononiwu <raonon@microsoft.com>
  • Loading branch information
3 people authored Feb 24, 2021
1 parent b74b486 commit ac0820a
Show file tree
Hide file tree
Showing 13 changed files with 943 additions and 160 deletions.
6 changes: 6 additions & 0 deletions sdk/mixedreality/azure-mgmt-mixedreality/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 0.4.0 (2021-02-23)

**Features**

- Added operation group ObjectAnchorsAccountsOperations

## 0.3.0 (2021-02-07)

**Features**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from .operations import Operations
from .operations import SpatialAnchorsAccountsOperations
from .operations import RemoteRenderingAccountsOperations
from .operations import ObjectAnchorsAccountsOperations
from . import models


Expand All @@ -32,6 +33,8 @@ class MixedRealityClient(MixedRealityClientOperationsMixin, SDKClient):
:vartype spatial_anchors_accounts: azure.mgmt.mixedreality.operations.SpatialAnchorsAccountsOperations
:ivar remote_rendering_accounts: RemoteRenderingAccounts operations
:vartype remote_rendering_accounts: azure.mgmt.mixedreality.operations.RemoteRenderingAccountsOperations
:ivar object_anchors_accounts: ObjectAnchorsAccounts operations
:vartype object_anchors_accounts: azure.mgmt.mixedreality.operations.ObjectAnchorsAccountsOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -49,7 +52,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.api_version = '2021-03-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand All @@ -59,3 +62,5 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.remote_rendering_accounts = RemoteRenderingAccountsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.object_anchors_accounts = ObjectAnchorsAccountsOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
from ._models_py3 import LogSpecification
from ._models_py3 import MetricDimension
from ._models_py3 import MetricSpecification
from ._models_py3 import ObjectAnchorsAccount
from ._models_py3 import ObjectAnchorsAccountIdentity
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import OperationProperties
Expand All @@ -45,6 +47,8 @@
from ._models import LogSpecification
from ._models import MetricDimension
from ._models import MetricSpecification
from ._models import ObjectAnchorsAccount
from ._models import ObjectAnchorsAccountIdentity
from ._models import Operation
from ._models import OperationDisplay
from ._models import OperationProperties
Expand All @@ -61,6 +65,7 @@
from ._models import SpatialAnchorsAccount
from ._models import SystemData
from ._models import TrackedResource
from ._paged_models import ObjectAnchorsAccountPaged
from ._paged_models import OperationPaged
from ._paged_models import RemoteRenderingAccountPaged
from ._paged_models import SpatialAnchorsAccountPaged
Expand All @@ -81,6 +86,8 @@
'LogSpecification',
'MetricDimension',
'MetricSpecification',
'ObjectAnchorsAccount',
'ObjectAnchorsAccountIdentity',
'Operation',
'OperationDisplay',
'OperationProperties',
Expand All @@ -100,6 +107,7 @@
'OperationPaged',
'SpatialAnchorsAccountPaged',
'RemoteRenderingAccountPaged',
'ObjectAnchorsAccountPaged',
'NameUnavailableReason',
'ResourceIdentityType',
'SkuTier',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class AccountKeyRegenerateRequest(Model):
"""Request for account key regeneration.
:param serial: serial of key to be regenerated. Default value: 1 .
:param serial: Serial of key to be regenerated. Default value: 1 .
:type serial: int
"""

Expand Down Expand Up @@ -374,6 +374,149 @@ def __init__(self, **kwargs):
self.dimensions = kwargs.get('dimensions', None)


class TrackedResource(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 -
/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. 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
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
}

def __init__(self, **kwargs):
super(TrackedResource, self).__init__(**kwargs)
self.tags = kwargs.get('tags', None)
self.location = kwargs.get('location', None)


class ObjectAnchorsAccount(TrackedResource):
"""ObjectAnchorsAccount Response.
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 -
/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. 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.ObjectAnchorsAccountIdentity
: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
:ivar system_data: The system metadata related to an object anchors
account.
:vartype system_data: ~azure.mgmt.mixedreality.models.SystemData
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'account_id': {'readonly': True},
'account_domain': {'readonly': True},
'system_data': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'identity': {'key': 'identity', 'type': 'ObjectAnchorsAccountIdentity'},
'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'},
'account_id': {'key': 'properties.accountId', 'type': 'str'},
'account_domain': {'key': 'properties.accountDomain', 'type': 'str'},
'system_data': {'key': 'systemData', 'type': 'SystemData'},
}

def __init__(self, **kwargs):
super(ObjectAnchorsAccount, 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
self.system_data = None


class ObjectAnchorsAccountIdentity(Identity):
"""ObjectAnchorsAccountIdentity.
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(ObjectAnchorsAccountIdentity, self).__init__(**kwargs)


class Operation(Model):
"""REST API operation.
Expand Down Expand Up @@ -541,52 +684,6 @@ def __init__(self, **kwargs):
super(ProxyResource, self).__init__(**kwargs)


class TrackedResource(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 -
/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. 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
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
}

def __init__(self, **kwargs):
super(TrackedResource, self).__init__(**kwargs)
self.tags = kwargs.get('tags', None)
self.location = kwargs.get('location', None)


class RemoteRenderingAccount(TrackedResource):
"""RemoteRenderingAccount Response.
Expand Down Expand Up @@ -1022,8 +1119,7 @@ class SystemData(Model):
'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.
:param last_modified_at: The timestamp of resource last modification (UTC)
:type last_modified_at: datetime
"""

Expand Down
Loading

0 comments on commit ac0820a

Please sign in to comment.