Skip to content

Commit 40a37b8

Browse files
author
SDKAuto
committed
CodeGen from PR 16886 in Azure/azure-rest-api-specs
Merge c00e5ce96ae9732e967d50cb3c6e1e73e5abf34e into 37d6907
1 parent 3a14782 commit 40a37b8

File tree

4 files changed

+105
-76
lines changed

4 files changed

+105
-76
lines changed

sdk/deploymentmanager/azure-mgmt-deploymentmanager/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "V2",
3+
"use": "@microsoft.azure/autorest.python@~4.0.71",
4+
"commit": "2c59c559d6804068f72b8ead08d287c4f6e48fc0",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/deploymentmanager/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
7+
"readme": "specification/deploymentmanager/resource-manager/readme.md"
8+
}

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

Lines changed: 48 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,19 @@ def __init__(self, **kwargs):
8686
class Resource(Model):
8787
"""Resource.
8888
89+
Common fields that are returned in the response for all Azure Resource
90+
Manager resources.
91+
8992
Variables are only populated by the server, and will be ignored when
9093
sending a request.
9194
92-
:ivar id: Fully qualified resource Id for the resource. Ex -
95+
:ivar id: Fully qualified resource ID for the resource. Ex -
9396
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
9497
:vartype id: str
9598
:ivar name: The name of the resource
9699
:vartype name: str
97-
:ivar type: The type of the resource. Ex-
98-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
100+
:ivar type: The type of the resource. E.g.
101+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
99102
:vartype type: str
100103
"""
101104

@@ -119,20 +122,23 @@ def __init__(self, **kwargs):
119122

120123

121124
class TrackedResource(Resource):
122-
"""The resource model definition for a ARM tracked top level resource.
125+
"""Tracked Resource.
126+
127+
The resource model definition for an Azure Resource Manager tracked top
128+
level resource which has 'tags' and a 'location'.
123129
124130
Variables are only populated by the server, and will be ignored when
125131
sending a request.
126132
127133
All required parameters must be populated in order to send to Azure.
128134
129-
:ivar id: Fully qualified resource Id for the resource. Ex -
135+
:ivar id: Fully qualified resource ID for the resource. Ex -
130136
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
131137
:vartype id: str
132138
:ivar name: The name of the resource
133139
:vartype name: str
134-
:ivar type: The type of the resource. Ex-
135-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
140+
:ivar type: The type of the resource. E.g.
141+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
136142
:vartype type: str
137143
:param tags: Resource tags.
138144
:type tags: dict[str, str]
@@ -170,13 +176,13 @@ class ArtifactSource(TrackedResource):
170176
171177
All required parameters must be populated in order to send to Azure.
172178
173-
:ivar id: Fully qualified resource Id for the resource. Ex -
179+
:ivar id: Fully qualified resource ID for the resource. Ex -
174180
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
175181
:vartype id: str
176182
:ivar name: The name of the resource
177183
:vartype name: str
178-
:ivar type: The type of the resource. Ex-
179-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
184+
:ivar type: The type of the resource. E.g.
185+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
180186
:vartype type: str
181187
:param tags: Resource tags.
182188
:type tags: dict[str, str]
@@ -293,19 +299,21 @@ def __init__(self, **kwargs):
293299

294300

295301
class AzureEntityResource(Resource):
296-
"""The resource model definition for a Azure Resource Manager resource with an
297-
etag.
302+
"""Entity Resource.
303+
304+
The resource model definition for an Azure Resource Manager resource with
305+
an etag.
298306
299307
Variables are only populated by the server, and will be ignored when
300308
sending a request.
301309
302-
:ivar id: Fully qualified resource Id for the resource. Ex -
310+
:ivar id: Fully qualified resource ID for the resource. Ex -
303311
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
304312
:vartype id: str
305313
:ivar name: The name of the resource
306314
:vartype name: str
307-
:ivar type: The type of the resource. Ex-
308-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
315+
:ivar type: The type of the resource. E.g.
316+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
309317
:vartype type: str
310318
:ivar etag: Resource Etag.
311319
:vartype etag: str
@@ -651,19 +659,21 @@ def __init__(self, **kwargs):
651659

652660

