Skip to content

Commit 72d376a

Browse files
author
SDKAuto
committed
CodeGen from PR 15721 in Azure/azure-rest-api-specs
Merge edd482a9fdeeb93885b9d7bae0dde88806f187a0 into 4dc3917
1 parent 03516c3 commit 72d376a

File tree

9 files changed

+176
-90
lines changed

9 files changed

+176
-90
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"autorest": "V2",
33
"use": "@microsoft.azure/autorest.python@~4.0.71",
4-
"commit": "09d35de8dd3318687eee441d7ddc54a33bf1a9fa",
4+
"commit": "126d9c646f43afb64bf034e7b9b219123c20675f",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
66
"autorest_command": "autorest specification/containerinstance/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",
77
"readme": "specification/containerinstance/resource-manager/readme.md"

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 = '2021-03-01'
55+
self.api_version = '2021-07-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 & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
from ._models_py3 import ContainerGroupDiagnostics
2525
from ._models_py3 import ContainerGroupIdentity
2626
from ._models_py3 import ContainerGroupIdentityUserAssignedIdentitiesValue
27-
from ._models_py3 import ContainerGroupNetworkProfile
2827
from ._models_py3 import ContainerGroupPropertiesInstanceView
28+
from ._models_py3 import ContainerGroupSubnetId
2929
from ._models_py3 import ContainerHttpGet
3030
from ._models_py3 import ContainerPort
3131
from ._models_py3 import ContainerProbe
@@ -37,7 +37,7 @@
3737
from ._models_py3 import Event
3838
from ._models_py3 import GitRepoVolume
3939
from ._models_py3 import GpuResource
40-
from ._models_py3 import HttpHeaders
40+
from ._models_py3 import HttpHeader
4141
from ._models_py3 import ImageRegistryCredential
4242
from ._models_py3 import InitContainerDefinition
4343
from ._models_py3 import InitContainerPropertiesDefinitionInstanceView
@@ -70,8 +70,8 @@
7070
from ._models import ContainerGroupDiagnostics
7171
from ._models import ContainerGroupIdentity
7272
from ._models import ContainerGroupIdentityUserAssignedIdentitiesValue
73-
from ._models import ContainerGroupNetworkProfile
7473
from ._models import ContainerGroupPropertiesInstanceView
74+
from ._models import ContainerGroupSubnetId
7575
from ._models import ContainerHttpGet
7676
from ._models import ContainerPort
7777
from ._models import ContainerProbe
@@ -83,7 +83,7 @@
8383
from ._models import Event
8484
from ._models import GitRepoVolume
8585
from ._models import GpuResource
86-
from ._models import HttpHeaders
86+
from ._models import HttpHeader
8787
from ._models import ImageRegistryCredential
8888
from ._models import InitContainerDefinition
8989
from ._models import InitContainerPropertiesDefinitionInstanceView
@@ -135,8 +135,8 @@
135135
'ContainerGroupDiagnostics',
136136
'ContainerGroupIdentity',
137137
'ContainerGroupIdentityUserAssignedIdentitiesValue',
138-
'ContainerGroupNetworkProfile',
139138
'ContainerGroupPropertiesInstanceView',
139+
'ContainerGroupSubnetId',
140140
'ContainerHttpGet',
141141
'ContainerPort',
142142
'ContainerProbe',
@@ -148,7 +148,7 @@
148148
'Event',
149149
'GitRepoVolume',
150150
'GpuResource',
151-
'HttpHeaders',
151+
'HttpHeader',
152152
'ImageRegistryCredential',
153153
'InitContainerDefinition',
154154
'InitContainerPropertiesDefinitionInstanceView',

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

