Skip to content

Commit 5b8b05c

Browse files
authored
Generated from 41afecad86851cf0f2955c9042941e245b85d15a (#3285)
Adding ability to use private ip
1 parent d0e9869 commit 5b8b05c

File tree

5 files changed

+22
-14
lines changed

5 files changed

+22
-14
lines changed

azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
ContainerNetworkProtocol,
8787
ContainerGroupRestartPolicy,
8888
ContainerGroupNetworkProtocol,
89+
ContainerGroupIpAddressType,
8990
OperatingSystemTypes,
9091
LogAnalyticsLogType,
9192
ContainerInstanceOperationsOrigin,
@@ -131,6 +132,7 @@
131132
'ContainerNetworkProtocol',
132133
'ContainerGroupRestartPolicy',
133134
'ContainerGroupNetworkProtocol',
135+
'ContainerGroupIpAddressType',
134136
'OperatingSystemTypes',
135137
'LogAnalyticsLogType',
136138
'ContainerInstanceOperationsOrigin',

azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/container_instance_management_client_enums.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ class ContainerGroupNetworkProtocol(str, Enum):
3131
udp = "UDP"
3232

3333

34+
class ContainerGroupIpAddressType(str, Enum):
35+
36+
public = "Public"
37+
private = "Private"
38+
39+
3440
class OperatingSystemTypes(str, Enum):
3541

3642
windows = "Windows"

azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/ip_address.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ class IpAddress(Model):
2222
2323
:param ports: Required. The list of ports exposed on the container group.
2424
:type ports: list[~azure.mgmt.containerinstance.models.Port]
25-
:ivar type: Required. Specifies if the IP is exposed to the public
26-
internet. Default value: "Public" .
27-
:vartype type: str
25+
:param type: Required. Specifies if the IP is exposed to the public
26+
internet. Possible values include: 'Public', 'Private'
27+
:type type: str or
28+
~azure.mgmt.containerinstance.models.ContainerGroupIpAddressType
2829
:param ip: The IP exposed to the public internet.
2930
:type ip: str
3031
:param dns_name_label: The Dns name label for the IP.
@@ -35,7 +36,7 @@ class IpAddress(Model):
3536

3637
_validation = {
3738
'ports': {'required': True},
38-
'type': {'required': True, 'constant': True},
39+
'type': {'required': True},
3940
'fqdn': {'readonly': True},
4041
}
4142

@@ -47,11 +48,10 @@ class IpAddress(Model):
4748
'fqdn': {'key': 'fqdn', 'type': 'str'},
4849
}
4950

50-
type = "Public"
51-
5251
def __init__(self, **kwargs):
5352
super(IpAddress, self).__init__(**kwargs)
5453
self.ports = kwargs.get('ports', None)
54+
self.type = kwargs.get('type', None)
5555
self.ip = kwargs.get('ip', None)
5656
self.dns_name_label = kwargs.get('dns_name_label', None)
5757
self.fqdn = None

azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/ip_address_py3.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ class IpAddress(Model):
2222
2323
:param ports: Required. The list of ports exposed on the container group.
2424
:type ports: list[~azure.mgmt.containerinstance.models.Port]
25-
:ivar type: Required. Specifies if the IP is exposed to the public
26-
internet. Default value: "Public" .
27-
:vartype type: str
25+
:param type: Required. Specifies if the IP is exposed to the public
26+
internet. Possible values include: 'Public', 'Private'
27+
:type type: str or
28+
~azure.mgmt.containerinstance.models.ContainerGroupIpAddressType
2829
:param ip: The IP exposed to the public internet.
2930
:type ip: str
3031
:param dns_name_label: The Dns name label for the IP.
@@ -35,7 +36,7 @@ class IpAddress(Model):
3536

3637
_validation = {
3738
'ports': {'required': True},
38-
'type': {'required': True, 'constant': True},
39+
'type': {'required': True},
3940
'fqdn': {'readonly': True},
4041
}
4142

@@ -47,11 +48,10 @@ class IpAddress(Model):
4748
'fqdn': {'key': 'fqdn', 'type': 'str'},
4849
}
4950

50-
type = "Public"
51-
52-
def __init__(self, *, ports, ip: str=None, dns_name_label: str=None, **kwargs) -> None:
51+
def __init__(self, *, ports, type, ip: str=None, dns_name_label: str=None, **kwargs) -> None:
5352
super(IpAddress, self).__init__(**kwargs)
5453
self.ports = ports
54+
self.type = type
5555
self.ip = ip
5656
self.dns_name_label = dns_name_label
5757
self.fqdn = None

azure-mgmt-containerinstance/azure/mgmt/containerinstance/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "1.1.0"
12+
VERSION = "1.0.0"
1313

0 commit comments

Comments
 (0)