Skip to content

Commit ac0820a

Browse files
00Kai0SDKAutoraonon
authored
T1 mixedreality 2021 02 23 (#16870)
* CodeGen from PR 13077 in Azure/azure-rest-api-specs Fixed order of operations parameters (#13077) Co-authored-by: Raymond Ononiwu <[email protected]> * test,version,CHANGELOG * fix test Co-authored-by: SDKAuto <[email protected]> Co-authored-by: Raymond Ononiwu <[email protected]>
1 parent b74b486 commit ac0820a

13 files changed

+943
-160
lines changed

sdk/mixedreality/azure-mgmt-mixedreality/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 0.4.0 (2021-02-23)
4+
5+
**Features**
6+
7+
- Added operation group ObjectAnchorsAccountsOperations
8+
39
## 0.3.0 (2021-02-07)
410

511
**Features**

sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/_mixed_reality_client.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from .operations import Operations
1818
from .operations import SpatialAnchorsAccountsOperations
1919
from .operations import RemoteRenderingAccountsOperations
20+
from .operations import ObjectAnchorsAccountsOperations
2021
from . import models
2122

2223

@@ -32,6 +33,8 @@ class MixedRealityClient(MixedRealityClientOperationsMixin, SDKClient):
3233
:vartype spatial_anchors_accounts: azure.mgmt.mixedreality.operations.SpatialAnchorsAccountsOperations
3334
:ivar remote_rendering_accounts: RemoteRenderingAccounts operations
3435
:vartype remote_rendering_accounts: azure.mgmt.mixedreality.operations.RemoteRenderingAccountsOperations
36+
:ivar object_anchors_accounts: ObjectAnchorsAccounts operations
37+
:vartype object_anchors_accounts: azure.mgmt.mixedreality.operations.ObjectAnchorsAccountsOperations
3538
3639
:param credentials: Credentials needed for the client to connect to Azure.
3740
:type credentials: :mod:`A msrestazure Credentials
@@ -49,7 +52,7 @@ def __init__(
4952
super(MixedRealityClient, self).__init__(self.config.credentials, self.config)
5053

5154
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
52-
self.api_version = '2021-01-01'
55+
self.api_version = '2021-03-01-preview'
5356
self._serialize = Serializer(client_models)
5457
self._deserialize = Deserializer(client_models)
5558

@@ -59,3 +62,5 @@ def __init__(
5962
self._client, self.config, self._serialize, self._deserialize)
6063
self.remote_rendering_accounts = RemoteRenderingAccountsOperations(
6164
self._client, self.config, self._serialize, self._deserialize)
65+
self.object_anchors_accounts = ObjectAnchorsAccountsOperations(
66+
self._client, self.config, self._serialize, self._deserialize)

sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/__init__.py

+8
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
from ._models_py3 import LogSpecification
2020
from ._models_py3 import MetricDimension
2121
from ._models_py3 import MetricSpecification
22+
from ._models_py3 import ObjectAnchorsAccount
23+
from ._models_py3 import ObjectAnchorsAccountIdentity
2224
from ._models_py3 import Operation
2325
from ._models_py3 import OperationDisplay
2426
from ._models_py3 import OperationProperties
@@ -45,6 +47,8 @@
4547
from ._models import LogSpecification
4648
from ._models import MetricDimension
4749
from ._models import MetricSpecification
50+
from ._models import ObjectAnchorsAccount
51+
from ._models import ObjectAnchorsAccountIdentity
4852
from ._models import Operation
4953
from ._models import OperationDisplay
5054
from ._models import OperationProperties
@@ -61,6 +65,7 @@
6165
from ._models import SpatialAnchorsAccount
6266
from ._models import SystemData
6367
from ._models import TrackedResource
68+
from ._paged_models import ObjectAnchorsAccountPaged
6469
from ._paged_models import OperationPaged
6570
from ._paged_models import RemoteRenderingAccountPaged
6671
from ._paged_models import SpatialAnchorsAccountPaged
@@ -81,6 +86,8 @@
8186
'LogSpecification',
8287
'MetricDimension',
8388
'MetricSpecification',
89+
'ObjectAnchorsAccount',
90+
'ObjectAnchorsAccountIdentity',
8491
'Operation',
8592
'OperationDisplay',
8693
'OperationProperties',
@@ -100,6 +107,7 @@
100107
'OperationPaged',
101108
'SpatialAnchorsAccountPaged',
102109
'RemoteRenderingAccountPaged',
110+
'ObjectAnchorsAccountPaged',
103111
'NameUnavailableReason',
104112
'ResourceIdentityType',
105113
'SkuTier',

sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/models/_models.py

+145-49
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class AccountKeyRegenerateRequest(Model):
1717
"""Request for account key regeneration.
1818
19-
:param serial: serial of key to be regenerated. Default value: 1 .
19+
:param serial: Serial of key to be regenerated. Default value: 1 .
2020
:type serial: int
2121
"""
2222

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

376376

377+
class TrackedResource(Resource):
378+
"""Tracked Resource.
379+
380+
The resource model definition for an Azure Resource Manager tracked top
381+
level resource which has 'tags' and a 'location'.
382+
383+
Variables are only populated by the server, and will be ignored when
384+
sending a request.
385+
386+
All required parameters must be populated in order to send to Azure.
387+
388+
:ivar id: Fully qualified resource ID for the resource. Ex -
389+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
390+
:vartype id: str
391+
:ivar name: The name of the resource
392+
:vartype name: str
393+
:ivar type: The type of the resource. E.g.
394+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
395+
:vartype type: str
396+
:param tags: Resource tags.
397+
:type tags: dict[str, str]
398+
:param location: Required. The geo-location where the resource lives
399+
:type location: str
400+
"""
401+
402+
_validation = {
403+
'id': {'readonly': True},
404+
'name': {'readonly': True},
405+
'type': {'readonly': True},
406+
'location': {'required': True},
407+
}
408+
409+
_attribute_map = {
410+
'id': {'key': 'id', 'type': 'str'},
411+
'name': {'key': 'name', 'type': 'str'},
412+
'type': {'key': 'type', 'type': 'str'},
413+
'tags': {'key': 'tags', 'type': '{str}'},
414+
'location': {'key': 'location', 'type': 'str'},
415+
}
416+
417+
def __init__(self, **kwargs):
418+
super(TrackedResource, self).__init__(**kwargs)
419+
self.tags = kwargs.get('tags', None)
420+
self.location = kwargs.get('location', None)
421+
422+
423+
class ObjectAnchorsAccount(TrackedResource):
424+
"""ObjectAnchorsAccount Response.
425+
426+
Variables are only populated by the server, and will be ignored when
427+
sending a request.
428+
429+
All required parameters must be populated in order to send to Azure.
430+
431+
:ivar id: Fully qualified resource ID for the resource. Ex -
432+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
433+
:vartype id: str
434+
:ivar name: The name of the resource
435+
:vartype name: str
436+
:ivar type: The type of the resource. E.g.
437+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
438+
:vartype type: str
439+
:param tags: Resource tags.
440+
:type tags: dict[str, str]
441+
:param location: Required. The geo-location where the resource lives
442+
:type location: str
443+
:param identity:
444+
:type identity:
445+
~azure.mgmt.mixedreality.models.ObjectAnchorsAccountIdentity
446+
:param storage_account_name: The name of the storage account associated
447+
with this accountId
448+
:type storage_account_name: str
449+
:ivar account_id: unique id of certain account.
450+
:vartype account_id: str
451+
:ivar account_domain: Correspond domain name of certain Spatial Anchors
452+
Account
453+
:vartype account_domain: str
454+
:ivar system_data: The system metadata related to an object anchors
455+
account.
456+
:vartype system_data: ~azure.mgmt.mixedreality.models.SystemData
457+
"""
458+
459+
_validation = {
460+
'id': {'readonly': True},
461+
'name': {'readonly': True},
462+
'type': {'readonly': True},
463+
'location': {'required': True},
464+
'account_id': {'readonly': True},
465+
'account_domain': {'readonly': True},
466+
'system_data': {'readonly': True},
467+
}
468+
469+
_attribute_map = {
470+
'id': {'key': 'id', 'type': 'str'},
471+
'name': {'key': 'name', 'type': 'str'},
472+
'type': {'key': 'type', 'type': 'str'},
473+
'tags': {'key': 'tags', 'type': '{str}'},
474+
'location': {'key': 'location', 'type': 'str'},
475+
'identity': {'key': 'identity', 'type': 'ObjectAnchorsAccountIdentity'},
476+
'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'},
477+
'account_id': {'key': 'properties.accountId', 'type': 'str'},
478+
'account_domain': {'key': 'properties.accountDomain', 'type': 'str'},
479+
'system_data': {'key': 'systemData', 'type': 'SystemData'},
480+
}
481+
482+
def __init__(self, **kwargs):
483+
super(ObjectAnchorsAccount, self).__init__(**kwargs)
484+
self.identity = kwargs.get('identity', None)
485+
self.storage_account_name = kwargs.get('storage_account_name', None)
486+
self.account_id = None
487+
self.account_domain = None
488+
self.system_data = None
489+
490+
491+
class ObjectAnchorsAccountIdentity(Identity):
492+
"""ObjectAnchorsAccountIdentity.
493+
494+
Variables are only populated by the server, and will be ignored when
495+
sending a request.
496+
497+
:ivar principal_id: The principal ID of resource identity.
498+
:vartype principal_id: str
499+
:ivar tenant_id: The tenant ID of resource.
500+
:vartype tenant_id: str
501+
:param type: The identity type. Possible values include: 'SystemAssigned'
502+
:type type: str or ~azure.mgmt.mixedreality.models.ResourceIdentityType
503+
"""
504+
505+
_validation = {
506+
'principal_id': {'readonly': True},
507+
'tenant_id': {'readonly': True},
508+
}
509+
510+
_attribute_map = {
511+
'principal_id': {'key': 'principalId', 'type': 'str'},
512+
'tenant_id': {'key': 'tenantId', 'type': 'str'},
513+
'type': {'key': 'type', 'type': 'ResourceIdentityType'},
514+
}
515+
516+
def __init__(self, **kwargs):
517+
super(ObjectAnchorsAccountIdentity, self).__init__(**kwargs)
518+
519+
377520
class Operation(Model):
378521
"""REST API operation.
379522
@@ -541,52 +684,6 @@ def __init__(self, **kwargs):
541684
super(ProxyResource, self).__init__(**kwargs)
542685

543686

544-
class TrackedResource(Resource):
545-
"""Tracked Resource.
546-
547-
The resource model definition for an Azure Resource Manager tracked top
548-
level resource which has 'tags' and a 'location'.
549-
550-
Variables are only populated by the server, and will be ignored when
551-
sending a request.
552-
553-
All required parameters must be populated in order to send to Azure.
554-
555-
:ivar id: Fully qualified resource ID for the resource. Ex -
556-
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
557-
:vartype id: str
558-
:ivar name: The name of the resource
559-
:vartype name: str
560-
:ivar type: The type of the resource. E.g.
561-
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
562-
:vartype type: str
563-
:param tags: Resource tags.
564-
:type tags: dict[str, str]
565-
:param location: Required. The geo-location where the resource lives
566-
:type location: str
567-
"""
568-
569-
_validation = {
570-
'id': {'readonly': True},
571-
'name': {'readonly': True},
572-
'type': {'readonly': True},
573-
'location': {'required': True},
574-
}
575-
576-
_attribute_map = {
577-
'id': {'key': 'id', 'type': 'str'},
578-
'name': {'key': 'name', 'type': 'str'},
579-
'type': {'key': 'type', 'type': 'str'},
580-
'tags': {'key': 'tags', 'type': '{str}'},
581-
'location': {'key': 'location', 'type': 'str'},
582-
}
583-
584-
def __init__(self, **kwargs):
585-
super(TrackedResource, self).__init__(**kwargs)
586-
self.tags = kwargs.get('tags', None)
587-
self.location = kwargs.get('location', None)
588-
589-
590687
class RemoteRenderingAccount(TrackedResource):
591688
"""RemoteRenderingAccount Response.
592689
@@ -1022,8 +1119,7 @@ class SystemData(Model):
10221119
'ManagedIdentity', 'Key'
10231120
:type last_modified_by_type: str or
10241121
~azure.mgmt.mixedreality.models.CreatedByType
1025-
:param last_modified_at: The type of identity that last modified the
1026-
resource.
1122+
:param last_modified_at: The timestamp of resource last modification (UTC)
10271123
:type last_modified_at: datetime
10281124
"""
10291125

0 commit comments

Comments
 (0)