-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR network/resource-manager] [Portal Generated] Review request f…
…or Microsoft.Network to add version 2018-10-01 (#3718) * Generated from 1c4c94911c840bcab2e7e7541433713f9de4a819 Updates API version in new specs and examples * Packaging update of azure-mgmt-network * Generated from dd13fa490b5666f900241da864fd4213652d1770 (#3776) Make NIC VM ref readonly * Generated from a8dc3164dab1737d09b57c3ada8c1132aaddfd66 (#3794) change container nics property type on container nic config to resourceid * Generated from a18fe30f1349bb8e07d0ec1f3bf977b0e70d48a0 Revert "Model ContainerNic refs under ContainerNicConfig as sub resources" (#4467) * Revert "Application Gateway - Adds Rewrite rule set for Header CRUD (#4331)" This reverts commit 633d12d5b552b102f874182b8f50266eb97fdc85. * Revert "Port fix from PR 4459 to 2018-10-01 (#4463)" This reverts commit 5ea0c7b8bcf16d992bb1f2b5f3b52208354a4391. * Revert "change container nics property type on container nic config to resourceid (#4459)" This reverts commit baf31d901254dd4bf4f1813e9faeec1c9805f775. * Generated from a34ad413b26c915dad887c853358c77b1c76ee5a (#3798) Revert "change container nics property type on container nic config to resourceid (#4459)" This reverts commit baf31d901254dd4bf4f1813e9faeec1c9805f775. * Generated from f321a6cb703b15bbe927a4b34005830c495c4e34 Fixes the missing array for the header actions (#4497) * Generated from 8f92958053478b5df8f9489654192a68a1532578 Network py 2018-10 * Generated from e58229772d0b26de18f701e416410521e358bb00 Application gateway Identity and Keyvault support (#4387) * identity and keyvault * Capitalization comment * Generated from 428b52b308b52edc6e1dd617cb96ba8ee59e7b92 (#3842) Capitalization comment * Generated from 3749af17da52fd48f69870d8bacc577a54650ad1 (#3861) Ported fix from master branch
- Loading branch information
1 parent
c7f23d9
commit dd334e9
Showing
694 changed files
with
64,979 additions
and
0 deletions.
There are no files selected for viewing
251 changes: 251 additions & 0 deletions
251
azure-mgmt-network/azure/mgmt/network/network_management_client.py
Large diffs are not rendered by default.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
azure-mgmt-network/azure/mgmt/network/v2018_10_01/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# 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 .network_management_client import NetworkManagementClient | ||
from .version import VERSION | ||
|
||
__all__ = ['NetworkManagementClient'] | ||
|
||
__version__ = VERSION | ||
|
1,161 changes: 1,161 additions & 0 deletions
1,161
azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/__init__.py
Large diffs are not rendered by default.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/address_space.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 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 AddressSpace(Model): | ||
"""AddressSpace contains an array of IP address ranges that can be used by | ||
subnets of the virtual network. | ||
:param address_prefixes: A list of address blocks reserved for this | ||
virtual network in CIDR notation. | ||
:type address_prefixes: list[str] | ||
""" | ||
|
||
_attribute_map = { | ||
'address_prefixes': {'key': 'addressPrefixes', 'type': '[str]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(AddressSpace, self).__init__(**kwargs) | ||
self.address_prefixes = kwargs.get('address_prefixes', None) |
30 changes: 30 additions & 0 deletions
30
azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/address_space_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 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 AddressSpace(Model): | ||
"""AddressSpace contains an array of IP address ranges that can be used by | ||
subnets of the virtual network. | ||
:param address_prefixes: A list of address blocks reserved for this | ||
virtual network in CIDR notation. | ||
:type address_prefixes: list[str] | ||
""" | ||
|
||
_attribute_map = { | ||
'address_prefixes': {'key': 'addressPrefixes', 'type': '[str]'}, | ||
} | ||
|
||
def __init__(self, *, address_prefixes=None, **kwargs) -> None: | ||
super(AddressSpace, self).__init__(**kwargs) | ||
self.address_prefixes = address_prefixes |
196 changes: 196 additions & 0 deletions
196
azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,196 @@ | ||
# 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 .resource import Resource | ||
|
||
|
||
class ApplicationGateway(Resource): | ||
"""Application gateway resource. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:param id: Resource ID. | ||
:type id: str | ||
:ivar name: Resource name. | ||
:vartype name: str | ||
:ivar type: Resource type. | ||
:vartype type: str | ||
:param location: Resource location. | ||
:type location: str | ||
:param tags: Resource tags. | ||
:type tags: dict[str, str] | ||
:param sku: SKU of the application gateway resource. | ||
:type sku: ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySku | ||
:param ssl_policy: SSL policy of the application gateway resource. | ||
:type ssl_policy: | ||
~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslPolicy | ||
:ivar operational_state: Operational state of the application gateway | ||
resource. Possible values include: 'Stopped', 'Starting', 'Running', | ||
'Stopping' | ||
:vartype operational_state: str or | ||
~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayOperationalState | ||
:param gateway_ip_configurations: Subnets of application the gateway | ||
resource. | ||
:type gateway_ip_configurations: | ||
list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayIPConfiguration] | ||
:param authentication_certificates: Authentication certificates of the | ||
application gateway resource. | ||
:type authentication_certificates: | ||
list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayAuthenticationCertificate] | ||
:param trusted_root_certificates: Trusted Root certificates of the | ||
application gateway resource. | ||
:type trusted_root_certificates: | ||
list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayTrustedRootCertificate] | ||
:param ssl_certificates: SSL certificates of the application gateway | ||
resource. | ||
:type ssl_certificates: | ||
list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslCertificate] | ||
:param frontend_ip_configurations: Frontend IP addresses of the | ||
application gateway resource. | ||
:type frontend_ip_configurations: | ||
list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFrontendIPConfiguration] | ||
:param frontend_ports: Frontend ports of the application gateway resource. | ||
:type frontend_ports: | ||
list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFrontendPort] | ||
:param probes: Probes of the application gateway resource. | ||
:type probes: | ||
list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayProbe] | ||
:param backend_address_pools: Backend address pool of the application | ||
gateway resource. | ||
:type backend_address_pools: | ||
list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendAddressPool] | ||
:param backend_http_settings_collection: Backend http settings of the | ||
application gateway resource. | ||
:type backend_http_settings_collection: | ||
list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendHttpSettings] | ||
:param http_listeners: Http listeners of the application gateway resource. | ||
:type http_listeners: | ||
list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayHttpListener] | ||
:param url_path_maps: URL path map of the application gateway resource. | ||
:type url_path_maps: | ||
list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayUrlPathMap] | ||
:param request_routing_rules: Request routing rules of the application | ||
gateway resource. | ||
:type request_routing_rules: | ||
list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayRequestRoutingRule] | ||
:param rewrite_rule_sets: Rewrite rules for the application gateway | ||
resource. | ||
:type rewrite_rule_sets: | ||
list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayRewriteRuleSet] | ||
:param redirect_configurations: Redirect configurations of the application | ||
gateway resource. | ||
:type redirect_configurations: | ||
list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayRedirectConfiguration] | ||
:param web_application_firewall_configuration: Web application firewall | ||
configuration. | ||
:type web_application_firewall_configuration: | ||
~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayWebApplicationFirewallConfiguration | ||
:param enable_http2: Whether HTTP2 is enabled on the application gateway | ||
resource. | ||
:type enable_http2: bool | ||
:param enable_fips: Whether FIPS is enabled on the application gateway | ||
resource. | ||
:type enable_fips: bool | ||
:param autoscale_configuration: Autoscale Configuration. | ||
:type autoscale_configuration: | ||
~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayAutoscaleConfiguration | ||
:param resource_guid: Resource GUID property of the application gateway | ||
resource. | ||
:type resource_guid: str | ||
:param provisioning_state: Provisioning state of the application gateway | ||
resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. | ||
:type provisioning_state: str | ||
:param custom_error_configurations: Custom error configurations of the | ||
application gateway resource. | ||
:type custom_error_configurations: | ||
list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayCustomError] | ||
:param etag: A unique read-only string that changes whenever the resource | ||
is updated. | ||
:type etag: str | ||
:param zones: A list of availability zones denoting where the resource | ||
needs to come from. | ||
:type zones: list[str] | ||
:param identity: The identity of the application gateway, if configured. | ||
:type identity: | ||
~azure.mgmt.network.v2018_10_01.models.ManagedServiceIdentity | ||
""" | ||
|
||
_validation = { | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'operational_state': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'location': {'key': 'location', 'type': 'str'}, | ||
'tags': {'key': 'tags', 'type': '{str}'}, | ||
'sku': {'key': 'properties.sku', 'type': 'ApplicationGatewaySku'}, | ||
'ssl_policy': {'key': 'properties.sslPolicy', 'type': 'ApplicationGatewaySslPolicy'}, | ||
'operational_state': {'key': 'properties.operationalState', 'type': 'str'}, | ||
'gateway_ip_configurations': {'key': 'properties.gatewayIPConfigurations', 'type': '[ApplicationGatewayIPConfiguration]'}, | ||
'authentication_certificates': {'key': 'properties.authenticationCertificates', 'type': '[ApplicationGatewayAuthenticationCertificate]'}, | ||
'trusted_root_certificates': {'key': 'properties.trustedRootCertificates', 'type': '[ApplicationGatewayTrustedRootCertificate]'}, | ||
'ssl_certificates': {'key': 'properties.sslCertificates', 'type': '[ApplicationGatewaySslCertificate]'}, | ||
'frontend_ip_configurations': {'key': 'properties.frontendIPConfigurations', 'type': '[ApplicationGatewayFrontendIPConfiguration]'}, | ||
'frontend_ports': {'key': 'properties.frontendPorts', 'type': '[ApplicationGatewayFrontendPort]'}, | ||
'probes': {'key': 'properties.probes', 'type': '[ApplicationGatewayProbe]'}, | ||
'backend_address_pools': {'key': 'properties.backendAddressPools', 'type': '[ApplicationGatewayBackendAddressPool]'}, | ||
'backend_http_settings_collection': {'key': 'properties.backendHttpSettingsCollection', 'type': '[ApplicationGatewayBackendHttpSettings]'}, | ||
'http_listeners': {'key': 'properties.httpListeners', 'type': '[ApplicationGatewayHttpListener]'}, | ||
'url_path_maps': {'key': 'properties.urlPathMaps', 'type': '[ApplicationGatewayUrlPathMap]'}, | ||
'request_routing_rules': {'key': 'properties.requestRoutingRules', 'type': '[ApplicationGatewayRequestRoutingRule]'}, | ||
'rewrite_rule_sets': {'key': 'properties.rewriteRuleSets', 'type': '[ApplicationGatewayRewriteRuleSet]'}, | ||
'redirect_configurations': {'key': 'properties.redirectConfigurations', 'type': '[ApplicationGatewayRedirectConfiguration]'}, | ||
'web_application_firewall_configuration': {'key': 'properties.webApplicationFirewallConfiguration', 'type': 'ApplicationGatewayWebApplicationFirewallConfiguration'}, | ||
'enable_http2': {'key': 'properties.enableHttp2', 'type': 'bool'}, | ||
'enable_fips': {'key': 'properties.enableFips', 'type': 'bool'}, | ||
'autoscale_configuration': {'key': 'properties.autoscaleConfiguration', 'type': 'ApplicationGatewayAutoscaleConfiguration'}, | ||
'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, | ||
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, | ||
'custom_error_configurations': {'key': 'properties.customErrorConfigurations', 'type': '[ApplicationGatewayCustomError]'}, | ||
'etag': {'key': 'etag', 'type': 'str'}, | ||
'zones': {'key': 'zones', 'type': '[str]'}, | ||
'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ApplicationGateway, self).__init__(**kwargs) | ||
self.sku = kwargs.get('sku', None) | ||
self.ssl_policy = kwargs.get('ssl_policy', None) | ||
self.operational_state = None | ||
self.gateway_ip_configurations = kwargs.get('gateway_ip_configurations', None) | ||
self.authentication_certificates = kwargs.get('authentication_certificates', None) | ||
self.trusted_root_certificates = kwargs.get('trusted_root_certificates', None) | ||
self.ssl_certificates = kwargs.get('ssl_certificates', None) | ||
self.frontend_ip_configurations = kwargs.get('frontend_ip_configurations', None) | ||
self.frontend_ports = kwargs.get('frontend_ports', None) | ||
self.probes = kwargs.get('probes', None) | ||
self.backend_address_pools = kwargs.get('backend_address_pools', None) | ||
self.backend_http_settings_collection = kwargs.get('backend_http_settings_collection', None) | ||
self.http_listeners = kwargs.get('http_listeners', None) | ||
self.url_path_maps = kwargs.get('url_path_maps', None) | ||
self.request_routing_rules = kwargs.get('request_routing_rules', None) | ||
self.rewrite_rule_sets = kwargs.get('rewrite_rule_sets', None) | ||
self.redirect_configurations = kwargs.get('redirect_configurations', None) | ||
self.web_application_firewall_configuration = kwargs.get('web_application_firewall_configuration', None) | ||
self.enable_http2 = kwargs.get('enable_http2', None) | ||
self.enable_fips = kwargs.get('enable_fips', None) | ||
self.autoscale_configuration = kwargs.get('autoscale_configuration', None) | ||
self.resource_guid = kwargs.get('resource_guid', None) | ||
self.provisioning_state = kwargs.get('provisioning_state', None) | ||
self.custom_error_configurations = kwargs.get('custom_error_configurations', None) | ||
self.etag = kwargs.get('etag', None) | ||
self.zones = kwargs.get('zones', None) | ||
self.identity = kwargs.get('identity', None) |
51 changes: 51 additions & 0 deletions
51
...k/azure/mgmt/network/v2018_10_01/models/application_gateway_authentication_certificate.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# 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 ApplicationGatewayAuthenticationCertificate(SubResource): | ||
"""Authentication certificates of an application gateway. | ||
:param id: Resource ID. | ||
:type id: str | ||
:param data: Certificate public data. | ||
:type data: str | ||
:param provisioning_state: Provisioning state of the authentication | ||
certificate resource. Possible values are: 'Updating', 'Deleting', and | ||
'Failed'. | ||
:type provisioning_state: str | ||
:param name: Name of the authentication certificate that is unique within | ||
an Application Gateway. | ||
:type name: str | ||
:param etag: A unique read-only string that changes whenever the resource | ||
is updated. | ||
:type etag: str | ||
:param type: Type of the resource. | ||
:type type: str | ||
""" | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'data': {'key': 'properties.data', 'type': 'str'}, | ||
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'etag': {'key': 'etag', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ApplicationGatewayAuthenticationCertificate, self).__init__(**kwargs) | ||
self.data = kwargs.get('data', None) | ||
self.provisioning_state = kwargs.get('provisioning_state', None) | ||
self.name = kwargs.get('name', None) | ||
self.etag = kwargs.get('etag', None) | ||
self.type = kwargs.get('type', None) |
51 changes: 51 additions & 0 deletions
51
...ure/mgmt/network/v2018_10_01/models/application_gateway_authentication_certificate_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# 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 ApplicationGatewayAuthenticationCertificate(SubResource): | ||
"""Authentication certificates of an application gateway. | ||
:param id: Resource ID. | ||
:type id: str | ||
:param data: Certificate public data. | ||
:type data: str | ||
:param provisioning_state: Provisioning state of the authentication | ||
certificate resource. Possible values are: 'Updating', 'Deleting', and | ||
'Failed'. | ||
:type provisioning_state: str | ||
:param name: Name of the authentication certificate that is unique within | ||
an Application Gateway. | ||
:type name: str | ||
:param etag: A unique read-only string that changes whenever the resource | ||
is updated. | ||
:type etag: str | ||
:param type: Type of the resource. | ||
:type type: str | ||
""" | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'data': {'key': 'properties.data', 'type': 'str'}, | ||
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'etag': {'key': 'etag', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, id: str=None, data: str=None, provisioning_state: str=None, name: str=None, etag: str=None, type: str=None, **kwargs) -> None: | ||
super(ApplicationGatewayAuthenticationCertificate, self).__init__(id=id, **kwargs) | ||
self.data = data | ||
self.provisioning_state = provisioning_state | ||
self.name = name | ||
self.etag = etag | ||
self.type = type |
Oops, something went wrong.