653661
class ProxyResource(Resource):
654-
"""The resource model definition for a ARM proxy resource. It will have
655-
everything other than required location and tags.
662+
"""Proxy Resource.
663+
664+
The resource model definition for a Azure Resource Manager proxy resource.
665+
It will not have tags and a location.
656666
657667
Variables are only populated by the server, and will be ignored when
658668
sending a request.
659669
660-
:ivar id: Fully qualified resource Id for the resource. Ex -
670+
:ivar id: Fully qualified resource ID for the resource. Ex -
661671
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
662672
:vartype id: str
663673
:ivar name: The name of the resource
664674
:vartype name: str
665-
:ivar type: The type of the resource. Ex-
666-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
675+
:ivar type: The type of the resource. E.g.
676+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
667677
:vartype type: str
668678
"""
669679

@@ -904,13 +914,13 @@ class Rollout(TrackedResource):
904914
905915
All required parameters must be populated in order to send to Azure.
906916
907-
:ivar id: Fully qualified resource Id for the resource. Ex -
917+
:ivar id: Fully qualified resource ID for the resource. Ex -
908918
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
909919
:vartype id: str
910920
:ivar name: The name of the resource
911921
:vartype name: str
912-
:ivar type: The type of the resource. Ex-
913-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
922+
:ivar type: The type of the resource. E.g.
923+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
914924
:vartype type: str
915925
:param tags: Resource tags.
916926
:type tags: dict[str, str]
@@ -1105,13 +1115,13 @@ class RolloutRequest(TrackedResource):
11051115
11061116
All required parameters must be populated in order to send to Azure.
11071117
1108-
:ivar id: Fully qualified resource Id for the resource. Ex -
1118+
:ivar id: Fully qualified resource ID for the resource. Ex -
11091119
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
11101120
:vartype id: str
11111121
:ivar name: The name of the resource
11121122
:vartype name: str
1113-
:ivar type: The type of the resource. Ex-
1114-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
1123+
:ivar type: The type of the resource. E.g.
1124+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
11151125
:vartype type: str
11161126
:param tags: Resource tags.
11171127
:type tags: dict[str, str]
@@ -1322,13 +1332,13 @@ class ServiceResource(TrackedResource):
13221332
13231333
All required parameters must be populated in order to send to Azure.
13241334
1325-
:ivar id: Fully qualified resource Id for the resource. Ex -
1335+
:ivar id: Fully qualified resource ID for the resource. Ex -
13261336
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
13271337
:vartype id: str
13281338
:ivar name: The name of the resource
13291339
:vartype name: str
1330-
:ivar type: The type of the resource. Ex-
1331-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
1340+
:ivar type: The type of the resource. E.g.
1341+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
13321342
:vartype type: str
13331343
:param tags: Resource tags.
13341344
:type tags: dict[str, str]
@@ -1392,13 +1402,13 @@ class ServiceTopologyResource(TrackedResource):
13921402
13931403
All required parameters must be populated in order to send to Azure.
13941404
1395-
:ivar id: Fully qualified resource Id for the resource. Ex -
1405+
:ivar id: Fully qualified resource ID for the resource. Ex -
13961406
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
13971407
:vartype id: str
13981408
:ivar name: The name of the resource
13991409
:vartype name: str
1400-
:ivar type: The type of the resource. Ex-
1401-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
1410+
:ivar type: The type of the resource. E.g.
1411+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
14021412
:vartype type: str
14031413
:param tags: Resource tags.
14041414
:type tags: dict[str, str]
@@ -1545,13 +1555,13 @@ class ServiceUnitResource(TrackedResource):
15451555
15461556
All required parameters must be populated in order to send to Azure.
15471557
1548-
:ivar id: Fully qualified resource Id for the resource. Ex -
1558+
:ivar id: Fully qualified resource ID for the resource. Ex -
15491559
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
15501560
:vartype id: str
15511561
:ivar name: The name of the resource
15521562
:vartype name: str
1553-
:ivar type: The type of the resource. Ex-
1554-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
1563+
:ivar type: The type of the resource. E.g.
1564+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
15551565
:vartype type: str
15561566
:param tags: Resource tags.
15571567
:type tags: dict[str, str]
@@ -1699,13 +1709,13 @@ class StepResource(TrackedResource):
16991709
17001710
All required parameters must be populated in order to send to Azure.
17011711
1702-
:ivar id: Fully qualified resource Id for the resource. Ex -
1712+
:ivar id: Fully qualified resource ID for the resource. Ex -
17031713
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
17041714
:vartype id: str
17051715
:ivar name: The name of the resource
17061716
:vartype name: str
1707-
:ivar type: The type of the resource. Ex-
1708-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
1717+
:ivar type: The type of the resource. E.g.
1718+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
17091719
:vartype type: str
17101720
:param tags: Resource tags.
17111721
:type tags: dict[str, str]

0 commit comments

Comments
 (0)