Skip to content

Commit

Permalink
Generated from 41afecad86851cf0f2955c9042941e245b85d15a (#3285)
Browse files Browse the repository at this point in the history
Adding ability to use private ip
  • Loading branch information
AutorestCI authored Sep 6, 2018
1 parent d0e9869 commit 5b8b05c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
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"

0 comments on commit 5b8b05c

Please sign in to comment.