diff --git a/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/__init__.py b/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/__init__.py index 9941b6900203..497cd6a01d8f 100644 --- a/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/__init__.py +++ b/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/__init__.py @@ -86,6 +86,7 @@ ContainerNetworkProtocol, ContainerGroupRestartPolicy, ContainerGroupNetworkProtocol, + ContainerGroupIpAddressType, OperatingSystemTypes, LogAnalyticsLogType, ContainerInstanceOperationsOrigin, @@ -131,6 +132,7 @@ 'ContainerNetworkProtocol', 'ContainerGroupRestartPolicy', 'ContainerGroupNetworkProtocol', + 'ContainerGroupIpAddressType', 'OperatingSystemTypes', 'LogAnalyticsLogType', 'ContainerInstanceOperationsOrigin', diff --git a/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/container_instance_management_client_enums.py b/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/container_instance_management_client_enums.py index a987c8076d04..773b5b98d246 100644 --- a/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/container_instance_management_client_enums.py +++ b/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/container_instance_management_client_enums.py @@ -31,6 +31,12 @@ class ContainerGroupNetworkProtocol(str, Enum): udp = "UDP" +class ContainerGroupIpAddressType(str, Enum): + + public = "Public" + private = "Private" + + class OperatingSystemTypes(str, Enum): windows = "Windows" diff --git a/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/ip_address.py b/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/ip_address.py index 07d02792b719..44737b213cc8 100644 --- a/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/ip_address.py +++ b/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/ip_address.py @@ -22,9 +22,10 @@ class IpAddress(Model): :param ports: Required. The list of ports exposed on the container group. :type ports: list[~azure.mgmt.containerinstance.models.Port] - :ivar type: Required. Specifies if the IP is exposed to the public - internet. Default value: "Public" . - :vartype type: str + :param type: Required. Specifies if the IP is exposed to the public + internet. Possible values include: 'Public', 'Private' + :type type: str or + ~azure.mgmt.containerinstance.models.ContainerGroupIpAddressType :param ip: The IP exposed to the public internet. :type ip: str :param dns_name_label: The Dns name label for the IP. @@ -35,7 +36,7 @@ class IpAddress(Model): _validation = { 'ports': {'required': True}, - 'type': {'required': True, 'constant': True}, + 'type': {'required': True}, 'fqdn': {'readonly': True}, } @@ -47,11 +48,10 @@ class IpAddress(Model): 'fqdn': {'key': 'fqdn', 'type': 'str'}, } - type = "Public" - def __init__(self, **kwargs): super(IpAddress, self).__init__(**kwargs) self.ports = kwargs.get('ports', None) + self.type = kwargs.get('type', None) self.ip = kwargs.get('ip', None) self.dns_name_label = kwargs.get('dns_name_label', None) self.fqdn = None diff --git a/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/ip_address_py3.py b/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/ip_address_py3.py index 752618b68479..6b7f214facaa 100644 --- a/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/ip_address_py3.py +++ b/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/ip_address_py3.py @@ -22,9 +22,10 @@ class IpAddress(Model): :param ports: Required. The list of ports exposed on the container group. :type ports: list[~azure.mgmt.containerinstance.models.Port] - :ivar type: Required. Specifies if the IP is exposed to the public - internet. Default value: "Public" . - :vartype type: str + :param type: Required. Specifies if the IP is exposed to the public + internet. Possible values include: 'Public', 'Private' + :type type: str or + ~azure.mgmt.containerinstance.models.ContainerGroupIpAddressType :param ip: The IP exposed to the public internet. :type ip: str :param dns_name_label: The Dns name label for the IP. @@ -35,7 +36,7 @@ class IpAddress(Model): _validation = { 'ports': {'required': True}, - 'type': {'required': True, 'constant': True}, + 'type': {'required': True}, 'fqdn': {'readonly': True}, } @@ -47,11 +48,10 @@ class IpAddress(Model): 'fqdn': {'key': 'fqdn', 'type': 'str'}, } - type = "Public" - - def __init__(self, *, ports, ip: str=None, dns_name_label: str=None, **kwargs) -> None: + def __init__(self, *, ports, type, ip: str=None, dns_name_label: str=None, **kwargs) -> None: super(IpAddress, self).__init__(**kwargs) self.ports = ports + self.type = type self.ip = ip self.dns_name_label = dns_name_label self.fqdn = None diff --git a/azure-mgmt-containerinstance/azure/mgmt/containerinstance/version.py b/azure-mgmt-containerinstance/azure/mgmt/containerinstance/version.py index 24b9de3384da..a39916c162ce 100644 --- a/azure-mgmt-containerinstance/azure/mgmt/containerinstance/version.py +++ b/azure-mgmt-containerinstance/azure/mgmt/containerinstance/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "1.1.0" +VERSION = "1.0.0"