Skip to content

Commit 3d90a6f

Browse files
author
SDKAuto
committed
CodeGen from PR 12129 in Azure/azure-rest-api-specs
Merge f640ce8b42cebcb951aaf35559aed0b27564fc13 into 97bf9c2
1 parent e1f2009 commit 3d90a6f

File tree

8 files changed

+188
-12
lines changed

8 files changed

+188
-12
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(
5252
super(ContainerInstanceManagementClient, self).__init__(self.config.credentials, self.config)
5353

5454
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
55-
self.api_version = '2019-12-01'
55+
self.api_version = '2020-11-01'
5656
self._serialize = Serializer(client_models)
5757
self._deserialize = Deserializer(client_models)
5858

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from ._models_py3 import Capabilities
1616
from ._models_py3 import CapabilitiesCapabilities
1717
from ._models_py3 import Container
18+
from ._models_py3 import ContainerAttachResponse
1819
from ._models_py3 import ContainerExec
1920
from ._models_py3 import ContainerExecRequest
2021
from ._models_py3 import ContainerExecRequestTerminalSize
@@ -36,6 +37,7 @@
3637
from ._models_py3 import Event
3738
from ._models_py3 import GitRepoVolume
3839
from ._models_py3 import GpuResource
40+
from ._models_py3 import HttpHeaders
3941
from ._models_py3 import ImageRegistryCredential
4042
from ._models_py3 import InitContainerDefinition
4143
from ._models_py3 import InitContainerPropertiesDefinitionInstanceView
@@ -59,6 +61,7 @@
5961
from ._models import Capabilities
6062
from ._models import CapabilitiesCapabilities
6163
from ._models import Container
64+
from ._models import ContainerAttachResponse
6265
from ._models import ContainerExec
6366
from ._models import ContainerExecRequest
6467
from ._models import ContainerExecRequestTerminalSize
@@ -80,6 +83,7 @@
8083
from ._models import Event
8184
from ._models import GitRepoVolume
8285
from ._models import GpuResource
86+
from ._models import HttpHeaders
8387
from ._models import ImageRegistryCredential
8488
from ._models import InitContainerDefinition
8589
from ._models import InitContainerPropertiesDefinitionInstanceView
@@ -122,6 +126,7 @@
122126
'Capabilities',
123127
'CapabilitiesCapabilities',
124128
'Container',
129+
'ContainerAttachResponse',
125130
'ContainerExec',
126131
'ContainerExecRequest',
127132
'ContainerExecRequestTerminalSize',
@@ -143,6 +148,7 @@
143148
'Event',
144149
'GitRepoVolume',
145150
'GpuResource',
151+
'HttpHeaders',
146152
'ImageRegistryCredential',
147153
'InitContainerDefinition',
148154
'InitContainerPropertiesDefinitionInstanceView',

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

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,27 @@ def __init__(self, **kwargs):
294294
self.readiness_probe = kwargs.get('readiness_probe', None)
295295

296296

297+
class ContainerAttachResponse(Model):
298+
"""The information for the output stream from container attach.
299+
300+
:param web_socket_uri: The uri for the output stream from the attach.
301+
:type web_socket_uri: str
302+
:param password: The password to the output stream from the attach. Send
303+
as an Authorization header value when connecting to the websocketUri.
304+
:type password: str
305+
"""
306+
307+
_attribute_map = {
308+
'web_socket_uri': {'key': 'webSocketUri', 'type': 'str'},
309+
'password': {'key': 'password', 'type': 'str'},
310+
}
311+
312+
def __init__(self, **kwargs):
313+
super(ContainerAttachResponse, self).__init__(**kwargs)
314+
self.web_socket_uri = kwargs.get('web_socket_uri', None)
315+
self.password = kwargs.get('password', None)
316+
317+
297318
class ContainerExec(Model):
298319
"""The container execution command, for liveness or readiness probe.
299320
@@ -689,6 +710,8 @@ class ContainerHttpGet(Model):
689710
:type port: int
690711
:param scheme: The scheme. Possible values include: 'http', 'https'
691712
:type scheme: str or ~azure.mgmt.containerinstance.models.Scheme
713+
:param http_headers: The HTTP headers.
714+
:type http_headers: ~azure.mgmt.containerinstance.models.HttpHeaders
692715
"""
693716

694717
_validation = {
@@ -699,13 +722,15 @@ class ContainerHttpGet(Model):
699722
'path': {'key': 'path', 'type': 'str'},
700723
'port': {'key': 'port', 'type': 'int'},
701724
'scheme': {'key': 'scheme', 'type': 'str'},
725+
'http_headers': {'key': 'httpHeaders', 'type': 'HttpHeaders'},
702726
}
703727

704728
def __init__(self, **kwargs):
705729
super(ContainerHttpGet, self).__init__(**kwargs)
706730
self.path = kwargs.get('path', None)
707731
self.port = kwargs.get('port', None)
708732
self.scheme = kwargs.get('scheme', None)
733+
self.http_headers = kwargs.get('http_headers', None)
709734

710735

711736
class ContainerPort(Model):
@@ -1066,6 +1091,26 @@ def __init__(self, **kwargs):
10661091
self.sku = kwargs.get('sku', None)
10671092

10681093

1094+
class HttpHeaders(Model):
1095+
"""The HTTP headers.
1096+
1097+
:param name: The header name.
1098+
:type name: str
1099+
:param value: The header value.
1100+
:type value: str
1101+
"""
1102+
1103+
_attribute_map = {
1104+
'name': {'key': 'name', 'type': 'str'},
1105+
'value': {'key': 'value', 'type': 'str'},
1106+
}
1107+
1108+
def __init__(self, **kwargs):
1109+
super(HttpHeaders, self).__init__(**kwargs)
1110+
self.name = kwargs.get('name', None)
1111+
self.value = kwargs.get('value', None)
1112+
1113+
10691114
class ImageRegistryCredential(Model):
10701115
"""Image registry credential.
10711116
@@ -1251,6 +1296,8 @@ class LogAnalytics(Model):
12511296
~azure.mgmt.containerinstance.models.LogAnalyticsLogType
12521297
:param metadata: Metadata for log analytics.
12531298
:type metadata: dict[str, str]
1299+
:param workspace_resource_id: The workspace resource id for log analytics
1300+
:type workspace_resource_id: dict[str, str]
12541301
"""
12551302

12561303
_validation = {
@@ -1263,6 +1310,7 @@ class LogAnalytics(Model):
12631310
'workspace_key': {'key': 'workspaceKey', 'type': 'str'},
12641311
'log_type': {'key': 'logType', 'type': 'str'},
12651312
'metadata': {'key': 'metadata', 'type': '{str}'},
1313+
'workspace_resource_id': {'key': 'workspaceResourceId', 'type': '{str}'},
12661314
}
12671315

12681316
def __init__(self, **kwargs):
@@ -1271,6 +1319,7 @@ def __init__(self, **kwargs):
12711319
self.workspace_key = kwargs.get('workspace_key', None)
12721320
self.log_type = kwargs.get('log_type', None)
12731321
self.metadata = kwargs.get('metadata', None)
1322+
self.workspace_resource_id = kwargs.get('workspace_resource_id', None)
12741323

12751324

12761325
class Logs(Model):

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

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,27 @@ def __init__(self, *, name: str, image: str, resources, command=None, ports=None
294294
self.readiness_probe = readiness_probe
295295

296296

297+
class ContainerAttachResponse(Model):
298+
"""The information for the output stream from container attach.
299+
300+
:param web_socket_uri: The uri for the output stream from the attach.
301+
:type web_socket_uri: str
302+
:param password: The password to the output stream from the attach. Send
303+
as an Authorization header value when connecting to the websocketUri.
304+
:type password: str
305+
"""
306+
307+
_attribute_map = {
308+
'web_socket_uri': {'key': 'webSocketUri', 'type': 'str'},
309+
'password': {'key': 'password', 'type': 'str'},
310+
}
311+
312+
def __init__(self, *, web_socket_uri: str=None, password: str=None, **kwargs) -> None:
313+
super(ContainerAttachResponse, self).__init__(**kwargs)
314+
self.web_socket_uri = web_socket_uri
315+
self.password = password
316+
317+
297318
class ContainerExec(Model):
298319
"""The container execution command, for liveness or readiness probe.
299320
@@ -689,6 +710,8 @@ class ContainerHttpGet(Model):
689710
:type port: int
690711
:param scheme: The scheme. Possible values include: 'http', 'https'
691712
:type scheme: str or ~azure.mgmt.containerinstance.models.Scheme
713+
:param http_headers: The HTTP headers.
714+
:type http_headers: ~azure.mgmt.containerinstance.models.HttpHeaders
692715
"""
693716

694717
_validation = {
@@ -699,13 +722,15 @@ class ContainerHttpGet(Model):
699722
'path': {'key': 'path', 'type': 'str'},
700723
'port': {'key': 'port', 'type': 'int'},
701724
'scheme': {'key': 'scheme', 'type': 'str'},
725+
'http_headers': {'key': 'httpHeaders', 'type': 'HttpHeaders'},
702726
}
703727

704-
def __init__(self, *, port: int, path: str=None, scheme=None, **kwargs) -> None:
728+
def __init__(self, *, port: int, path: str=None, scheme=None, http_headers=None, **kwargs) -> None:
705729
super(ContainerHttpGet, self).__init__(**kwargs)
706730
self.path = path
707731
self.port = port
708732
self.scheme = scheme
733+
self.http_headers = http_headers
709734

710735

711736
class ContainerPort(Model):
@@ -1066,6 +1091,26 @@ def __init__(self, *, count: int, sku, **kwargs) -> None:
10661091
self.sku = sku
10671092

10681093

1094+
class HttpHeaders(Model):
1095+
"""The HTTP headers.
1096+
1097+
:param name: The header name.
1098+
:type name: str
1099+
:param value: The header value.
1100+
:type value: str
1101+
"""
1102+
1103+
_attribute_map = {
1104+
'name': {'key': 'name', 'type': 'str'},
1105+
'value': {'key': 'value', 'type': 'str'},
1106+
}
1107+
1108+
def __init__(self, *, name: str=None, value: str=None, **kwargs) -> None:
1109+
super(HttpHeaders, self).__init__(**kwargs)
1110+
self.name = name
1111+
self.value = value
1112+
1113+
10691114
class ImageRegistryCredential(Model):
10701115
"""Image registry credential.
10711116
@@ -1251,6 +1296,8 @@ class LogAnalytics(Model):
12511296
~azure.mgmt.containerinstance.models.LogAnalyticsLogType
12521297
:param metadata: Metadata for log analytics.
12531298
:type metadata: dict[str, str]
1299+
:param workspace_resource_id: The workspace resource id for log analytics
1300+
:type workspace_resource_id: dict[str, str]
12541301
"""
12551302

12561303
_validation = {
@@ -1263,14 +1310,16 @@ class LogAnalytics(Model):
12631310
'workspace_key': {'key': 'workspaceKey', 'type': 'str'},
12641311
'log_type': {'key': 'logType', 'type': 'str'},
12651312
'metadata': {'key': 'metadata', 'type': '{str}'},
1313+
'workspace_resource_id': {'key': 'workspaceResourceId', 'type': '{str}'},
12661314
}
12671315

1268-
def __init__(self, *, workspace_id: str, workspace_key: str, log_type=None, metadata=None, **kwargs) -> None:
1316+
def __init__(self, *, workspace_id: str, workspace_key: str, log_type=None, metadata=None, workspace_resource_id=None, **kwargs) -> None:
12691317
super(LogAnalytics, self).__init__(**kwargs)
12701318
self.workspace_id = workspace_id
12711319
self.workspace_key = workspace_key
12721320
self.log_type = log_type
12731321
self.metadata = metadata
1322+
self.workspace_resource_id = workspace_resource_id
12741323

12751324

12761325
class Logs(Model):

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ContainerGroupsOperations(object):
2727
:param config: Configuration of service client.
2828
:param serializer: An object model serializer.
2929
:param deserializer: An object model deserializer.
30-
:ivar api_version: Client API version. Constant value: "2019-12-01".
30+
:ivar api_version: Client API version. Constant value: "2020-11-01".
3131
"""
3232

3333
models = models
@@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer):
3737
self._client = client
3838
self._serialize = serializer
3939
self._deserialize = deserializer
40-
self.api_version = "2019-12-01"
40+
self.api_version = "2020-11-01"
4141

4242
self.config = config
4343

0 commit comments

Comments
 (0)