Skip to content
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 @@ -37,11 +37,11 @@ class InterfaceEndpoint(Resource):
~azure.mgmt.network.v2018_08_01.models.EndpointService
:param subnet: The ID of the subnet from which the private IP will be
allocated.
:type subnet: ~azure.mgmt.network.v2018_08_01.models.SubResource
:param network_interfaces: Gets an array of references to the network
:type subnet: ~azure.mgmt.network.v2018_08_01.models.Subnet
:ivar network_interfaces: Gets an array of references to the network
interfaces created for this interface endpoint.
:type network_interfaces:
list[~azure.mgmt.network.v2018_08_01.models.SubResource]
:vartype network_interfaces:
list[~azure.mgmt.network.v2018_08_01.models.NetworkInterface]
:ivar owner: A read-only property that identifies who created this
interface endpoint.
:vartype owner: str
Expand All @@ -56,6 +56,7 @@ class InterfaceEndpoint(Resource):
_validation = {
'name': {'readonly': True},
'type': {'readonly': True},
'network_interfaces': {'readonly': True},
'owner': {'readonly': True},
'provisioning_state': {'readonly': True},
}
Expand All @@ -68,8 +69,8 @@ class InterfaceEndpoint(Resource):
'tags': {'key': 'tags', 'type': '{str}'},
'fqdn': {'key': 'properties.fqdn', 'type': 'str'},
'endpoint_service': {'key': 'properties.endpointService', 'type': 'EndpointService'},
'subnet': {'key': 'properties.subnet', 'type': 'SubResource'},
'network_interfaces': {'key': 'properties.networkInterfaces', 'type': '[SubResource]'},
'subnet': {'key': 'properties.subnet', 'type': 'Subnet'},
'network_interfaces': {'key': 'properties.networkInterfaces', 'type': '[NetworkInterface]'},
'owner': {'key': 'properties.owner', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
Expand All @@ -80,7 +81,7 @@ def __init__(self, **kwargs):
self.fqdn = kwargs.get('fqdn', None)
self.endpoint_service = kwargs.get('endpoint_service', None)
self.subnet = kwargs.get('subnet', None)
self.network_interfaces = kwargs.get('network_interfaces', None)
self.network_interfaces = None
self.owner = None
self.provisioning_state = None
self.etag = kwargs.get('etag', None)
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ class InterfaceEndpoint(Resource):
~azure.mgmt.network.v2018_08_01.models.EndpointService
:param subnet: The ID of the subnet from which the private IP will be
allocated.
:type subnet: ~azure.mgmt.network.v2018_08_01.models.SubResource
:param network_interfaces: Gets an array of references to the network
:type subnet: ~azure.mgmt.network.v2018_08_01.models.Subnet
:ivar network_interfaces: Gets an array of references to the network
interfaces created for this interface endpoint.
:type network_interfaces:
list[~azure.mgmt.network.v2018_08_01.models.SubResource]
:vartype network_interfaces:
list[~azure.mgmt.network.v2018_08_01.models.NetworkInterface]
:ivar owner: A read-only property that identifies who created this
interface endpoint.
:vartype owner: str
Expand All @@ -56,6 +56,7 @@ class InterfaceEndpoint(Resource):
_validation = {
'name': {'readonly': True},
'type': {'readonly': True},
'network_interfaces': {'readonly': True},
'owner': {'readonly': True},
'provisioning_state': {'readonly': True},
}
Expand All @@ -68,19 +69,19 @@ class InterfaceEndpoint(Resource):
'tags': {'key': 'tags', 'type': '{str}'},
'fqdn': {'key': 'properties.fqdn', 'type': 'str'},
'endpoint_service': {'key': 'properties.endpointService', 'type': 'EndpointService'},
'subnet': {'key': 'properties.subnet', 'type': 'SubResource'},
'network_interfaces': {'key': 'properties.networkInterfaces', 'type': '[SubResource]'},
'subnet': {'key': 'properties.subnet', 'type': 'Subnet'},
'network_interfaces': {'key': 'properties.networkInterfaces', 'type': '[NetworkInterface]'},
'owner': {'key': 'properties.owner', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, *, id: str=None, location: str=None, tags=None, fqdn: str=None, endpoint_service=None, subnet=None, network_interfaces=None, etag: str=None, **kwargs) -> None:
def __init__(self, *, id: str=None, location: str=None, tags=None, fqdn: str=None, endpoint_service=None, subnet=None, etag: str=None, **kwargs) -> None:
super(InterfaceEndpoint, self).__init__(id=id, location=location, tags=tags, **kwargs)
self.fqdn = fqdn
self.endpoint_service = endpoint_service
self.subnet = subnet
self.network_interfaces = network_interfaces
self.network_interfaces = None
self.owner = None
self.provisioning_state = None
self.etag = etag
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ class NetworkInterface(Resource):
:type enable_ip_forwarding: bool
:ivar hosted_workloads: A list of references to linked BareMetal resources
:vartype hosted_workloads: list[str]
:param linked_resource_type: The type of resource to be linked to this
network interface
:type linked_resource_type: str
:param resource_guid: The resource GUID property of the network interface
resource.
:type resource_guid: str
Expand Down Expand Up @@ -100,7 +97,6 @@ class NetworkInterface(Resource):
'enable_accelerated_networking': {'key': 'properties.enableAcceleratedNetworking', 'type': 'bool'},
'enable_ip_forwarding': {'key': 'properties.enableIPForwarding', 'type': 'bool'},
'hosted_workloads': {'key': 'properties.hostedWorkloads', 'type': '[str]'},
'linked_resource_type': {'key': 'properties.linkedResourceType', 'type': 'str'},
'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
Expand All @@ -119,7 +115,6 @@ def __init__(self, **kwargs):
self.enable_accelerated_networking = kwargs.get('enable_accelerated_networking', None)
self.enable_ip_forwarding = kwargs.get('enable_ip_forwarding', None)
self.hosted_workloads = None
self.linked_resource_type = kwargs.get('linked_resource_type', None)
self.resource_guid = kwargs.get('resource_guid', None)
self.provisioning_state = kwargs.get('provisioning_state', None)
self.etag = kwargs.get('etag', None)
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ class NetworkInterface(Resource):
:type enable_ip_forwarding: bool
:ivar hosted_workloads: A list of references to linked BareMetal resources
:vartype hosted_workloads: list[str]
:param linked_resource_type: The type of resource to be linked to this
network interface
:type linked_resource_type: str
:param resource_guid: The resource GUID property of the network interface
resource.
:type resource_guid: str
Expand Down Expand Up @@ -100,13 +97,12 @@ class NetworkInterface(Resource):
'enable_accelerated_networking': {'key': 'properties.enableAcceleratedNetworking', 'type': 'bool'},
'enable_ip_forwarding': {'key': 'properties.enableIPForwarding', 'type': 'bool'},
'hosted_workloads': {'key': 'properties.hostedWorkloads', 'type': '[str]'},
'linked_resource_type': {'key': 'properties.linkedResourceType', 'type': 'str'},
'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, *, id: str=None, location: str=None, tags=None, virtual_machine=None, network_security_group=None, ip_configurations=None, tap_configurations=None, dns_settings=None, mac_address: str=None, primary: bool=None, enable_accelerated_networking: bool=None, enable_ip_forwarding: bool=None, linked_resource_type: str=None, resource_guid: str=None, provisioning_state: str=None, etag: str=None, **kwargs) -> None:
def __init__(self, *, id: str=None, location: str=None, tags=None, virtual_machine=None, network_security_group=None, ip_configurations=None, tap_configurations=None, dns_settings=None, mac_address: str=None, primary: bool=None, enable_accelerated_networking: bool=None, enable_ip_forwarding: bool=None, resource_guid: str=None, provisioning_state: str=None, etag: str=None, **kwargs) -> None:
super(NetworkInterface, self).__init__(id=id, location=location, tags=tags, **kwargs)
self.virtual_machine = virtual_machine
self.network_security_group = network_security_group
Expand All @@ -119,7 +115,6 @@ def __init__(self, *, id: str=None, location: str=None, tags=None, virtual_machi
self.enable_accelerated_networking = enable_accelerated_networking
self.enable_ip_forwarding = enable_ip_forwarding
self.hosted_workloads = None
self.linked_resource_type = linked_resource_type
self.resource_guid = resource_guid
self.provisioning_state = provisioning_state
self.etag = etag
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class Subnet(SubResource):
:param service_endpoint_policies: An array of service endpoint policies.
:type service_endpoint_policies:
list[~azure.mgmt.network.v2018_08_01.models.ServiceEndpointPolicy]
:param interface_endpoints: An array of references to interface endpoints
:type interface_endpoints:
list[~azure.mgmt.network.v2018_08_01.models.SubResource]
:ivar interface_endpoints: An array of references to interface endpoints
:vartype interface_endpoints:
list[~azure.mgmt.network.v2018_08_01.models.InterfaceEndpoint]
:ivar ip_configurations: Gets an array of references to the network
interface IP configurations using subnet.
:vartype ip_configurations:
Expand Down Expand Up @@ -72,6 +72,7 @@ class Subnet(SubResource):
"""

_validation = {
'interface_endpoints': {'readonly': True},
'ip_configurations': {'readonly': True},
'ip_configuration_profiles': {'readonly': True},
'purpose': {'readonly': True},
Expand All @@ -85,7 +86,7 @@ class Subnet(SubResource):
'route_table': {'key': 'properties.routeTable', 'type': 'RouteTable'},
'service_endpoints': {'key': 'properties.serviceEndpoints', 'type': '[ServiceEndpointPropertiesFormat]'},
'service_endpoint_policies': {'key': 'properties.serviceEndpointPolicies', 'type': '[ServiceEndpointPolicy]'},
'interface_endpoints': {'key': 'properties.interfaceEndpoints', 'type': '[SubResource]'},
'interface_endpoints': {'key': 'properties.interfaceEndpoints', 'type': '[InterfaceEndpoint]'},
'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[IPConfiguration]'},
'ip_configuration_profiles': {'key': 'properties.ipConfigurationProfiles', 'type': '[IPConfigurationProfile]'},
'resource_navigation_links': {'key': 'properties.resourceNavigationLinks', 'type': '[ResourceNavigationLink]'},
Expand All @@ -105,7 +106,7 @@ def __init__(self, **kwargs):
self.route_table = kwargs.get('route_table', None)
self.service_endpoints = kwargs.get('service_endpoints', None)
self.service_endpoint_policies = kwargs.get('service_endpoint_policies', None)
self.interface_endpoints = kwargs.get('interface_endpoints', None)
self.interface_endpoints = None
self.ip_configurations = None
self.ip_configuration_profiles = None
self.resource_navigation_links = kwargs.get('resource_navigation_links', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class Subnet(SubResource):
:param service_endpoint_policies: An array of service endpoint policies.
:type service_endpoint_policies:
list[~azure.mgmt.network.v2018_08_01.models.ServiceEndpointPolicy]
:param interface_endpoints: An array of references to interface endpoints
:type interface_endpoints:
list[~azure.mgmt.network.v2018_08_01.models.SubResource]
:ivar interface_endpoints: An array of references to interface endpoints
:vartype interface_endpoints:
list[~azure.mgmt.network.v2018_08_01.models.InterfaceEndpoint]
:ivar ip_configurations: Gets an array of references to the network
interface IP configurations using subnet.
:vartype ip_configurations:
Expand Down Expand Up @@ -72,6 +72,7 @@ class Subnet(SubResource):
"""

_validation = {
'interface_endpoints': {'readonly': True},
'ip_configurations': {'readonly': True},
'ip_configuration_profiles': {'readonly': True},
'purpose': {'readonly': True},
Expand All @@ -85,7 +86,7 @@ class Subnet(SubResource):
'route_table': {'key': 'properties.routeTable', 'type': 'RouteTable'},
'service_endpoints': {'key': 'properties.serviceEndpoints', 'type': '[ServiceEndpointPropertiesFormat]'},
'service_endpoint_policies': {'key': 'properties.serviceEndpointPolicies', 'type': '[ServiceEndpointPolicy]'},
'interface_endpoints': {'key': 'properties.interfaceEndpoints', 'type': '[SubResource]'},
'interface_endpoints': {'key': 'properties.interfaceEndpoints', 'type': '[InterfaceEndpoint]'},
'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[IPConfiguration]'},
'ip_configuration_profiles': {'key': 'properties.ipConfigurationProfiles', 'type': '[IPConfigurationProfile]'},
'resource_navigation_links': {'key': 'properties.resourceNavigationLinks', 'type': '[ResourceNavigationLink]'},
Expand All @@ -97,15 +98,15 @@ class Subnet(SubResource):
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, *, id: str=None, address_prefix: str=None, address_prefixes=None, network_security_group=None, route_table=None, service_endpoints=None, service_endpoint_policies=None, interface_endpoints=None, resource_navigation_links=None, service_association_links=None, delegations=None, provisioning_state: str=None, name: str=None, etag: str=None, **kwargs) -> None:
def __init__(self, *, id: str=None, address_prefix: str=None, address_prefixes=None, network_security_group=None, route_table=None, service_endpoints=None, service_endpoint_policies=None, resource_navigation_links=None, service_association_links=None, delegations=None, provisioning_state: str=None, name: str=None, etag: str=None, **kwargs) -> None:
super(Subnet, self).__init__(id=id, **kwargs)
self.address_prefix = address_prefix
self.address_prefixes = address_prefixes
self.network_security_group = network_security_group
self.route_table = route_table
self.service_endpoints = service_endpoints
self.service_endpoint_policies = service_endpoint_policies
self.interface_endpoints = interface_endpoints
self.interface_endpoints = None
self.ip_configurations = None
self.ip_configuration_profiles = None
self.resource_navigation_links = resource_navigation_links
Expand Down