Skip to content

Commit 1467970

Browse files
author
SDKAuto
committed
CodeGen from PR 11970 in Azure/azure-rest-api-specs
add hybridcompute track2 config (Azure#11970)
1 parent e1f2009 commit 1467970

File tree

4 files changed

+69
-53
lines changed

4 files changed

+69
-53
lines changed

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

+33-23
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,19 @@
1616
class Resource(Model):
1717
"""Resource.
1818
19+
Common fields that are returned in the response for all Azure Resource
20+
Manager resources.
21+
1922
Variables are only populated by the server, and will be ignored when
2023
sending a request.
2124
22-
:ivar id: Fully qualified resource Id for the resource. Ex -
25+
:ivar id: Fully qualified resource ID for the resource. Ex -
2326
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
2427
:vartype id: str
2528
:ivar name: The name of the resource
2629
:vartype name: str
27-
:ivar type: The type of the resource. Ex-
28-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
30+
:ivar type: The type of the resource. E.g.
31+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
2932
:vartype type: str
3033
"""
3134

@@ -49,19 +52,21 @@ def __init__(self, **kwargs):
4952

5053

5154
class AzureEntityResource(Resource):
52-
"""The resource model definition for a Azure Resource Manager resource with an
53-
etag.
55+
"""Entity Resource.
56+
57+
The resource model definition for an Azure Resource Manager resource with
58+
an etag.
5459
5560
Variables are only populated by the server, and will be ignored when
5661
sending a request.
5762
58-
:ivar id: Fully qualified resource Id for the resource. Ex -
63+
:ivar id: Fully qualified resource ID for the resource. Ex -
5964
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
6065
:vartype id: str
6166
:ivar name: The name of the resource
6267
:vartype name: str
63-
:ivar type: The type of the resource. Ex-
64-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
68+
:ivar type: The type of the resource. E.g.
69+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
6570
:vartype type: str
6671
:ivar etag: Resource Etag.
6772
:vartype etag: str
@@ -236,20 +241,23 @@ def __init__(self, **kwargs):
236241

237242

238243
class TrackedResource(Resource):
239-
"""The resource model definition for a ARM tracked top level resource.
244+
"""Tracked Resource.
245+
246+
The resource model definition for an Azure Resource Manager tracked top
247+
level resource which has 'tags' and a 'location'.
240248
241249
Variables are only populated by the server, and will be ignored when
242250
sending a request.
243251
244252
All required parameters must be populated in order to send to Azure.
245253
246-
:ivar id: Fully qualified resource Id for the resource. Ex -
254+
:ivar id: Fully qualified resource ID for the resource. Ex -
247255
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
248256
:vartype id: str
249257
:ivar name: The name of the resource
250258
:vartype name: str
251-
:ivar type: The type of the resource. Ex-
252-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
259+
:ivar type: The type of the resource. E.g.
260+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
253261
:vartype type: str
254262
:param tags: Resource tags.
255263
:type tags: dict[str, str]
@@ -286,13 +294,13 @@ class Machine(TrackedResource):
286294
287295
All required parameters must be populated in order to send to Azure.
288296
289-
:ivar id: Fully qualified resource Id for the resource. Ex -
297+
:ivar id: Fully qualified resource ID for the resource. Ex -
290298
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
291299
:vartype id: str
292300
:ivar name: The name of the resource
293301
:vartype name: str
294-
:ivar type: The type of the resource. Ex-
295-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
302+
:ivar type: The type of the resource. E.g.
303+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
296304
:vartype type: str
297305
:param tags: Resource tags.
298306
:type tags: dict[str, str]
@@ -429,13 +437,13 @@ class MachineExtension(TrackedResource):
429437
430438
All required parameters must be populated in order to send to Azure.
431439
432-
:ivar id: Fully qualified resource Id for the resource. Ex -
440+
:ivar id: Fully qualified resource ID for the resource. Ex -
433441
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
434442
:vartype id: str
435443
:ivar name: The name of the resource
436444
:vartype name: str
437-
:ivar type: The type of the resource. Ex-
438-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
445+
:ivar type: The type of the resource. E.g.
446+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
439447
:vartype type: str
440448
:param tags: Resource tags.
441449
:type tags: dict[str, str]
@@ -1136,19 +1144,21 @@ def __init__(self, **kwargs):
11361144

11371145

11381146
class ProxyResource(Resource):
1139-
"""The resource model definition for a ARM proxy resource. It will have
1140-
everything other than required location and tags.
1147+
"""Proxy Resource.
1148+
1149+
The resource model definition for a Azure Resource Manager proxy resource.
1150+
It will not have tags and a location.
11411151
11421152
Variables are only populated by the server, and will be ignored when
11431153
sending a request.
11441154
1145-
:ivar id: Fully qualified resource Id for the resource. Ex -
1155+
:ivar id: Fully qualified resource ID for the resource. Ex -
11461156
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
11471157
:vartype id: str
11481158
:ivar name: The name of the resource
11491159
:vartype name: str
1150-
:ivar type: The type of the resource. Ex-
1151-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
1160+
:ivar type: The type of the resource. E.g.
1161+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
11521162
:vartype type: str
11531163
"""
11541164

sdk/hybridcompute/azure-mgmt-hybridcompute/azure/mgmt/hybridcompute/models/_models_py3.py

+33-23
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,19 @@
1616
class Resource(Model):
1717
"""Resource.
1818
19+
Common fields that are returned in the response for all Azure Resource
20+
Manager resources.
21+
1922
Variables are only populated by the server, and will be ignored when
2023
sending a request.
2124
22-
:ivar id: Fully qualified resource Id for the resource. Ex -
25+
:ivar id: Fully qualified resource ID for the resource. Ex -
2326
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
2427
:vartype id: str
2528
:ivar name: The name of the resource
2629
:vartype name: str
27-
:ivar type: The type of the resource. Ex-
28-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
30+
:ivar type: The type of the resource. E.g.
31+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
2932
:vartype type: str
3033
"""
3134

@@ -49,19 +52,21 @@ def __init__(self, **kwargs) -> None:
4952

5053

5154
class AzureEntityResource(Resource):
52-
"""The resource model definition for a Azure Resource Manager resource with an
53-
etag.
55+
"""Entity Resource.
56+
57+
The resource model definition for an Azure Resource Manager resource with
58+
an etag.
5459
5560
Variables are only populated by the server, and will be ignored when
5661
sending a request.
5762
58-
:ivar id: Fully qualified resource Id for the resource. Ex -
63+
:ivar id: Fully qualified resource ID for the resource. Ex -
5964
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
6065
:vartype id: str
6166
:ivar name: The name of the resource
6267
:vartype name: str
63-
:ivar type: The type of the resource. Ex-
64-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
68+
:ivar type: The type of the resource. E.g.
69+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
6570
:vartype type: str
6671
:ivar etag: Resource Etag.
6772
:vartype etag: str
@@ -236,20 +241,23 @@ def __init__(self, *, name: str, city: str=None, district: str=None, country_or_
236241

237242

238243
class TrackedResource(Resource):
239-
"""The resource model definition for a ARM tracked top level resource.
244+
"""Tracked Resource.
245+
246+
The resource model definition for an Azure Resource Manager tracked top
247+
level resource which has 'tags' and a 'location'.
240248
241249
Variables are only populated by the server, and will be ignored when
242250
sending a request.
243251
244252
All required parameters must be populated in order to send to Azure.
245253
246-
:ivar id: Fully qualified resource Id for the resource. Ex -
254+
:ivar id: Fully qualified resource ID for the resource. Ex -
247255
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
248256
:vartype id: str
249257
:ivar name: The name of the resource
250258
:vartype name: str
251-
:ivar type: The type of the resource. Ex-
252-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
259+
:ivar type: The type of the resource. E.g.
260+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
253261
:vartype type: str
254262
:param tags: Resource tags.
255263
:type tags: dict[str, str]
@@ -286,13 +294,13 @@ class Machine(TrackedResource):
286294
287295
All required parameters must be populated in order to send to Azure.
288296
289-
:ivar id: Fully qualified resource Id for the resource. Ex -
297+
:ivar id: Fully qualified resource ID for the resource. Ex -
290298
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
291299
:vartype id: str
292300
:ivar name: The name of the resource
293301
:vartype name: str
294-
:ivar type: The type of the resource. Ex-
295-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
302+
:ivar type: The type of the resource. E.g.
303+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
296304
:vartype type: str
297305
:param tags: Resource tags.
298306
:type tags: dict[str, str]
@@ -429,13 +437,13 @@ class MachineExtension(TrackedResource):
429437
430438
All required parameters must be populated in order to send to Azure.
431439
432-
:ivar id: Fully qualified resource Id for the resource. Ex -
440+
:ivar id: Fully qualified resource ID for the resource. Ex -
433441
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
434442
:vartype id: str
435443
:ivar name: The name of the resource
436444
:vartype name: str
437-
:ivar type: The type of the resource. Ex-
438-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
445+
:ivar type: The type of the resource. E.g.
446+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
439447
:vartype type: str
440448
:param tags: Resource tags.
441449
:type tags: dict[str, str]
@@ -1136,19 +1144,21 @@ def __init__(self, **kwargs) -> None:
11361144

11371145

11381146
class ProxyResource(Resource):
1139-
"""The resource model definition for a ARM proxy resource. It will have
1140-
everything other than required location and tags.
1147+
"""Proxy Resource.
1148+
1149+
The resource model definition for a Azure Resource Manager proxy resource.
1150+
It will not have tags and a location.
11411151
11421152
Variables are only populated by the server, and will be ignored when
11431153
sending a request.
11441154
1145-
:ivar id: Fully qualified resource Id for the resource. Ex -
1155+
:ivar id: Fully qualified resource ID for the resource. Ex -
11461156
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
11471157
:vartype id: str
11481158
:ivar name: The name of the resource
11491159
:vartype name: str
1150-
:ivar type: The type of the resource. Ex-
1151-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
1160+
:ivar type: The type of the resource. E.g.
1161+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
11521162
:vartype type: str
11531163
"""
11541164

sdk/hybridcompute/azure-mgmt-hybridcompute/azure/mgmt/hybridcompute/operations/_machine_extensions_operations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def _update_initial(
201201

202202
def update(
203203
self, resource_group_name, name, extension_name, extension_parameters, custom_headers=None, raw=False, polling=True, **operation_config):
204-
"""The operation to create or update the extension.
204+
"""The operation to update the extension.
205205
206206
:param resource_group_name: The name of the resource group.
207207
:type resource_group_name: str

sdk/hybridcompute/azure-mgmt-hybridcompute/azure/mgmt/hybridcompute/operations/_machines_operations.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,7 @@ def get(
159159

160160
def list_by_resource_group(
161161
self, resource_group_name, custom_headers=None, raw=False, **operation_config):
162-
"""Lists all the hybrid machines in the specified resource group. Use the
163-
nextLink property in the response to get the next page of hybrid
164-
machines.
162+
"""Lists all the hybrid machines in the specified resource group.
165163
166164
:param resource_group_name: The name of the resource group.
167165
:type resource_group_name: str
@@ -229,9 +227,7 @@ def internal_paging(next_link=None):
229227

230228
def list_by_subscription(
231229
self, custom_headers=None, raw=False, **operation_config):
232-
"""Lists all the hybrid machines in the specified subscription. Use the
233-
nextLink property in the response to get the next page of hybrid
234-
machines.
230+
"""Lists all the hybrid machines in the specified subscription.
235231
236232
:param dict custom_headers: headers that will be added to the request
237233
:param bool raw: returns the direct response alongside the

0 commit comments

Comments
 (0)