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
26 changes: 26 additions & 0 deletions azure-mgmt-network/azure/mgmt/network/network_management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,19 @@ def application_security_groups(self):
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def available_delegations(self):
"""Instance depends on the API version:

* 2018-08-01: :class:`AvailableDelegationsOperations<azure.mgmt.network.v2018_08_01.operations.AvailableDelegationsOperations>`
"""
api_version = self._get_api_version('available_delegations')
if api_version == '2018-08-01':
from .v2018_08_01.operations import AvailableDelegationsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def available_endpoint_services(self):
"""Instance depends on the API version:
Expand Down Expand Up @@ -368,6 +381,19 @@ def available_endpoint_services(self):
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def available_resource_group_delegations(self):
"""Instance depends on the API version:

* 2018-08-01: :class:`AvailableResourceGroupDelegationsOperations<azure.mgmt.network.v2018_08_01.operations.AvailableResourceGroupDelegationsOperations>`
"""
api_version = self._get_api_version('available_resource_group_delegations')
if api_version == '2018-08-01':
from .v2018_08_01.operations import AvailableResourceGroupDelegationsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def azure_firewall_fqdn_tags(self):
"""Instance depends on the API version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from .public_ip_address_py3 import PublicIPAddress
from .ip_configuration_py3 import IPConfiguration
from .resource_navigation_link_py3 import ResourceNavigationLink
from .delegation_py3 import Delegation
from .subnet_py3 import Subnet
from .frontend_ip_configuration_py3 import FrontendIPConfiguration
from .virtual_network_tap_py3 import VirtualNetworkTap
Expand Down Expand Up @@ -72,6 +73,7 @@
from .application_gateway_ssl_predefined_policy_py3 import ApplicationGatewaySslPredefinedPolicy
from .resource_py3 import Resource
from .tags_object_py3 import TagsObject
from .available_delegation_py3 import AvailableDelegation
from .azure_firewall_ip_configuration_py3 import AzureFirewallIPConfiguration
from .azure_firewall_rc_action_py3 import AzureFirewallRCAction
from .azure_firewall_application_rule_protocol_py3 import AzureFirewallApplicationRuleProtocol
Expand Down Expand Up @@ -275,6 +277,7 @@
from .public_ip_address import PublicIPAddress
from .ip_configuration import IPConfiguration
from .resource_navigation_link import ResourceNavigationLink
from .delegation import Delegation
from .subnet import Subnet
from .frontend_ip_configuration import FrontendIPConfiguration
from .virtual_network_tap import VirtualNetworkTap
Expand Down Expand Up @@ -317,6 +320,7 @@
from .application_gateway_ssl_predefined_policy import ApplicationGatewaySslPredefinedPolicy
from .resource import Resource
from .tags_object import TagsObject
from .available_delegation import AvailableDelegation
from .azure_firewall_ip_configuration import AzureFirewallIPConfiguration
from .azure_firewall_rc_action import AzureFirewallRCAction
from .azure_firewall_application_rule_protocol import AzureFirewallApplicationRuleProtocol
Expand Down Expand Up @@ -502,6 +506,7 @@
from .application_gateway_paged import ApplicationGatewayPaged
from .application_gateway_ssl_predefined_policy_paged import ApplicationGatewaySslPredefinedPolicyPaged
from .application_security_group_paged import ApplicationSecurityGroupPaged
from .available_delegation_paged import AvailableDelegationPaged
from .azure_firewall_paged import AzureFirewallPaged
from .azure_firewall_fqdn_tag_paged import AzureFirewallFqdnTagPaged
from .ddos_protection_plan_paged import DdosProtectionPlanPaged
Expand Down Expand Up @@ -657,6 +662,7 @@
'PublicIPAddress',
'IPConfiguration',
'ResourceNavigationLink',
'Delegation',
'Subnet',
'FrontendIPConfiguration',
'VirtualNetworkTap',
Expand Down Expand Up @@ -699,6 +705,7 @@
'ApplicationGatewaySslPredefinedPolicy',
'Resource',
'TagsObject',
'AvailableDelegation',
'AzureFirewallIPConfiguration',
'AzureFirewallRCAction',
'AzureFirewallApplicationRuleProtocol',
Expand Down Expand Up @@ -884,6 +891,7 @@
'ApplicationGatewayPaged',
'ApplicationGatewaySslPredefinedPolicyPaged',
'ApplicationSecurityGroupPaged',
'AvailableDelegationPaged',
'AzureFirewallPaged',
'AzureFirewallFqdnTagPaged',
'DdosProtectionPlanPaged',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class AvailableDelegation(Model):
"""The serviceName of an AvailableDelegation indicates a possible delegation
for a subnet.

:param name: The name of the AvailableDelegation resource.
:type name: str
:param id: A unique identifier of the AvailableDelegation resource.
:type id: str
:param type: Resource type.
:type type: str
:param service_name: The name of the service and resource
:type service_name: str
:param actions: Describes the actions permitted to the service upon
delegation
:type actions: list[str]
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'service_name': {'key': 'serviceName', 'type': 'str'},
'actions': {'key': 'actions', 'type': '[str]'},
}

def __init__(self, **kwargs):
super(AvailableDelegation, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.id = kwargs.get('id', None)
self.type = kwargs.get('type', None)
self.service_name = kwargs.get('service_name', None)
self.actions = kwargs.get('actions', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.paging import Paged


class AvailableDelegationPaged(Paged):
"""
A paging container for iterating over a list of :class:`AvailableDelegation <azure.mgmt.network.v2018_08_01.models.AvailableDelegation>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[AvailableDelegation]'}
}

def __init__(self, *args, **kwargs):

super(AvailableDelegationPaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class AvailableDelegation(Model):
"""The serviceName of an AvailableDelegation indicates a possible delegation
for a subnet.

:param name: The name of the AvailableDelegation resource.
:type name: str
:param id: A unique identifier of the AvailableDelegation resource.
:type id: str
:param type: Resource type.
:type type: str
:param service_name: The name of the service and resource
:type service_name: str
:param actions: Describes the actions permitted to the service upon
delegation
:type actions: list[str]
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'service_name': {'key': 'serviceName', 'type': 'str'},
'actions': {'key': 'actions', 'type': '[str]'},
}

def __init__(self, *, name: str=None, id: str=None, type: str=None, service_name: str=None, actions=None, **kwargs) -> None:
super(AvailableDelegation, self).__init__(**kwargs)
self.name = name
self.id = id
self.type = type
self.service_name = service_name
self.actions = actions
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .sub_resource import SubResource


class Delegation(SubResource):
"""Details the service to which the subnet is delegated.

Variables are only populated by the server, and will be ignored when
sending a request.

:param id: Resource ID.
:type id: str
:param service_name: The name of the service to whom the subnet should be
delegated (e.g. Microsoft.Sql/servers)
:type service_name: str
:param actions: Describes the actions permitted to the service upon
delegation
:type actions: list[str]
:ivar provisioning_state: The provisioning state of the resource.
:vartype provisioning_state: str
:param name: The name of the resource that is unique within a subnet. This
name can be used to access the resource.
:type name: str
:param etag: A unique read-only string that changes whenever the resource
is updated.
:type etag: str
"""

_validation = {
'provisioning_state': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'service_name': {'key': 'properties.serviceName', 'type': 'str'},
'actions': {'key': 'properties.actions', 'type': '[str]'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, **kwargs):
super(Delegation, self).__init__(**kwargs)
self.service_name = kwargs.get('service_name', None)
self.actions = kwargs.get('actions', None)
self.provisioning_state = None
self.name = kwargs.get('name', None)
self.etag = kwargs.get('etag', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .sub_resource_py3 import SubResource


class Delegation(SubResource):
"""Details the service to which the subnet is delegated.

Variables are only populated by the server, and will be ignored when
sending a request.

:param id: Resource ID.
:type id: str
:param service_name: The name of the service to whom the subnet should be
delegated (e.g. Microsoft.Sql/servers)
:type service_name: str
:param actions: Describes the actions permitted to the service upon
delegation
:type actions: list[str]
:ivar provisioning_state: The provisioning state of the resource.
:vartype provisioning_state: str
:param name: The name of the resource that is unique within a subnet. This
name can be used to access the resource.
:type name: str
:param etag: A unique read-only string that changes whenever the resource
is updated.
:type etag: str
"""

_validation = {
'provisioning_state': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'service_name': {'key': 'properties.serviceName', 'type': 'str'},
'actions': {'key': 'properties.actions', 'type': '[str]'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, *, id: str=None, service_name: str=None, actions=None, name: str=None, etag: str=None, **kwargs) -> None:
super(Delegation, self).__init__(id=id, **kwargs)
self.service_name = service_name
self.actions = actions
self.provisioning_state = None
self.name = name
self.etag = etag
11 changes: 11 additions & 0 deletions azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/subnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ class Subnet(SubResource):
external resources using subnet.
:type resource_navigation_links:
list[~azure.mgmt.network.v2018_08_01.models.ResourceNavigationLink]
:param delegations: Gets an array of references to the delegations on the
subnet.
:type delegations: list[~azure.mgmt.network.v2018_08_01.models.Delegation]
:ivar purpose: A read-only string identifying the intention of use for
this subnet based on delegations and other user-defined properties.
:vartype purpose: str
:param provisioning_state: The provisioning state of the resource.
:type provisioning_state: str
:param name: The name of the resource that is unique within a resource
Expand All @@ -59,6 +65,7 @@ class Subnet(SubResource):

_validation = {
'ip_configurations': {'readonly': True},
'purpose': {'readonly': True},
}

_attribute_map = {
Expand All @@ -72,6 +79,8 @@ class Subnet(SubResource):
'interface_endpoints': {'key': 'properties.interfaceEndpoints', 'type': '[SubResource]'},
'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[IPConfiguration]'},
'resource_navigation_links': {'key': 'properties.resourceNavigationLinks', 'type': '[ResourceNavigationLink]'},
'delegations': {'key': 'properties.delegations', 'type': '[Delegation]'},
'purpose': {'key': 'properties.purpose', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
Expand All @@ -88,6 +97,8 @@ def __init__(self, **kwargs):
self.interface_endpoints = kwargs.get('interface_endpoints', None)
self.ip_configurations = None
self.resource_navigation_links = kwargs.get('resource_navigation_links', None)
self.delegations = kwargs.get('delegations', None)
self.purpose = None
self.provisioning_state = kwargs.get('provisioning_state', None)
self.name = kwargs.get('name', None)
self.etag = kwargs.get('etag', None)
Loading