diff --git a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network.rb b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network.rb index bf5c2a6c6f..92608434cf 100644 --- a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network.rb +++ b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network.rb @@ -92,7 +92,9 @@ module Azure::Network::Mgmt::V2018_12_01 autoload :NetworkManagementClient, '2018-12-01/generated/azure_mgmt_network/network_management_client.rb' module Models + autoload :EffectiveNetworkSecurityGroupListResult, '2018-12-01/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb' autoload :EffectiveRoute, '2018-12-01/generated/azure_mgmt_network/models/effective_route.rb' + autoload :ApplicationGatewayOnDemandProbe, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_on_demand_probe.rb' autoload :EffectiveRouteListResult, '2018-12-01/generated/azure_mgmt_network/models/effective_route_list_result.rb' autoload :SubResource, '2018-12-01/generated/azure_mgmt_network/models/sub_resource.rb' autoload :LoadBalancerBackendAddressPoolListResult, '2018-12-01/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb' @@ -129,19 +131,19 @@ module Models autoload :ExpressRouteGatewayList, '2018-12-01/generated/azure_mgmt_network/models/express_route_gateway_list.rb' autoload :ApplicationGatewayBackendHealthServer, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb' autoload :ExpressRouteConnectionList, '2018-12-01/generated/azure_mgmt_network/models/express_route_connection_list.rb' - autoload :ApplicationGatewayBackendHealthPool, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb' + autoload :ApplicationGatewayBackendHealthOnDemand, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_backend_health_on_demand.rb' autoload :ExpressRoutePortsLocationBandwidths, '2018-12-01/generated/azure_mgmt_network/models/express_route_ports_location_bandwidths.rb' - autoload :ApplicationGatewaySku, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_sku.rb' + autoload :ApplicationGatewayBackendHealth, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_backend_health.rb' autoload :OperationListResult, '2018-12-01/generated/azure_mgmt_network/models/operation_list_result.rb' - autoload :GetVpnSitesConfigurationRequest, '2018-12-01/generated/azure_mgmt_network/models/get_vpn_sites_configuration_request.rb' + autoload :ApplicationGatewaySslPolicy, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb' autoload :ExpressRoutePortsLocationListResult, '2018-12-01/generated/azure_mgmt_network/models/express_route_ports_location_list_result.rb' - autoload :VirtualNetworkGatewaySku, '2018-12-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb' + autoload :VirtualHubRoute, '2018-12-01/generated/azure_mgmt_network/models/virtual_hub_route.rb' autoload :Operation, '2018-12-01/generated/azure_mgmt_network/models/operation.rb' - autoload :PrepareNetworkPoliciesRequest, '2018-12-01/generated/azure_mgmt_network/models/prepare_network_policies_request.rb' + autoload :VirtualHubRouteTable, '2018-12-01/generated/azure_mgmt_network/models/virtual_hub_route_table.rb' autoload :ExpressRouteLinkListResult, '2018-12-01/generated/azure_mgmt_network/models/express_route_link_list_result.rb' - autoload :ApplicationGatewayCustomError, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_custom_error.rb' + autoload :NetworkIntentPolicyConfiguration, '2018-12-01/generated/azure_mgmt_network/models/network_intent_policy_configuration.rb' autoload :OperationPropertiesFormatServiceSpecification, '2018-12-01/generated/azure_mgmt_network/models/operation_properties_format_service_specification.rb' - autoload :VirtualNetworkListUsageResult, '2018-12-01/generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb' + autoload :ListVirtualHubsResult, '2018-12-01/generated/azure_mgmt_network/models/list_virtual_hubs_result.rb' autoload :ExpressRoutePortListResult, '2018-12-01/generated/azure_mgmt_network/models/express_route_port_list_result.rb' autoload :VirtualNetworkUsage, '2018-12-01/generated/azure_mgmt_network/models/virtual_network_usage.rb' autoload :InterfaceEndpointListResult, '2018-12-01/generated/azure_mgmt_network/models/interface_endpoint_list_result.rb' @@ -188,7 +190,7 @@ module Models autoload :AzureFirewallListResult, '2018-12-01/generated/azure_mgmt_network/models/azure_firewall_list_result.rb' autoload :EffectiveNetworkSecurityGroup, '2018-12-01/generated/azure_mgmt_network/models/effective_network_security_group.rb' autoload :AzureFirewallFqdnTagListResult, '2018-12-01/generated/azure_mgmt_network/models/azure_firewall_fqdn_tag_list_result.rb' - autoload :EffectiveNetworkSecurityGroupListResult, '2018-12-01/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb' + autoload :ApplicationGatewayProbeHealthResponseMatch, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb' autoload :ProtocolCustomSettingsFormat, '2018-12-01/generated/azure_mgmt_network/models/protocol_custom_settings_format.rb' autoload :BgpServiceCommunityListResult, '2018-12-01/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb' autoload :NetworkConfigurationDiagnosticResult, '2018-12-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_result.rb' @@ -238,11 +240,11 @@ module Models autoload :NetworkInterfaceAssociation, '2018-12-01/generated/azure_mgmt_network/models/network_interface_association.rb' autoload :ApplicationGatewayBackendHealthHttpSettings, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb' autoload :SubnetAssociation, '2018-12-01/generated/azure_mgmt_network/models/subnet_association.rb' - autoload :ApplicationGatewaySslPolicy, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb' + autoload :ApplicationGatewaySku, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_sku.rb' autoload :SecurityRuleAssociations, '2018-12-01/generated/azure_mgmt_network/models/security_rule_associations.rb' - autoload :VirtualHubRouteTable, '2018-12-01/generated/azure_mgmt_network/models/virtual_hub_route_table.rb' + autoload :VirtualNetworkGatewaySku, '2018-12-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb' autoload :SecurityGroupNetworkInterface, '2018-12-01/generated/azure_mgmt_network/models/security_group_network_interface.rb' - autoload :ListVirtualHubsResult, '2018-12-01/generated/azure_mgmt_network/models/list_virtual_hubs_result.rb' + autoload :ApplicationGatewayCustomError, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_custom_error.rb' autoload :SecurityGroupViewResult, '2018-12-01/generated/azure_mgmt_network/models/security_group_view_result.rb' autoload :VirtualNetworkUsageName, '2018-12-01/generated/azure_mgmt_network/models/virtual_network_usage_name.rb' autoload :PacketCaptureStorageLocation, '2018-12-01/generated/azure_mgmt_network/models/packet_capture_storage_location.rb' @@ -290,9 +292,9 @@ module Models autoload :HTTPConfiguration, '2018-12-01/generated/azure_mgmt_network/models/httpconfiguration.rb' autoload :BgpSettings, '2018-12-01/generated/azure_mgmt_network/models/bgp_settings.rb' autoload :ProtocolConfiguration, '2018-12-01/generated/azure_mgmt_network/models/protocol_configuration.rb' - autoload :ApplicationGatewayBackendHealth, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_backend_health.rb' + autoload :ApplicationGatewayBackendHealthPool, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb' autoload :ConnectivityParameters, '2018-12-01/generated/azure_mgmt_network/models/connectivity_parameters.rb' - autoload :NetworkIntentPolicyConfiguration, '2018-12-01/generated/azure_mgmt_network/models/network_intent_policy_configuration.rb' + autoload :PrepareNetworkPoliciesRequest, '2018-12-01/generated/azure_mgmt_network/models/prepare_network_policies_request.rb' autoload :ConnectivityIssue, '2018-12-01/generated/azure_mgmt_network/models/connectivity_issue.rb' autoload :ApplicationGatewayHeaderConfiguration, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_header_configuration.rb' autoload :ConnectivityHop, '2018-12-01/generated/azure_mgmt_network/models/connectivity_hop.rb' @@ -318,7 +320,7 @@ module Models autoload :AvailableProvidersListCountry, '2018-12-01/generated/azure_mgmt_network/models/available_providers_list_country.rb' autoload :IpsecPolicy, '2018-12-01/generated/azure_mgmt_network/models/ipsec_policy.rb' autoload :AvailableProvidersList, '2018-12-01/generated/azure_mgmt_network/models/available_providers_list.rb' - autoload :ApplicationGatewayProbeHealthResponseMatch, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb' + autoload :VirtualNetworkListUsageResult, '2018-12-01/generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb' autoload :ConnectionMonitorSource, '2018-12-01/generated/azure_mgmt_network/models/connection_monitor_source.rb' autoload :DhcpOptions, '2018-12-01/generated/azure_mgmt_network/models/dhcp_options.rb' autoload :ConnectionMonitorDestination, '2018-12-01/generated/azure_mgmt_network/models/connection_monitor_destination.rb' @@ -329,7 +331,7 @@ module Models autoload :ConnectionMonitorResult, '2018-12-01/generated/azure_mgmt_network/models/connection_monitor_result.rb' autoload :LocalNetworkGatewayListResult, '2018-12-01/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb' autoload :ConnectionMonitorListResult, '2018-12-01/generated/azure_mgmt_network/models/connection_monitor_list_result.rb' - autoload :VirtualHubRoute, '2018-12-01/generated/azure_mgmt_network/models/virtual_hub_route.rb' + autoload :GetVpnSitesConfigurationRequest, '2018-12-01/generated/azure_mgmt_network/models/get_vpn_sites_configuration_request.rb' autoload :ConnectionStateSnapshot, '2018-12-01/generated/azure_mgmt_network/models/connection_state_snapshot.rb' autoload :ApplicationGatewayAvailableSslPredefinedPolicies, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb' autoload :ConnectionMonitorQueryResult, '2018-12-01/generated/azure_mgmt_network/models/connection_monitor_query_result.rb' @@ -444,6 +446,7 @@ module Models autoload :VpnConnection, '2018-12-01/generated/azure_mgmt_network/models/vpn_connection.rb' autoload :VpnGateway, '2018-12-01/generated/azure_mgmt_network/models/vpn_gateway.rb' autoload :P2SVpnGateway, '2018-12-01/generated/azure_mgmt_network/models/p2svpn_gateway.rb' + autoload :ApplicationGatewayProtocol, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_protocol.rb' autoload :IPAllocationMethod, '2018-12-01/generated/azure_mgmt_network/models/ipallocation_method.rb' autoload :SecurityRuleProtocol, '2018-12-01/generated/azure_mgmt_network/models/security_rule_protocol.rb' autoload :SecurityRuleAccess, '2018-12-01/generated/azure_mgmt_network/models/security_rule_access.rb' @@ -452,7 +455,6 @@ module Models autoload :PublicIPAddressSkuName, '2018-12-01/generated/azure_mgmt_network/models/public_ipaddress_sku_name.rb' autoload :IPVersion, '2018-12-01/generated/azure_mgmt_network/models/ipversion.rb' autoload :TransportProtocol, '2018-12-01/generated/azure_mgmt_network/models/transport_protocol.rb' - autoload :ApplicationGatewayProtocol, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_protocol.rb' autoload :ApplicationGatewayCookieBasedAffinity, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb' autoload :ApplicationGatewayBackendHealthServerHealth, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb' autoload :ApplicationGatewaySkuName, '2018-12-01/generated/azure_mgmt_network/models/application_gateway_sku_name.rb' diff --git a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/application_gateways.rb b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/application_gateways.rb index 931df88610..5b2568b4ca 100644 --- a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/application_gateways.rb +++ b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/application_gateways.rb @@ -535,6 +535,57 @@ def backend_health_async(resource_group_name, application_gateway_name, expand = promise end + # + # Gets the backend health for given combination of backend pool and http + # setting of the specified application gateway in a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param application_gateway_name [String] The name of the application gateway. + # @param probe_request [ApplicationGatewayOnDemandProbe] Request body for + # on-demand test probe operation. + # @param expand [String] Expands BackendAddressPool and BackendHttpSettings + # referenced in backend health. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApplicationGatewayBackendHealthOnDemand] operation results. + # + def backend_health_on_demand(resource_group_name, application_gateway_name, probe_request, expand = nil, custom_headers = nil) + response = backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param application_gateway_name [String] The name of the application gateway. + # @param probe_request [ApplicationGatewayOnDemandProbe] Request body for + # on-demand test probe operation. + # @param expand [String] Expands BackendAddressPool and BackendHttpSettings + # referenced in backend health. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + def backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand = nil, custom_headers = nil) + # Send request + promise = begin_backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::Network::Mgmt::V2018_12_01::Models::ApplicationGatewayBackendHealthOnDemand.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + # # Lists all available server variables. # @@ -1723,6 +1774,122 @@ def begin_backend_health_async(resource_group_name, application_gateway_name, ex promise.execute end + # + # Gets the backend health for given combination of backend pool and http + # setting of the specified application gateway in a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param application_gateway_name [String] The name of the application gateway. + # @param probe_request [ApplicationGatewayOnDemandProbe] Request body for + # on-demand test probe operation. + # @param expand [String] Expands BackendAddressPool and BackendHttpSettings + # referenced in backend health. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApplicationGatewayBackendHealthOnDemand] operation results. + # + def begin_backend_health_on_demand(resource_group_name, application_gateway_name, probe_request, expand = nil, custom_headers = nil) + response = begin_backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the backend health for given combination of backend pool and http + # setting of the specified application gateway in a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param application_gateway_name [String] The name of the application gateway. + # @param probe_request [ApplicationGatewayOnDemandProbe] Request body for + # on-demand test probe operation. + # @param expand [String] Expands BackendAddressPool and BackendHttpSettings + # referenced in backend health. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def begin_backend_health_on_demand_with_http_info(resource_group_name, application_gateway_name, probe_request, expand = nil, custom_headers = nil) + begin_backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand, custom_headers).value! + end + + # + # Gets the backend health for given combination of backend pool and http + # setting of the specified application gateway in a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param application_gateway_name [String] The name of the application gateway. + # @param probe_request [ApplicationGatewayOnDemandProbe] Request body for + # on-demand test probe operation. + # @param expand [String] Expands BackendAddressPool and BackendHttpSettings + # referenced in backend health. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def begin_backend_health_on_demand_async(resource_group_name, application_gateway_name, probe_request, expand = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'probe_request is nil' if probe_request.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Network::Mgmt::V2018_12_01::Models::ApplicationGatewayOnDemandProbe.mapper() + request_content = @client.serialize(request_mapper, probe_request) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendHealthOnDemand' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version,'$expand' => expand}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 202 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Network::Mgmt::V2018_12_01::Models::ApplicationGatewayBackendHealthOnDemand.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Lists all application gateways in a resource group. # diff --git a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/models/application_gateway_backend_health_on_demand.rb b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/models/application_gateway_backend_health_on_demand.rb new file mode 100644 index 0000000000..711c7a3c17 --- /dev/null +++ b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/models/application_gateway_backend_health_on_demand.rb @@ -0,0 +1,58 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Network::Mgmt::V2018_12_01 + module Models + # + # Result of on demand test probe + # + class ApplicationGatewayBackendHealthOnDemand + + include MsRestAzure + + # @return [ApplicationGatewayBackendAddressPool] Reference of an + # ApplicationGatewayBackendAddressPool resource. + attr_accessor :backend_address_pool + + # @return [ApplicationGatewayBackendHealthHttpSettings] Application + # gateway BackendHealthHttp settings. + attr_accessor :backend_health_http_settings + + + # + # Mapper for ApplicationGatewayBackendHealthOnDemand class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApplicationGatewayBackendHealthOnDemand', + type: { + name: 'Composite', + class_name: 'ApplicationGatewayBackendHealthOnDemand', + model_properties: { + backend_address_pool: { + required: false, + serialized_name: 'backendAddressPool', + type: { + name: 'Composite', + class_name: 'ApplicationGatewayBackendAddressPool' + } + }, + backend_health_http_settings: { + required: false, + serialized_name: 'backendHealthHttpSettings', + type: { + name: 'Composite', + class_name: 'ApplicationGatewayBackendHealthHttpSettings' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/models/application_gateway_on_demand_probe.rb b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/models/application_gateway_on_demand_probe.rb new file mode 100644 index 0000000000..c35f626f75 --- /dev/null +++ b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/models/application_gateway_on_demand_probe.rb @@ -0,0 +1,124 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Network::Mgmt::V2018_12_01 + module Models + # + # Details of on demand test probe request + # + class ApplicationGatewayOnDemandProbe + + include MsRestAzure + + # @return [ApplicationGatewayProtocol] The protocol used for the probe. + # Possible values are 'Http' and 'Https'. Possible values include: + # 'Http', 'Https' + attr_accessor :protocol + + # @return [String] Host name to send the probe to. + attr_accessor :host + + # @return [String] Relative path of probe. Valid path starts from '/'. + # Probe is sent to ://: + attr_accessor :path + + # @return [Integer] The probe timeout in seconds. Probe marked as failed + # if valid response is not received with this timeout period. Acceptable + # values are from 1 second to 86400 seconds. + attr_accessor :timeout + + # @return [Boolean] Whether the host header should be picked from the + # backend http settings. Default value is false. + attr_accessor :pick_host_name_from_backend_http_settings + + # @return [ApplicationGatewayProbeHealthResponseMatch] Criterion for + # classifying a healthy probe response. + attr_accessor :match + + # @return [String] Name of backend pool of application gateway to which + # probe request will be sent. + attr_accessor :backend_pool_name + + # @return [String] Name of backend http setting of application gateway to + # be used for test probe + attr_accessor :backend_http_setting_name + + + # + # Mapper for ApplicationGatewayOnDemandProbe class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApplicationGatewayOnDemandProbe', + type: { + name: 'Composite', + class_name: 'ApplicationGatewayOnDemandProbe', + model_properties: { + protocol: { + required: false, + serialized_name: 'protocol', + type: { + name: 'String' + } + }, + host: { + required: false, + serialized_name: 'host', + type: { + name: 'String' + } + }, + path: { + required: false, + serialized_name: 'path', + type: { + name: 'String' + } + }, + timeout: { + required: false, + serialized_name: 'timeout', + type: { + name: 'Number' + } + }, + pick_host_name_from_backend_http_settings: { + required: false, + serialized_name: 'pickHostNameFromBackendHttpSettings', + type: { + name: 'Boolean' + } + }, + match: { + required: false, + serialized_name: 'match', + type: { + name: 'Composite', + class_name: 'ApplicationGatewayProbeHealthResponseMatch' + } + }, + backend_pool_name: { + required: false, + serialized_name: 'backendPoolName', + type: { + name: 'String' + } + }, + backend_http_setting_name: { + required: false, + serialized_name: 'backendHttpSettingName', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end