@@ -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-
674651class 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+
702705class 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
11461157class 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