Lines changed: 46 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -488,10 +488,9 @@ class ContainerGroup(Resource):
488488
:param diagnostics: The diagnostic information for a container group.
489489
:type diagnostics:
490490
~azure.mgmt.containerinstance.models.ContainerGroupDiagnostics
491-
:param network_profile: The network profile information for a container
492-
group.
493-
:type network_profile:
494-
~azure.mgmt.containerinstance.models.ContainerGroupNetworkProfile
491+
:param subnet_ids: The subnet resource IDs for a container group.
492+
:type subnet_ids:
493+
list[~azure.mgmt.containerinstance.models.ContainerGroupSubnetId]
495494
:param dns_config: The DNS config information for a container group.
496495
:type dns_config: ~azure.mgmt.containerinstance.models.DnsConfiguration
497496
:param sku: The SKU for a container group. Possible values include:
@@ -532,7 +531,7 @@ class ContainerGroup(Resource):
532531
'volumes': {'key': 'properties.volumes', 'type': '[Volume]'},
533532
'instance_view': {'key': 'properties.instanceView', 'type': 'ContainerGroupPropertiesInstanceView'},
534533
'diagnostics': {'key': 'properties.diagnostics', 'type': 'ContainerGroupDiagnostics'},
535-
'network_profile': {'key': 'properties.networkProfile', 'type': 'ContainerGroupNetworkProfile'},
534+
'subnet_ids': {'key': 'properties.subnetIds', 'type': '[ContainerGroupSubnetId]'},
536535
'dns_config': {'key': 'properties.dnsConfig', 'type': 'DnsConfiguration'},
537536
'sku': {'key': 'properties.sku', 'type': 'str'},
538537
'encryption_properties': {'key': 'properties.encryptionProperties', 'type': 'EncryptionProperties'},
@@ -551,7 +550,7 @@ def __init__(self, **kwargs):
551550
self.volumes = kwargs.get('volumes', None)
552551
self.instance_view = None
553552
self.diagnostics = kwargs.get('diagnostics', None)
554-
self.network_profile = kwargs.get('network_profile', None)
553+
self.subnet_ids = kwargs.get('subnet_ids', None)
555554
self.dns_config = kwargs.get('dns_config', None)
556555
self.sku = kwargs.get('sku', None)
557556
self.encryption_properties = kwargs.get('encryption_properties', None)
@@ -649,28 +648,6 @@ def __init__(self, **kwargs):
649648
self.client_id = None
650649

651650

