Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Release History

## 9.1.0 (2021-10-13)

**Features**

- Model ContainerGroup has a new parameter zones
- Model Resource has a new parameter zones

## 9.0.0 (2021-09-17)

**Features**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "6c02b97dd0d7c5fab35a83cc89dbe369bb583b0c",
"commit": "314f28163917b9cfc527f7776b5e4a1dea69d295",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"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",
"readme": "specification/containerinstance/resource-manager/readme.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-07-01"
self.api_version = "2021-09-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-containerinstance/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2021-07-01",
"total_api_version_list": ["2021-07-01"],
"chosen_version": "2021-09-01",
"total_api_version_list": ["2021-09-01"],
"client": {
"name": "ContainerInstanceManagementClient",
"filename": "_container_instance_management_client",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "9.0.0"
VERSION = "9.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-07-01"
self.api_version = "2021-09-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-containerinstance/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01"
api_version = "2021-09-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -136,7 +136,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01"
api_version = "2021-09-01"
accept = "application/json"

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

# Construct URL
Expand Down Expand Up @@ -261,7 +261,7 @@ async def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01"
api_version = "2021-09-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

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

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

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

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

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

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

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async def list_logs(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -148,7 +148,7 @@ async def execute_command(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01"
api_version = "2021-09-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

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

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def list_usage(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01"
api_version = "2021-09-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -132,7 +132,7 @@ def list_cached_images(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01"
api_version = "2021-09-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -204,7 +204,7 @@ def list_capabilities(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01"
api_version = "2021-09-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-07-01"
api_version = "2021-09-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,8 @@ class Resource(msrest.serialization.Model):
:type location: str
:param tags: A set of tags. The resource tags.
:type tags: dict[str, str]
:param zones: The zones for the container group.
:type zones: list[str]
"""

_validation = {
Expand All @@ -481,6 +483,7 @@ class Resource(msrest.serialization.Model):
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'zones': {'key': 'zones', 'type': '[str]'},
}

def __init__(
Expand All @@ -493,6 +496,7 @@ def __init__(
self.type = None
self.location = kwargs.get('location', None)
self.tags = kwargs.get('tags', None)
self.zones = kwargs.get('zones', None)


class ContainerGroup(Resource):
Expand All @@ -512,6 +516,8 @@ class ContainerGroup(Resource):
:type location: str
:param tags: A set of tags. The resource tags.
:type tags: dict[str, str]
:param zones: The zones for the container group.
:type zones: list[str]
:param identity: The identity of the container group, if configured.
:type identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity
:ivar provisioning_state: The provisioning state of the container group. This only appears in
Expand Down Expand Up @@ -570,6 +576,7 @@ class ContainerGroup(Resource):
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'zones': {'key': 'zones', 'type': '[str]'},
'identity': {'key': 'identity', 'type': 'ContainerGroupIdentity'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'containers': {'key': 'properties.containers', 'type': '[Container]'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,8 @@ class Resource(msrest.serialization.Model):
:type location: str
:param tags: A set of tags. The resource tags.
:type tags: dict[str, str]
:param zones: The zones for the container group.
:type zones: list[str]
"""

_validation = {
Expand All @@ -528,13 +530,15 @@ class Resource(msrest.serialization.Model):
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'zones': {'key': 'zones', 'type': '[str]'},
}

def __init__(
self,
*,
location: Optional[str] = None,
tags: Optional[Dict[str, str]] = None,
zones: Optional[List[str]] = None,
**kwargs
):
super(Resource, self).__init__(**kwargs)
Expand All @@ -543,6 +547,7 @@ def __init__(
self.type = None
self.location = location
self.tags = tags
self.zones = zones


class ContainerGroup(Resource):
Expand All @@ -562,6 +567,8 @@ class ContainerGroup(Resource):
:type location: str
:param tags: A set of tags. The resource tags.
:type tags: dict[str, str]
:param zones: The zones for the container group.
:type zones: list[str]
:param identity: The identity of the container group, if configured.
:type identity: ~azure.mgmt.containerinstance.models.ContainerGroupIdentity
:ivar provisioning_state: The provisioning state of the container group. This only appears in
Expand Down Expand Up @@ -620,6 +627,7 @@ class ContainerGroup(Resource):
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'zones': {'key': 'zones', 'type': '[str]'},
'identity': {'key': 'identity', 'type': 'ContainerGroupIdentity'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'containers': {'key': 'properties.containers', 'type': '[Container]'},
Expand All @@ -644,6 +652,7 @@ def __init__(
os_type: Union[str, "OperatingSystemTypes"],
location: Optional[str] = None,
tags: Optional[Dict[str, str]] = None,
zones: Optional[List[str]] = None,
identity: Optional["ContainerGroupIdentity"] = None,
image_registry_credentials: Optional[List["ImageRegistryCredential"]] = None,
restart_policy: Optional[Union[str, "ContainerGroupRestartPolicy"]] = None,
Expand All @@ -657,7 +666,7 @@ def __init__(
init_containers: Optional[List["InitContainerDefinition"]] = None,
**kwargs
):
super(ContainerGroup, self).__init__(location=location, tags=tags, **kwargs)
super(ContainerGroup, self).__init__(location=location, tags=tags, zones=zones, **kwargs)
self.identity = identity
self.provisioning_state = None
self.containers = containers
Expand Down
Loading