Skip to content

Commit dd3deb6

Browse files
author
SDKAuto
committed
CodeGen from PR 16247 in Azure/azure-rest-api-specs
Merge 19c6a8b68043938bba7fa28bb91162332f3d4030 into 865f085
1 parent fbdf6f4 commit dd3deb6

File tree

15 files changed

+57
-41
lines changed

15 files changed

+57
-41
lines changed

sdk/containerinstance/azure-mgmt-containerinstance/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@autorest/[email protected]",
55
"@autorest/[email protected]"
66
],
7-
"commit": "6c02b97dd0d7c5fab35a83cc89dbe369bb583b0c",
7+
"commit": "45e8b28a3c461865f2df96d39504642333175fa3",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
99
"autorest_command": "autorest specification/containerinstance/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.4.5",
1010
"readme": "specification/containerinstance/resource-manager/readme.md"

sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51-
self.api_version = "2021-07-01"
51+
self.api_version = "2021-09-01"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-containerinstance/{}'.format(VERSION))
5454
self._configure(**kwargs)

sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2021-07-01",
3-
"total_api_version_list": ["2021-07-01"],
2+
"chosen_version": "2021-09-01",
3+
"total_api_version_list": ["2021-09-01"],
44
"client": {
55
"name": "ContainerInstanceManagementClient",
66
"filename": "_container_instance_management_client",

sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "9.0.0"
9+
VERSION = "1.0.0b1"

sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2021-07-01"
48+
self.api_version = "2021-09-01"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-containerinstance/{}'.format(VERSION))
5151
self._configure(**kwargs)

sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_container_groups_operations.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def list(
6363
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6464
}
6565
error_map.update(kwargs.pop('error_map', {}))
66-
api_version = "2021-07-01"
66+
api_version = "2021-09-01"
6767
accept = "application/json"
6868

6969
def prepare_request(next_link=None):
@@ -136,7 +136,7 @@ def list_by_resource_group(
136136
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
137137
}
138138
error_map.update(kwargs.pop('error_map', {}))
139-
api_version = "2021-07-01"
139+
api_version = "2021-09-01"
140140
accept = "application/json"
141141

142142
def prepare_request(next_link=None):
@@ -213,7 +213,7 @@ async def get(
213213
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
214214
}
215215
error_map.update(kwargs.pop('error_map', {}))
216-
api_version = "2021-07-01"
216+
api_version = "2021-09-01"
217217
accept = "application/json"
218218

219219
# Construct URL
@@ -261,7 +261,7 @@ async def _create_or_update_initial(
261261
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
262262
}
263263
error_map.update(kwargs.pop('error_map', {}))
264-
api_version = "2021-07-01"
264+
api_version = "2021-09-01"
265265
content_type = kwargs.pop("content_type", "application/json")
266266
accept = "application/json"
267267

@@ -406,7 +406,7 @@ async def update(
406406
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
407407
}
408408
error_map.update(kwargs.pop('error_map', {}))
409-
api_version = "2021-07-01"
409+
api_version = "2021-09-01"
410410
content_type = kwargs.pop("content_type", "application/json")
411411
accept = "application/json"
412412

@@ -458,7 +458,7 @@ async def _delete_initial(
458458
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
459459
}
460460
error_map.update(kwargs.pop('error_map', {}))
461-
api_version = "2021-07-01"
461+
api_version = "2021-09-01"
462462
accept = "application/json"
463463

464464
# Construct URL
@@ -577,7 +577,7 @@ async def _restart_initial(
577577
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
578578
}
579579
error_map.update(kwargs.pop('error_map', {}))
580-
api_version = "2021-07-01"
580+
api_version = "2021-09-01"
581581
accept = "application/json"
582582

583583
# Construct URL
@@ -702,7 +702,7 @@ async def stop(
702702
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
703703
}
704704
error_map.update(kwargs.pop('error_map', {}))
705-
api_version = "2021-07-01"
705+
api_version = "2021-09-01"
706706
accept = "application/json"
707707

708708
# Construct URL
@@ -746,7 +746,7 @@ async def _start_initial(
746746
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
747747
}
748748
error_map.update(kwargs.pop('error_map', {}))
749-
api_version = "2021-07-01"
749+
api_version = "2021-09-01"
750750
accept = "application/json"
751751

752752
# Construct URL
@@ -871,7 +871,7 @@ async def get_outbound_network_dependencies_endpoints(
871871
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
872872
}
873873
error_map.update(kwargs.pop('error_map', {}))
874-
api_version = "2021-07-01"
874+
api_version = "2021-09-01"
875875
accept = "application/json"
876876

877877
# Construct URL

sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_containers_operations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async def list_logs(
7676
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
7777
}
7878
error_map.update(kwargs.pop('error_map', {}))
79-
api_version = "2021-07-01"
79+
api_version = "2021-09-01"
8080
accept = "application/json"
8181

8282
# Construct URL
@@ -148,7 +148,7 @@ async def execute_command(
148148
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
149149
}
150150
error_map.update(kwargs.pop('error_map', {}))
151-
api_version = "2021-07-01"
151+
api_version = "2021-09-01"
152152
content_type = kwargs.pop("content_type", "application/json")
153153
accept = "application/json"
154154

@@ -218,7 +218,7 @@ async def attach(
218218
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
219219
}
220220
error_map.update(kwargs.pop('error_map', {}))
221-
api_version = "2021-07-01"
221+
api_version = "2021-09-01"
222222
accept = "application/json"
223223

224224
# Construct URL

sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_location_operations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def list_usage(
6060
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6161
}
6262
error_map.update(kwargs.pop('error_map', {}))
63-
api_version = "2021-07-01"
63+
api_version = "2021-09-01"
6464
accept = "application/json"
6565

6666
def prepare_request(next_link=None):
@@ -132,7 +132,7 @@ def list_cached_images(
132132
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
133133
}
134134
error_map.update(kwargs.pop('error_map', {}))
135-
api_version = "2021-07-01"
135+
api_version = "2021-09-01"
136136
accept = "application/json"
137137

138138
def prepare_request(next_link=None):
@@ -204,7 +204,7 @@ def list_capabilities(
204204
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
205205
}
206206
error_map.update(kwargs.pop('error_map', {}))
207-
api_version = "2021-07-01"
207+
api_version = "2021-09-01"
208208
accept = "application/json"
209209

210210
def prepare_request(next_link=None):

sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def list(
5757
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
5858
}
5959
error_map.update(kwargs.pop('error_map', {}))
60-
api_version = "2021-07-01"
60+
api_version = "2021-09-01"
6161
accept = "application/json"
6262

6363
def prepare_request(next_link=None):

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,8 @@ class Resource(msrest.serialization.Model):
467467
:type location: str
468468
:param tags: A set of tags. The resource tags.
469469
:type tags: dict[str, str]
470+
:param zones: The zones for the container group.
471+
:type zones: list[str]
470472
"""
471473

472474
_validation = {
@@ -481,6 +483,7 @@ class Resource(msrest.serialization.Model):
481483
'type': {'key': 'type', 'type': 'str'},
482484
'location': {'key': 'location', 'type': 'str'},
483485
'tags': {'key': 'tags', 'type': '{str}'},
486+
'zones': {'key': 'zones', 'type': '[str]'},
484487
}
485488

486489
def __init__(
@@ -493,6 +496,7 @@ def __init__(
493496
self.type = None
494497
self.location = kwargs.get('location', None)
495498
self.tags = kwargs.get('tags', None)
499+
self.zones = kwargs.get('zones', None)
496500

497501

498502
class ContainerGroup(Resource):
@@ -512,6 +516,8 @@ class ContainerGroup(Resource):
512516
:type location: str
513517
:param tags: A set of tags. The resource tags.
514518
:type tags: dict[str, str]
519+
:param zones: The zones for the container group.
520+
:type zones: list[str]
515521
:param identity: The identity of the container group, if configured.
516522
:type identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity
517523
:ivar provisioning_state: The provisioning state of the container group. This only appears in
@@ -570,6 +576,7 @@ class ContainerGroup(Resource):
570576
'type': {'key': 'type', 'type': 'str'},
571577
'location': {'key': 'location', 'type': 'str'},
572578
'tags': {'key': 'tags', 'type': '{str}'},
579+
'zones': {'key': 'zones', 'type': '[str]'},
573580
'identity': {'key': 'identity', 'type': 'ContainerGroupIdentity'},
574581
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
575582
'containers': {'key': 'properties.containers', 'type': '[Container]'},

0 commit comments

Comments
 (0)