652-
class ContainerGroupNetworkProfile(Model):
653-
"""Container group network profile information.
654-
655-
All required parameters must be populated in order to send to Azure.
656-
657-
:param id: Required. The identifier for a network profile.
658-
:type id: str
659-
"""
660-
661-
_validation = {
662-
'id': {'required': True},
663-
}
664-
665-
_attribute_map = {
666-
'id': {'key': 'id', 'type': 'str'},
667-
}
668-
669-
def __init__(self, **kwargs):
670-
super(ContainerGroupNetworkProfile, self).__init__(**kwargs)
671-
self.id = kwargs.get('id', None)
672-
673-
674651
class ContainerGroupPropertiesInstanceView(Model):
675652
"""The instance view of the container group. Only valid in response.
676653
@@ -699,6 +676,32 @@ def __init__(self, **kwargs):
699676
self.state = None
700677

701678

679+
class ContainerGroupSubnetId(Model):
680+
"""Container group subnet information.
681+
682+
All required parameters must be populated in order to send to Azure.
683+
684+
:param id: Required. Resource ID of virtual network and subnet.
685+
:type id: str
686+
:param name: Friendly name for the subnet.
687+
:type name: str
688+
"""
689+
690+
_validation = {
691+
'id': {'required': True},
692+
}
693+
694+
_attribute_map = {
695+
'id': {'key': 'id', 'type': 'str'},
696+
'name': {'key': 'name', 'type': 'str'},
697+
}
698+
699+
def __init__(self, **kwargs):
700+
super(ContainerGroupSubnetId, self).__init__(**kwargs)
701+
self.id = kwargs.get('id', None)
702+
self.name = kwargs.get('name', None)
703+
704+
702705
class ContainerHttpGet(Model):
703706
"""The container Http Get settings, for liveness or readiness probe.
704707
@@ -711,7 +714,7 @@ class ContainerHttpGet(Model):
711714
:param scheme: The scheme. Possible values include: 'http', 'https'
712715
:type scheme: str or ~azure.mgmt.containerinstance.models.Scheme
713716
:param http_headers: The HTTP headers.
714-
:type http_headers: ~azure.mgmt.containerinstance.models.HttpHeaders
717+
:type http_headers: list[~azure.mgmt.containerinstance.models.HttpHeader]
715718
"""
716719

717720
_validation = {
@@ -722,7 +725,7 @@ class ContainerHttpGet(Model):
722725
'path': {'key': 'path', 'type': 'str'},
723726
'port': {'key': 'port', 'type': 'int'},
724727
'scheme': {'key': 'scheme', 'type': 'str'},
725-
'http_headers': {'key': 'httpHeaders', 'type': 'HttpHeaders'},
728+
'http_headers': {'key': 'httpHeaders', 'type': '[HttpHeader]'},
726729
}
727730

728731
def __init__(self, **kwargs):
@@ -1091,8 +1094,8 @@ def __init__(self, **kwargs):
10911094
self.sku = kwargs.get('sku', None)
10921095

10931096

1094-
class HttpHeaders(Model):
1095-
"""The HTTP headers.
1097+
class HttpHeader(Model):
1098+
"""The HTTP header.
10961099
10971100
:param name: The header name.
10981101
:type name: str
@@ -1106,7 +1109,7 @@ class HttpHeaders(Model):
11061109
}
11071110

11081111
def __init__(self, **kwargs):
1109-
super(HttpHeaders, self).__init__(**kwargs)
1112+
super(HttpHeader, self).__init__(**kwargs)
11101113
self.name = kwargs.get('name', None)
11111114
self.value = kwargs.get('value', None)
11121115

@@ -1123,6 +1126,10 @@ class ImageRegistryCredential(Model):
11231126
:type username: str
11241127
:param password: The password for the private registry.
11251128
:type password: str
1129+
:param identity: The identity for the private registry.
1130+
:type identity: str
1131+
:param identity_url: The identity URL for the private registry.
1132+
:type identity_url: str
11261133
"""
11271134

11281135
_validation = {
@@ -1134,13 +1141,17 @@ class ImageRegistryCredential(Model):
11341141
'server': {'key': 'server', 'type': 'str'},
11351142
'username': {'key': 'username', 'type': 'str'},
11361143
'password': {'key': 'password', 'type': 'str'},
1144+
'identity': {'key': 'identity', 'type': 'str'},
1145+
'identity_url': {'key': 'identityUrl', 'type': 'str'},
11371146
}
11381147

11391148
def __init__(self, **kwargs):
11401149
super(ImageRegistryCredential, self).__init__(**kwargs)
11411150
self.server = kwargs.get('server', None)
11421151
self.username = kwargs.get('username', None)
11431152
self.password = kwargs.get('password', None)
1153+
self.identity = kwargs.get('identity', None)
1154+
self.identity_url = kwargs.get('identity_url', None)
11441155

11451156

11461157
class InitContainerDefinition(Model):
@@ -1297,7 +1308,7 @@ class LogAnalytics(Model):
12971308
:param metadata: Metadata for log analytics.
12981309
:type metadata: dict[str, str]
12991310
:param workspace_resource_id: The workspace resource id for log analytics
1300-
:type workspace_resource_id: dict[str, str]
1311+
:type workspace_resource_id: str
13011312
"""
13021313

13031314
_validation = {
@@ -1310,7 +1321,7 @@ class LogAnalytics(Model):
13101321
'workspace_key': {'key': 'workspaceKey', 'type': 'str'},
13111322
'log_type': {'key': 'logType', 'type': 'str'},
13121323
'metadata': {'key': 'metadata', 'type': '{str}'},
1313-
'workspace_resource_id': {'key': 'workspaceResourceId', 'type': '{str}'},
1324+
'workspace_resource_id': {'key': 'workspaceResourceId', 'type': 'str'},
13141325
}
13151326

13161327
def __init__(self, **kwargs):

0 commit comments

Comments
 (0)