Skip to content

Commit

Permalink
Generated from 4272bde8d3dc5bf0cba4fc8947c0154889075efa (#2705)
Browse files Browse the repository at this point in the history
added primary flag to the NetworkInterfaceIPConfigurationPropertiesFormat object of networkInterface.json definition of Network 2015-06-15 spec
  • Loading branch information
AutorestCI authored Jun 8, 2018
1 parent 853b1d5 commit 90ef4d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ class NetworkInterfaceIPConfiguration(SubResource):
~azure.mgmt.network.v2015_06_15.models.IPAllocationMethod
:param subnet:
:type subnet: ~azure.mgmt.network.v2015_06_15.models.Subnet
:param primary: Gets whether this is a primary customer address on the
network interface.
:type primary: bool
:param public_ip_address:
:type public_ip_address:
~azure.mgmt.network.v2015_06_15.models.PublicIPAddress
Expand All @@ -54,6 +57,7 @@ class NetworkInterfaceIPConfiguration(SubResource):
'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'},
'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'},
'subnet': {'key': 'properties.subnet', 'type': 'Subnet'},
'primary': {'key': 'properties.primary', 'type': 'bool'},
'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'PublicIPAddress'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
Expand All @@ -67,6 +71,7 @@ def __init__(self, **kwargs):
self.private_ip_address = kwargs.get('private_ip_address', None)
self.private_ip_allocation_method = kwargs.get('private_ip_allocation_method', None)
self.subnet = kwargs.get('subnet', None)
self.primary = kwargs.get('primary', None)
self.public_ip_address = kwargs.get('public_ip_address', None)
self.provisioning_state = kwargs.get('provisioning_state', None)
self.name = kwargs.get('name', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ class NetworkInterfaceIPConfiguration(SubResource):
~azure.mgmt.network.v2015_06_15.models.IPAllocationMethod
:param subnet:
:type subnet: ~azure.mgmt.network.v2015_06_15.models.Subnet
:param primary: Gets whether this is a primary customer address on the
network interface.
:type primary: bool
:param public_ip_address:
:type public_ip_address:
~azure.mgmt.network.v2015_06_15.models.PublicIPAddress
Expand All @@ -54,19 +57,21 @@ class NetworkInterfaceIPConfiguration(SubResource):
'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'},
'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'},
'subnet': {'key': 'properties.subnet', 'type': 'Subnet'},
'primary': {'key': 'properties.primary', 'type': 'bool'},
'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'PublicIPAddress'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, *, id: str=None, load_balancer_backend_address_pools=None, load_balancer_inbound_nat_rules=None, private_ip_address: str=None, private_ip_allocation_method=None, subnet=None, public_ip_address=None, provisioning_state: str=None, name: str=None, etag: str=None, **kwargs) -> None:
def __init__(self, *, id: str=None, load_balancer_backend_address_pools=None, load_balancer_inbound_nat_rules=None, private_ip_address: str=None, private_ip_allocation_method=None, subnet=None, primary: bool=None, public_ip_address=None, provisioning_state: str=None, name: str=None, etag: str=None, **kwargs) -> None:
super(NetworkInterfaceIPConfiguration, self).__init__(id=id, **kwargs)
self.load_balancer_backend_address_pools = load_balancer_backend_address_pools
self.load_balancer_inbound_nat_rules = load_balancer_inbound_nat_rules
self.private_ip_address = private_ip_address
self.private_ip_allocation_method = private_ip_allocation_method
self.subnet = subnet
self.primary = primary
self.public_ip_address = public_ip_address
self.provisioning_state = provisioning_state
self.name = name
Expand Down

0 comments on commit 90ef4d4

Please sign in to comment.