Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR containerinstance/resource-manager] Container Instance: Add Private for Ip Address Enum #3285

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
Expand Up @@ -86,6 +86,7 @@
ContainerNetworkProtocol,
ContainerGroupRestartPolicy,
ContainerGroupNetworkProtocol,
ContainerGroupIpAddressType,
OperatingSystemTypes,
LogAnalyticsLogType,
ContainerInstanceOperationsOrigin,
Expand Down Expand Up @@ -131,6 +132,7 @@
'ContainerNetworkProtocol',
'ContainerGroupRestartPolicy',
'ContainerGroupNetworkProtocol',
'ContainerGroupIpAddressType',
'OperatingSystemTypes',
'LogAnalyticsLogType',
'ContainerInstanceOperationsOrigin',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ class ContainerGroupNetworkProtocol(str, Enum):
udp = "UDP"


class ContainerGroupIpAddressType(str, Enum):

public = "Public"
private = "Private"


class OperatingSystemTypes(str, Enum):

windows = "Windows"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -35,7 +36,7 @@ class IpAddress(Model):

_validation = {
'ports': {'required': True},
'type': {'required': True, 'constant': True},
'type': {'required': True},
'fqdn': {'readonly': True},
}

Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -35,7 +36,7 @@ class IpAddress(Model):

_validation = {
'ports': {'required': True},
'type': {'required': True, 'constant': True},
'type': {'required': True},
'fqdn': {'readonly': True},
}

Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "1.1.0"
VERSION = "1.0.0"