|
| 1 | +# coding=utf-8 |
| 2 | +# -------------------------------------------------------------------------- |
| 3 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 4 | +# Licensed under the MIT License. See License.txt in the project root for |
| 5 | +# license information. |
| 6 | +# |
| 7 | +# Code generated by Microsoft (R) AutoRest Code Generator. |
| 8 | +# Changes may cause incorrect behavior and will be lost if the code is |
| 9 | +# regenerated. |
| 10 | +# -------------------------------------------------------------------------- |
| 11 | + |
| 12 | +from .resource import Resource |
| 13 | + |
| 14 | + |
| 15 | +class ApplicationGateway(Resource): |
| 16 | + """Application gateway resource. |
| 17 | +
|
| 18 | + Variables are only populated by the server, and will be ignored when |
| 19 | + sending a request. |
| 20 | +
|
| 21 | + :param id: Resource ID. |
| 22 | + :type id: str |
| 23 | + :ivar name: Resource name. |
| 24 | + :vartype name: str |
| 25 | + :ivar type: Resource type. |
| 26 | + :vartype type: str |
| 27 | + :param location: Resource location. |
| 28 | + :type location: str |
| 29 | + :param tags: Resource tags. |
| 30 | + :type tags: dict[str, str] |
| 31 | + :param sku: SKU of the application gateway resource. |
| 32 | + :type sku: ~azure.mgmt.network.v2018_07_01.models.ApplicationGatewaySku |
| 33 | + :param ssl_policy: SSL policy of the application gateway resource. |
| 34 | + :type ssl_policy: |
| 35 | + ~azure.mgmt.network.v2018_07_01.models.ApplicationGatewaySslPolicy |
| 36 | + :ivar operational_state: Operational state of the application gateway |
| 37 | + resource. Possible values include: 'Stopped', 'Starting', 'Running', |
| 38 | + 'Stopping' |
| 39 | + :vartype operational_state: str or |
| 40 | + ~azure.mgmt.network.v2018_07_01.models.ApplicationGatewayOperationalState |
| 41 | + :param gateway_ip_configurations: Subnets of application the gateway |
| 42 | + resource. |
| 43 | + :type gateway_ip_configurations: |
| 44 | + list[~azure.mgmt.network.v2018_07_01.models.ApplicationGatewayIPConfiguration] |
| 45 | + :param authentication_certificates: Authentication certificates of the |
| 46 | + application gateway resource. |
| 47 | + :type authentication_certificates: |
| 48 | + list[~azure.mgmt.network.v2018_07_01.models.ApplicationGatewayAuthenticationCertificate] |
| 49 | + :param ssl_certificates: SSL certificates of the application gateway |
| 50 | + resource. |
| 51 | + :type ssl_certificates: |
| 52 | + list[~azure.mgmt.network.v2018_07_01.models.ApplicationGatewaySslCertificate] |
| 53 | + :param frontend_ip_configurations: Frontend IP addresses of the |
| 54 | + application gateway resource. |
| 55 | + :type frontend_ip_configurations: |
| 56 | + list[~azure.mgmt.network.v2018_07_01.models.ApplicationGatewayFrontendIPConfiguration] |
| 57 | + :param frontend_ports: Frontend ports of the application gateway resource. |
| 58 | + :type frontend_ports: |
| 59 | + list[~azure.mgmt.network.v2018_07_01.models.ApplicationGatewayFrontendPort] |
| 60 | + :param probes: Probes of the application gateway resource. |
| 61 | + :type probes: |
| 62 | + list[~azure.mgmt.network.v2018_07_01.models.ApplicationGatewayProbe] |
| 63 | + :param backend_address_pools: Backend address pool of the application |
| 64 | + gateway resource. |
| 65 | + :type backend_address_pools: |
| 66 | + list[~azure.mgmt.network.v2018_07_01.models.ApplicationGatewayBackendAddressPool] |
| 67 | + :param backend_http_settings_collection: Backend http settings of the |
| 68 | + application gateway resource. |
| 69 | + :type backend_http_settings_collection: |
| 70 | + list[~azure.mgmt.network.v2018_07_01.models.ApplicationGatewayBackendHttpSettings] |
| 71 | + :param http_listeners: Http listeners of the application gateway resource. |
| 72 | + :type http_listeners: |
| 73 | + list[~azure.mgmt.network.v2018_07_01.models.ApplicationGatewayHttpListener] |
| 74 | + :param url_path_maps: URL path map of the application gateway resource. |
| 75 | + :type url_path_maps: |
| 76 | + list[~azure.mgmt.network.v2018_07_01.models.ApplicationGatewayUrlPathMap] |
| 77 | + :param request_routing_rules: Request routing rules of the application |
| 78 | + gateway resource. |
| 79 | + :type request_routing_rules: |
| 80 | + list[~azure.mgmt.network.v2018_07_01.models.ApplicationGatewayRequestRoutingRule] |
| 81 | + :param redirect_configurations: Redirect configurations of the application |
| 82 | + gateway resource. |
| 83 | + :type redirect_configurations: |
| 84 | + list[~azure.mgmt.network.v2018_07_01.models.ApplicationGatewayRedirectConfiguration] |
| 85 | + :param web_application_firewall_configuration: Web application firewall |
| 86 | + configuration. |
| 87 | + :type web_application_firewall_configuration: |
| 88 | + ~azure.mgmt.network.v2018_07_01.models.ApplicationGatewayWebApplicationFirewallConfiguration |
| 89 | + :param enable_http2: Whether HTTP2 is enabled on the application gateway |
| 90 | + resource. |
| 91 | + :type enable_http2: bool |
| 92 | + :param enable_fips: Whether FIPS is enabled on the application gateway |
| 93 | + resource. |
| 94 | + :type enable_fips: bool |
| 95 | + :param autoscale_configuration: Autoscale Configuration. |
| 96 | + :type autoscale_configuration: |
| 97 | + ~azure.mgmt.network.v2018_07_01.models.ApplicationGatewayAutoscaleConfiguration |
| 98 | + :param resource_guid: Resource GUID property of the application gateway |
| 99 | + resource. |
| 100 | + :type resource_guid: str |
| 101 | + :param provisioning_state: Provisioning state of the application gateway |
| 102 | + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. |
| 103 | + :type provisioning_state: str |
| 104 | + :param etag: A unique read-only string that changes whenever the resource |
| 105 | + is updated. |
| 106 | + :type etag: str |
| 107 | + :param zones: A list of availability zones denoting where the resource |
| 108 | + needs to come from. |
| 109 | + :type zones: list[str] |
| 110 | + """ |
| 111 | + |
| 112 | + _validation = { |
| 113 | + 'name': {'readonly': True}, |
| 114 | + 'type': {'readonly': True}, |
| 115 | + 'operational_state': {'readonly': True}, |
| 116 | + } |
| 117 | + |
| 118 | + _attribute_map = { |
| 119 | + 'id': {'key': 'id', 'type': 'str'}, |
| 120 | + 'name': {'key': 'name', 'type': 'str'}, |
| 121 | + 'type': {'key': 'type', 'type': 'str'}, |
| 122 | + 'location': {'key': 'location', 'type': 'str'}, |
| 123 | + 'tags': {'key': 'tags', 'type': '{str}'}, |
| 124 | + 'sku': {'key': 'properties.sku', 'type': 'ApplicationGatewaySku'}, |
| 125 | + 'ssl_policy': {'key': 'properties.sslPolicy', 'type': 'ApplicationGatewaySslPolicy'}, |
| 126 | + 'operational_state': {'key': 'properties.operationalState', 'type': 'str'}, |
| 127 | + 'gateway_ip_configurations': {'key': 'properties.gatewayIPConfigurations', 'type': '[ApplicationGatewayIPConfiguration]'}, |
| 128 | + 'authentication_certificates': {'key': 'properties.authenticationCertificates', 'type': '[ApplicationGatewayAuthenticationCertificate]'}, |
| 129 | + 'ssl_certificates': {'key': 'properties.sslCertificates', 'type': '[ApplicationGatewaySslCertificate]'}, |
| 130 | + 'frontend_ip_configurations': {'key': 'properties.frontendIPConfigurations', 'type': '[ApplicationGatewayFrontendIPConfiguration]'}, |
| 131 | + 'frontend_ports': {'key': 'properties.frontendPorts', 'type': '[ApplicationGatewayFrontendPort]'}, |
| 132 | + 'probes': {'key': 'properties.probes', 'type': '[ApplicationGatewayProbe]'}, |
| 133 | + 'backend_address_pools': {'key': 'properties.backendAddressPools', 'type': '[ApplicationGatewayBackendAddressPool]'}, |
| 134 | + 'backend_http_settings_collection': {'key': 'properties.backendHttpSettingsCollection', 'type': '[ApplicationGatewayBackendHttpSettings]'}, |
| 135 | + 'http_listeners': {'key': 'properties.httpListeners', 'type': '[ApplicationGatewayHttpListener]'}, |
| 136 | + 'url_path_maps': {'key': 'properties.urlPathMaps', 'type': '[ApplicationGatewayUrlPathMap]'}, |
| 137 | + 'request_routing_rules': {'key': 'properties.requestRoutingRules', 'type': '[ApplicationGatewayRequestRoutingRule]'}, |
| 138 | + 'redirect_configurations': {'key': 'properties.redirectConfigurations', 'type': '[ApplicationGatewayRedirectConfiguration]'}, |
| 139 | + 'web_application_firewall_configuration': {'key': 'properties.webApplicationFirewallConfiguration', 'type': 'ApplicationGatewayWebApplicationFirewallConfiguration'}, |
| 140 | + 'enable_http2': {'key': 'properties.enableHttp2', 'type': 'bool'}, |
| 141 | + 'enable_fips': {'key': 'properties.enableFips', 'type': 'bool'}, |
| 142 | + 'autoscale_configuration': {'key': 'properties.autoscaleConfiguration', 'type': 'ApplicationGatewayAutoscaleConfiguration'}, |
| 143 | + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, |
| 144 | + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, |
| 145 | + 'etag': {'key': 'etag', 'type': 'str'}, |
| 146 | + 'zones': {'key': 'zones', 'type': '[str]'}, |
| 147 | + } |
| 148 | + |
| 149 | + def __init__(self, **kwargs): |
| 150 | + super(ApplicationGateway, self).__init__(**kwargs) |
| 151 | + self.sku = kwargs.get('sku', None) |
| 152 | + self.ssl_policy = kwargs.get('ssl_policy', None) |
| 153 | + self.operational_state = None |
| 154 | + self.gateway_ip_configurations = kwargs.get('gateway_ip_configurations', None) |
| 155 | + self.authentication_certificates = kwargs.get('authentication_certificates', None) |
| 156 | + self.ssl_certificates = kwargs.get('ssl_certificates', None) |
| 157 | + self.frontend_ip_configurations = kwargs.get('frontend_ip_configurations', None) |
| 158 | + self.frontend_ports = kwargs.get('frontend_ports', None) |
| 159 | + self.probes = kwargs.get('probes', None) |
| 160 | + self.backend_address_pools = kwargs.get('backend_address_pools', None) |
| 161 | + self.backend_http_settings_collection = kwargs.get('backend_http_settings_collection', None) |
| 162 | + self.http_listeners = kwargs.get('http_listeners', None) |
| 163 | + self.url_path_maps = kwargs.get('url_path_maps', None) |
| 164 | + self.request_routing_rules = kwargs.get('request_routing_rules', None) |
| 165 | + self.redirect_configurations = kwargs.get('redirect_configurations', None) |
| 166 | + self.web_application_firewall_configuration = kwargs.get('web_application_firewall_configuration', None) |
| 167 | + self.enable_http2 = kwargs.get('enable_http2', None) |
| 168 | + self.enable_fips = kwargs.get('enable_fips', None) |
| 169 | + self.autoscale_configuration = kwargs.get('autoscale_configuration', None) |
| 170 | + self.resource_guid = kwargs.get('resource_guid', None) |
| 171 | + self.provisioning_state = kwargs.get('provisioning_state', None) |
| 172 | + self.etag = kwargs.get('etag', None) |
| 173 | + self.zones = kwargs.get('zones', None) |
0 commit comments