Class: Azure::Web::Mgmt::V2018_02_01::Diagnostics
- Inherits:
-
Object
- Object
- Azure::Web::Mgmt::V2018_02_01::Diagnostics
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb
Overview
WebSite Management Client
Instance Attribute Summary collapse
-
#client ⇒ WebSiteManagementClient
readonly
Reference to the WebSiteManagementClient.
Instance Method Summary collapse
-
#execute_site_analysis(resource_group_name, site_name, diagnostic_category, analysis_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ DiagnosticAnalysis
Execute Analysis.
-
#execute_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ Concurrent::Promise
Execute Analysis.
-
#execute_site_analysis_slot(resource_group_name, site_name, diagnostic_category, analysis_name, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ DiagnosticAnalysis
Execute Analysis.
-
#execute_site_analysis_slot_async(resource_group_name, site_name, diagnostic_category, analysis_name, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ Concurrent::Promise
Execute Analysis.
-
#execute_site_analysis_slot_with_http_info(resource_group_name, site_name, diagnostic_category, analysis_name, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Execute Analysis.
-
#execute_site_analysis_with_http_info(resource_group_name, site_name, diagnostic_category, analysis_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Execute Analysis.
-
#execute_site_detector(resource_group_name, site_name, detector_name, diagnostic_category, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ DiagnosticDetectorResponse
Execute Detector.
-
#execute_site_detector_async(resource_group_name, site_name, detector_name, diagnostic_category, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ Concurrent::Promise
Execute Detector.
-
#execute_site_detector_slot(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ DiagnosticDetectorResponse
Execute Detector.
-
#execute_site_detector_slot_async(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ Concurrent::Promise
Execute Detector.
-
#execute_site_detector_slot_with_http_info(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Execute Detector.
-
#execute_site_detector_with_http_info(resource_group_name, site_name, detector_name, diagnostic_category, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Execute Detector.
-
#get_hosting_environment_detector_response(resource_group_name, name, detector_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ DetectorResponse
Get Hosting Environment Detector Response.
-
#get_hosting_environment_detector_response_async(resource_group_name, name, detector_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ Concurrent::Promise
Get Hosting Environment Detector Response.
-
#get_hosting_environment_detector_response_with_http_info(resource_group_name, name, detector_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Hosting Environment Detector Response.
-
#get_site_analysis(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers: nil) ⇒ DiagnosticAnalysis
Get Site Analysis.
-
#get_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers: nil) ⇒ Concurrent::Promise
Get Site Analysis.
-
#get_site_analysis_slot(resource_group_name, site_name, diagnostic_category, analysis_name, slot, custom_headers: nil) ⇒ DiagnosticAnalysis
Get Site Analysis.
-
#get_site_analysis_slot_async(resource_group_name, site_name, diagnostic_category, analysis_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get Site Analysis.
-
#get_site_analysis_slot_with_http_info(resource_group_name, site_name, diagnostic_category, analysis_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Site Analysis.
-
#get_site_analysis_with_http_info(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Site Analysis.
-
#get_site_detector(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers: nil) ⇒ Array<DetectorDefinition>
Get Detector.
-
#get_site_detector_as_lazy(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers: nil) ⇒ DiagnosticDetectorCollection
Get Detector.
-
#get_site_detector_async(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers: nil) ⇒ Concurrent::Promise
Get Detector.
-
#get_site_detector_next(next_page_link, custom_headers: nil) ⇒ DiagnosticDetectorCollection
Get Detector.
-
#get_site_detector_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get Detector.
-
#get_site_detector_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Detector.
-
#get_site_detector_response(resource_group_name, site_name, detector_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ DetectorResponse
Get site detector response.
-
#get_site_detector_response_async(resource_group_name, site_name, detector_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ Concurrent::Promise
Get site detector response.
-
#get_site_detector_response_slot(resource_group_name, site_name, detector_name, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ DetectorResponse
Get site detector response.
-
#get_site_detector_response_slot_async(resource_group_name, site_name, detector_name, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ Concurrent::Promise
Get site detector response.
-
#get_site_detector_response_slot_with_http_info(resource_group_name, site_name, detector_name, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get site detector response.
-
#get_site_detector_response_with_http_info(resource_group_name, site_name, detector_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get site detector response.
-
#get_site_detector_slot(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers: nil) ⇒ Array<DetectorDefinition>
Get Detector.
-
#get_site_detector_slot_as_lazy(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers: nil) ⇒ DiagnosticDetectorCollection
Get Detector.
-
#get_site_detector_slot_async(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get Detector.
-
#get_site_detector_slot_next(next_page_link, custom_headers: nil) ⇒ DiagnosticDetectorCollection
Get Detector.
-
#get_site_detector_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get Detector.
-
#get_site_detector_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Detector.
-
#get_site_detector_slot_with_http_info(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Detector.
-
#get_site_detector_with_http_info(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Detector.
-
#get_site_diagnostic_category(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ DiagnosticCategory
Get Diagnostics Category.
-
#get_site_diagnostic_category_async(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ Concurrent::Promise
Get Diagnostics Category.
-
#get_site_diagnostic_category_slot(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ DiagnosticCategory
Get Diagnostics Category.
-
#get_site_diagnostic_category_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get Diagnostics Category.
-
#get_site_diagnostic_category_slot_with_http_info(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Diagnostics Category.
-
#get_site_diagnostic_category_with_http_info(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Diagnostics Category.
-
#initialize(client) ⇒ Diagnostics
constructor
Creates and initializes a new instance of the Diagnostics class.
-
#list_hosting_environment_detector_responses(resource_group_name, name, custom_headers: nil) ⇒ Array<DetectorResponse>
List Hosting Environment Detector Responses.
-
#list_hosting_environment_detector_responses_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ DetectorResponseCollection
List Hosting Environment Detector Responses.
-
#list_hosting_environment_detector_responses_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
List Hosting Environment Detector Responses.
-
#list_hosting_environment_detector_responses_next(next_page_link, custom_headers: nil) ⇒ DetectorResponseCollection
List Hosting Environment Detector Responses.
-
#list_hosting_environment_detector_responses_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List Hosting Environment Detector Responses.
-
#list_hosting_environment_detector_responses_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List Hosting Environment Detector Responses.
-
#list_hosting_environment_detector_responses_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List Hosting Environment Detector Responses.
-
#list_site_analyses(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ Array<AnalysisDefinition>
Get Site Analyses.
-
#list_site_analyses_as_lazy(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ DiagnosticAnalysisCollection
Get Site Analyses.
-
#list_site_analyses_async(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ Concurrent::Promise
Get Site Analyses.
-
#list_site_analyses_next(next_page_link, custom_headers: nil) ⇒ DiagnosticAnalysisCollection
Get Site Analyses.
-
#list_site_analyses_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get Site Analyses.
-
#list_site_analyses_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Site Analyses.
-
#list_site_analyses_slot(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ Array<AnalysisDefinition>
Get Site Analyses.
-
#list_site_analyses_slot_as_lazy(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ DiagnosticAnalysisCollection
Get Site Analyses.
-
#list_site_analyses_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get Site Analyses.
-
#list_site_analyses_slot_next(next_page_link, custom_headers: nil) ⇒ DiagnosticAnalysisCollection
Get Site Analyses.
-
#list_site_analyses_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get Site Analyses.
-
#list_site_analyses_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Site Analyses.
-
#list_site_analyses_slot_with_http_info(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Site Analyses.
-
#list_site_analyses_with_http_info(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Site Analyses.
-
#list_site_detector_responses(resource_group_name, site_name, custom_headers: nil) ⇒ Array<DetectorResponse>
List Site Detector Responses.
-
#list_site_detector_responses_as_lazy(resource_group_name, site_name, custom_headers: nil) ⇒ DetectorResponseCollection
List Site Detector Responses.
-
#list_site_detector_responses_async(resource_group_name, site_name, custom_headers: nil) ⇒ Concurrent::Promise
List Site Detector Responses.
-
#list_site_detector_responses_next(next_page_link, custom_headers: nil) ⇒ DetectorResponseCollection
List Site Detector Responses.
-
#list_site_detector_responses_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List Site Detector Responses.
-
#list_site_detector_responses_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List Site Detector Responses.
-
#list_site_detector_responses_slot(resource_group_name, site_name, slot, custom_headers: nil) ⇒ Array<DetectorResponse>
List Site Detector Responses.
-
#list_site_detector_responses_slot_as_lazy(resource_group_name, site_name, slot, custom_headers: nil) ⇒ DetectorResponseCollection
List Site Detector Responses.
-
#list_site_detector_responses_slot_async(resource_group_name, site_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
List Site Detector Responses.
-
#list_site_detector_responses_slot_next(next_page_link, custom_headers: nil) ⇒ DetectorResponseCollection
List Site Detector Responses.
-
#list_site_detector_responses_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List Site Detector Responses.
-
#list_site_detector_responses_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List Site Detector Responses.
-
#list_site_detector_responses_slot_with_http_info(resource_group_name, site_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List Site Detector Responses.
-
#list_site_detector_responses_with_http_info(resource_group_name, site_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List Site Detector Responses.
-
#list_site_detectors(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ Array<DetectorDefinition>
Get Detectors.
-
#list_site_detectors_as_lazy(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ DiagnosticDetectorCollection
Get Detectors.
-
#list_site_detectors_async(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ Concurrent::Promise
Get Detectors.
-
#list_site_detectors_next(next_page_link, custom_headers: nil) ⇒ DiagnosticDetectorCollection
Get Detectors.
-
#list_site_detectors_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get Detectors.
-
#list_site_detectors_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Detectors.
-
#list_site_detectors_slot(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ Array<DetectorDefinition>
Get Detectors.
-
#list_site_detectors_slot_as_lazy(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ DiagnosticDetectorCollection
Get Detectors.
-
#list_site_detectors_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get Detectors.
-
#list_site_detectors_slot_next(next_page_link, custom_headers: nil) ⇒ DiagnosticDetectorCollection
Get Detectors.
-
#list_site_detectors_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get Detectors.
-
#list_site_detectors_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Detectors.
-
#list_site_detectors_slot_with_http_info(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Detectors.
-
#list_site_detectors_with_http_info(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Detectors.
-
#list_site_diagnostic_categories(resource_group_name, site_name, custom_headers: nil) ⇒ Array<DiagnosticCategory>
Get Diagnostics Categories.
-
#list_site_diagnostic_categories_as_lazy(resource_group_name, site_name, custom_headers: nil) ⇒ DiagnosticCategoryCollection
Get Diagnostics Categories.
-
#list_site_diagnostic_categories_async(resource_group_name, site_name, custom_headers: nil) ⇒ Concurrent::Promise
Get Diagnostics Categories.
-
#list_site_diagnostic_categories_next(next_page_link, custom_headers: nil) ⇒ DiagnosticCategoryCollection
Get Diagnostics Categories.
-
#list_site_diagnostic_categories_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get Diagnostics Categories.
-
#list_site_diagnostic_categories_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Diagnostics Categories.
-
#list_site_diagnostic_categories_slot(resource_group_name, site_name, slot, custom_headers: nil) ⇒ Array<DiagnosticCategory>
Get Diagnostics Categories.
-
#list_site_diagnostic_categories_slot_as_lazy(resource_group_name, site_name, slot, custom_headers: nil) ⇒ DiagnosticCategoryCollection
Get Diagnostics Categories.
-
#list_site_diagnostic_categories_slot_async(resource_group_name, site_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get Diagnostics Categories.
-
#list_site_diagnostic_categories_slot_next(next_page_link, custom_headers: nil) ⇒ DiagnosticCategoryCollection
Get Diagnostics Categories.
-
#list_site_diagnostic_categories_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get Diagnostics Categories.
-
#list_site_diagnostic_categories_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Diagnostics Categories.
-
#list_site_diagnostic_categories_slot_with_http_info(resource_group_name, site_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Diagnostics Categories.
-
#list_site_diagnostic_categories_with_http_info(resource_group_name, site_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Diagnostics Categories.
Constructor Details
#initialize(client) ⇒ Diagnostics
Creates and initializes a new instance of the Diagnostics class.
17 18 19 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 17 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ WebSiteManagementClient (readonly)
Returns reference to the WebSiteManagementClient.
22 23 24 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 22 def client @client end |
Instance Method Details
#execute_site_analysis(resource_group_name, site_name, diagnostic_category, analysis_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ DiagnosticAnalysis
Execute Analysis
Execute Analysis
resource belongs. will be added to the HTTP request.
934 935 936 937 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 934 def execute_site_analysis(resource_group_name, site_name, diagnostic_category, analysis_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) response = execute_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value! response.body unless response.nil? end |
#execute_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ Concurrent::Promise
Execute Analysis
Execute Analysis
resource belongs. to the HTTP request.
979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 979 def execute_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil? fail ArgumentError, 'analysis_name is nil' if analysis_name.nil? fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/analyses/{analysisName}/execute' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'analysisName' => analysis_name,'subscriptionId' => @client.subscription_id}, query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysis.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#execute_site_analysis_slot(resource_group_name, site_name, diagnostic_category, analysis_name, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ DiagnosticAnalysis
Execute Analysis
Execute Analysis
resource belongs. will be added to the HTTP request.
2097 2098 2099 2100 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2097 def execute_site_analysis_slot(resource_group_name, site_name, diagnostic_category, analysis_name, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) response = execute_site_analysis_slot_async(resource_group_name, site_name, diagnostic_category, analysis_name, slot, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value! response.body unless response.nil? end |
#execute_site_analysis_slot_async(resource_group_name, site_name, diagnostic_category, analysis_name, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ Concurrent::Promise
Execute Analysis
Execute Analysis
resource belongs. to the HTTP request.
2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2144 def execute_site_analysis_slot_async(resource_group_name, site_name, diagnostic_category, analysis_name, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil? fail ArgumentError, 'analysis_name is nil' if analysis_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/analyses/{analysisName}/execute' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'analysisName' => analysis_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysis.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#execute_site_analysis_slot_with_http_info(resource_group_name, site_name, diagnostic_category, analysis_name, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Execute Analysis
Execute Analysis
resource belongs. will be added to the HTTP request.
2121 2122 2123 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2121 def execute_site_analysis_slot_with_http_info(resource_group_name, site_name, diagnostic_category, analysis_name, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) execute_site_analysis_slot_async(resource_group_name, site_name, diagnostic_category, analysis_name, slot, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value! end |
#execute_site_analysis_with_http_info(resource_group_name, site_name, diagnostic_category, analysis_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Execute Analysis
Execute Analysis
resource belongs. will be added to the HTTP request.
957 958 959 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 957 def execute_site_analysis_with_http_info(resource_group_name, site_name, diagnostic_category, analysis_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) execute_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value! end |
#execute_site_detector(resource_group_name, site_name, detector_name, diagnostic_category, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ DiagnosticDetectorResponse
Execute Detector
Execute Detector
resource belongs. will be added to the HTTP request.
1282 1283 1284 1285 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1282 def execute_site_detector(resource_group_name, site_name, detector_name, diagnostic_category, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) response = execute_site_detector_async(resource_group_name, site_name, detector_name, diagnostic_category, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value! response.body unless response.nil? end |
#execute_site_detector_async(resource_group_name, site_name, detector_name, diagnostic_category, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ Concurrent::Promise
Execute Detector
Execute Detector
resource belongs. to the HTTP request.
1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1327 def execute_site_detector_async(resource_group_name, site_name, detector_name, diagnostic_category, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'detector_name is nil' if detector_name.nil? fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil? fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors/{detectorName}/execute' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'detectorName' => detector_name,'diagnosticCategory' => diagnostic_category,'subscriptionId' => @client.subscription_id}, query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorResponse.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#execute_site_detector_slot(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ DiagnosticDetectorResponse
Execute Detector
Execute Detector
resource belongs. will be added to the HTTP request.
2457 2458 2459 2460 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2457 def execute_site_detector_slot(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) response = execute_site_detector_slot_async(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value! response.body unless response.nil? end |
#execute_site_detector_slot_async(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ Concurrent::Promise
Execute Detector
Execute Detector
resource belongs. to the HTTP request.
2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2504 def execute_site_detector_slot_async(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'detector_name is nil' if detector_name.nil? fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/detectors/{detectorName}/execute' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'detectorName' => detector_name,'diagnosticCategory' => diagnostic_category,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorResponse.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#execute_site_detector_slot_with_http_info(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Execute Detector
Execute Detector
resource belongs. will be added to the HTTP request.
2481 2482 2483 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2481 def execute_site_detector_slot_with_http_info(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) execute_site_detector_slot_async(resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value! end |
#execute_site_detector_with_http_info(resource_group_name, site_name, detector_name, diagnostic_category, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Execute Detector
Execute Detector
resource belongs. will be added to the HTTP request.
1305 1306 1307 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1305 def execute_site_detector_with_http_info(resource_group_name, site_name, detector_name, diagnostic_category, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) execute_site_detector_async(resource_group_name, site_name, detector_name, diagnostic_category, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value! end |
#get_hosting_environment_detector_response(resource_group_name, name, detector_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ DetectorResponse
Get Hosting Environment Detector Response
Get Hosting Environment Detector Response
resource belongs. will be added to the HTTP request.
147 148 149 150 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 147 def get_hosting_environment_detector_response(resource_group_name, name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) response = get_hosting_environment_detector_response_async(resource_group_name, name, detector_name, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_detector_response_async(resource_group_name, name, detector_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ Concurrent::Promise
Get Hosting Environment Detector Response
Get Hosting Environment Detector Response
resource belongs. to the HTTP request.
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 190 def get_hosting_environment_detector_response_async(resource_group_name, name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'detector_name is nil' if detector_name.nil? fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors/{detectorName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'detectorName' => detector_name,'subscriptionId' => @client.subscription_id}, query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DetectorResponse.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_detector_response_with_http_info(resource_group_name, name, detector_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Hosting Environment Detector Response
Get Hosting Environment Detector Response
resource belongs. will be added to the HTTP request.
169 170 171 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 169 def get_hosting_environment_detector_response_with_http_info(resource_group_name, name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) get_hosting_environment_detector_response_async(resource_group_name, name, detector_name, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value! end |
#get_site_analysis(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers: nil) ⇒ DiagnosticAnalysis
Get Site Analysis
Get Site Analysis
resource belongs. will be added to the HTTP request.
817 818 819 820 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 817 def get_site_analysis(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers:nil) response = get_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers: nil) ⇒ Concurrent::Promise
Get Site Analysis
Get Site Analysis
resource belongs. to the HTTP request.
856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 856 def get_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil? fail ArgumentError, 'analysis_name is nil' if analysis_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/analyses/{analysisName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'analysisName' => analysis_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysis.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_site_analysis_slot(resource_group_name, site_name, diagnostic_category, analysis_name, slot, custom_headers: nil) ⇒ DiagnosticAnalysis
Get Site Analysis
Get Site Analysis
resource belongs. will be added to the HTTP request.
1976 1977 1978 1979 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1976 def get_site_analysis_slot(resource_group_name, site_name, diagnostic_category, analysis_name, slot, custom_headers:nil) response = get_site_analysis_slot_async(resource_group_name, site_name, diagnostic_category, analysis_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_site_analysis_slot_async(resource_group_name, site_name, diagnostic_category, analysis_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get Site Analysis
Get Site Analysis
resource belongs. to the HTTP request.
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2017 def get_site_analysis_slot_async(resource_group_name, site_name, diagnostic_category, analysis_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil? fail ArgumentError, 'analysis_name is nil' if analysis_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/analyses/{analysisName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'analysisName' => analysis_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysis.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_site_analysis_slot_with_http_info(resource_group_name, site_name, diagnostic_category, analysis_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Site Analysis
Get Site Analysis
resource belongs. will be added to the HTTP request.
1997 1998 1999 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1997 def get_site_analysis_slot_with_http_info(resource_group_name, site_name, diagnostic_category, analysis_name, slot, custom_headers:nil) get_site_analysis_slot_async(resource_group_name, site_name, diagnostic_category, analysis_name, slot, custom_headers:custom_headers).value! end |
#get_site_analysis_with_http_info(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Site Analysis
Get Site Analysis
resource belongs. will be added to the HTTP request.
837 838 839 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 837 def get_site_analysis_with_http_info(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers:nil) get_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers:custom_headers).value! end |
#get_site_detector(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers: nil) ⇒ Array<DetectorDefinition>
Get Detector
Get Detector
resource belongs. will be added to the HTTP request.
1165 1166 1167 1168 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1165 def get_site_detector(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers:nil) first_page = get_site_detector_as_lazy(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers:custom_headers) first_page.get_all_items end |
#get_site_detector_as_lazy(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers: nil) ⇒ DiagnosticDetectorCollection
Get Detector
Get Detector
resource belongs. will be added to the HTTP request.
the response.
3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3765 def get_site_detector_as_lazy(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers:nil) response = get_site_detector_async(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| get_site_detector_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#get_site_detector_async(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers: nil) ⇒ Concurrent::Promise
Get Detector
Get Detector
resource belongs. to the HTTP request.
1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1204 def get_site_detector_async(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil? fail ArgumentError, 'detector_name is nil' if detector_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors/{detectorName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'detectorName' => detector_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_site_detector_next(next_page_link, custom_headers: nil) ⇒ DiagnosticDetectorCollection
Get Detector
Get Detector
to List operation. will be added to the HTTP request.
3058 3059 3060 3061 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3058 def get_site_detector_next(next_page_link, custom_headers:nil) response = get_site_detector_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_site_detector_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get Detector
Get Detector
to List operation. to the HTTP request.
3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3091 def get_site_detector_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_site_detector_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Detector
Get Detector
to List operation. will be added to the HTTP request.
3075 3076 3077 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3075 def get_site_detector_next_with_http_info(next_page_link, custom_headers:nil) get_site_detector_next_async(next_page_link, custom_headers:custom_headers).value! end |
#get_site_detector_response(resource_group_name, site_name, detector_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ DetectorResponse
Get site detector response
Get site detector response
resource belongs. will be added to the HTTP request.
373 374 375 376 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 373 def get_site_detector_response(resource_group_name, site_name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) response = get_site_detector_response_async(resource_group_name, site_name, detector_name, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_site_detector_response_async(resource_group_name, site_name, detector_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ Concurrent::Promise
Get site detector response
Get site detector response
resource belongs. to the HTTP request.
416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 416 def get_site_detector_response_async(resource_group_name, site_name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'detector_name is nil' if detector_name.nil? fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors/{detectorName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'detectorName' => detector_name,'subscriptionId' => @client.subscription_id}, query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DetectorResponse.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_site_detector_response_slot(resource_group_name, site_name, detector_name, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ DetectorResponse
Get site detector response
Get site detector response
resource belongs. will be added to the HTTP request.
1516 1517 1518 1519 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1516 def get_site_detector_response_slot(resource_group_name, site_name, detector_name, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) response = get_site_detector_response_slot_async(resource_group_name, site_name, detector_name, slot, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_site_detector_response_slot_async(resource_group_name, site_name, detector_name, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ Concurrent::Promise
Get site detector response
Get site detector response
resource belongs. to the HTTP request.
1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1561 def get_site_detector_response_slot_async(resource_group_name, site_name, detector_name, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'detector_name is nil' if detector_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, "'time_grain' should satisfy the constraint - 'Pattern': 'PT[1-9][0-9]+[SMH]'" if !time_grain.nil? && time_grain.match(Regexp.new('^PT[1-9][0-9]+[SMH]$')).nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors/{detectorName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'detectorName' => detector_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DetectorResponse.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_site_detector_response_slot_with_http_info(resource_group_name, site_name, detector_name, slot, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get site detector response
Get site detector response
resource belongs. will be added to the HTTP request.
1539 1540 1541 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1539 def get_site_detector_response_slot_with_http_info(resource_group_name, site_name, detector_name, slot, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) get_site_detector_response_slot_async(resource_group_name, site_name, detector_name, slot, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value! end |
#get_site_detector_response_with_http_info(resource_group_name, site_name, detector_name, start_time: nil, end_time: nil, time_grain: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get site detector response
Get site detector response
resource belongs. will be added to the HTTP request.
395 396 397 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 395 def get_site_detector_response_with_http_info(resource_group_name, site_name, detector_name, start_time:nil, end_time:nil, time_grain:nil, custom_headers:nil) get_site_detector_response_async(resource_group_name, site_name, detector_name, start_time:start_time, end_time:end_time, time_grain:time_grain, custom_headers:custom_headers).value! end |
#get_site_detector_slot(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers: nil) ⇒ Array<DetectorDefinition>
Get Detector
Get Detector
resource belongs. will be added to the HTTP request.
2336 2337 2338 2339 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2336 def get_site_detector_slot(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers:nil) first_page = get_site_detector_slot_as_lazy(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#get_site_detector_slot_as_lazy(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers: nil) ⇒ DiagnosticDetectorCollection
Get Detector
Get Detector
resource belongs. will be added to the HTTP request.
the response.
3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3899 def get_site_detector_slot_as_lazy(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers:nil) response = get_site_detector_slot_async(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| get_site_detector_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#get_site_detector_slot_async(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get Detector
Get Detector
resource belongs. to the HTTP request.
2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2377 def get_site_detector_slot_async(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil? fail ArgumentError, 'detector_name is nil' if detector_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/detectors/{detectorName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'detectorName' => detector_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_site_detector_slot_next(next_page_link, custom_headers: nil) ⇒ DiagnosticDetectorCollection
Get Detector
Get Detector
to List operation. will be added to the HTTP request.
3538 3539 3540 3541 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3538 def get_site_detector_slot_next(next_page_link, custom_headers:nil) response = get_site_detector_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_site_detector_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get Detector
Get Detector
to List operation. to the HTTP request.
3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3571 def get_site_detector_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_site_detector_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Detector
Get Detector
to List operation. will be added to the HTTP request.
3555 3556 3557 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3555 def get_site_detector_slot_next_with_http_info(next_page_link, custom_headers:nil) get_site_detector_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#get_site_detector_slot_with_http_info(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Detector
Get Detector
resource belongs. will be added to the HTTP request.
2357 2358 2359 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2357 def get_site_detector_slot_with_http_info(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers:nil) get_site_detector_slot_async(resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers:custom_headers).value! end |
#get_site_detector_with_http_info(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Detector
Get Detector
resource belongs. will be added to the HTTP request.
1185 1186 1187 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1185 def get_site_detector_with_http_info(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers:nil) get_site_detector_async(resource_group_name, site_name, diagnostic_category, detector_name, custom_headers:custom_headers).value! end |
#get_site_diagnostic_category(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ DiagnosticCategory
Get Diagnostics Category
Get Diagnostics Category
resource belongs. will be added to the HTTP request.
596 597 598 599 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 596 def get_site_diagnostic_category(resource_group_name, site_name, diagnostic_category, custom_headers:nil) response = get_site_diagnostic_category_async(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_site_diagnostic_category_async(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ Concurrent::Promise
Get Diagnostics Category
Get Diagnostics Category
resource belongs. to the HTTP request.
633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 633 def get_site_diagnostic_category_async(resource_group_name, site_name, diagnostic_category, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticCategory.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_site_diagnostic_category_slot(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ DiagnosticCategory
Get Diagnostics Category
Get Diagnostics Category
resource belongs. will be added to the HTTP request.
1747 1748 1749 1750 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1747 def get_site_diagnostic_category_slot(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil) response = get_site_diagnostic_category_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_site_diagnostic_category_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get Diagnostics Category
Get Diagnostics Category
resource belongs. to the HTTP request.
1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1786 def get_site_diagnostic_category_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticCategory.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_site_diagnostic_category_slot_with_http_info(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Diagnostics Category
Get Diagnostics Category
resource belongs. will be added to the HTTP request.
1767 1768 1769 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1767 def get_site_diagnostic_category_slot_with_http_info(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil) get_site_diagnostic_category_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers).value! end |
#get_site_diagnostic_category_with_http_info(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Diagnostics Category
Get Diagnostics Category
resource belongs. will be added to the HTTP request.
615 616 617 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 615 def get_site_diagnostic_category_with_http_info(resource_group_name, site_name, diagnostic_category, custom_headers:nil) get_site_diagnostic_category_async(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers).value! end |
#list_hosting_environment_detector_responses(resource_group_name, name, custom_headers: nil) ⇒ Array<DetectorResponse>
List Hosting Environment Detector Responses
List Hosting Environment Detector Responses
resource belongs. will be added to the HTTP request.
37 38 39 40 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 37 def list_hosting_environment_detector_responses(resource_group_name, name, custom_headers:nil) first_page = list_hosting_environment_detector_responses_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_hosting_environment_detector_responses_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ DetectorResponseCollection
List Hosting Environment Detector Responses
List Hosting Environment Detector Responses
resource belongs. will be added to the HTTP request.
the response.
3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3636 def list_hosting_environment_detector_responses_as_lazy(resource_group_name, name, custom_headers:nil) response = list_hosting_environment_detector_responses_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_hosting_environment_detector_responses_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_hosting_environment_detector_responses_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
List Hosting Environment Detector Responses
List Hosting Environment Detector Responses
resource belongs. to the HTTP request.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 72 def list_hosting_environment_detector_responses_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DetectorResponseCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_hosting_environment_detector_responses_next(next_page_link, custom_headers: nil) ⇒ DetectorResponseCollection
List Hosting Environment Detector Responses
List Hosting Environment Detector Responses
to List operation. will be added to the HTTP request.
2578 2579 2580 2581 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2578 def list_hosting_environment_detector_responses_next(next_page_link, custom_headers:nil) response = list_hosting_environment_detector_responses_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_hosting_environment_detector_responses_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List Hosting Environment Detector Responses
List Hosting Environment Detector Responses
to List operation. to the HTTP request.
2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2611 def list_hosting_environment_detector_responses_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DetectorResponseCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_hosting_environment_detector_responses_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List Hosting Environment Detector Responses
List Hosting Environment Detector Responses
to List operation. will be added to the HTTP request.
2595 2596 2597 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2595 def list_hosting_environment_detector_responses_next_with_http_info(next_page_link, custom_headers:nil) list_hosting_environment_detector_responses_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_hosting_environment_detector_responses_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List Hosting Environment Detector Responses
List Hosting Environment Detector Responses
resource belongs. will be added to the HTTP request.
55 56 57 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 55 def list_hosting_environment_detector_responses_with_http_info(resource_group_name, name, custom_headers:nil) list_hosting_environment_detector_responses_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_site_analyses(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ Array<AnalysisDefinition>
Get Site Analyses
Get Site Analyses
resource belongs. will be added to the HTTP request.
706 707 708 709 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 706 def list_site_analyses(resource_group_name, site_name, diagnostic_category, custom_headers:nil) first_page = list_site_analyses_as_lazy(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers) first_page.get_all_items end |
#list_site_analyses_as_lazy(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ DiagnosticAnalysisCollection
Get Site Analyses
Get Site Analyses
resource belongs. will be added to the HTTP request.
the response.
3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3712 def list_site_analyses_as_lazy(resource_group_name, site_name, diagnostic_category, custom_headers:nil) response = list_site_analyses_async(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_site_analyses_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_site_analyses_async(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ Concurrent::Promise
Get Site Analyses
Get Site Analyses
resource belongs. to the HTTP request.
743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 743 def list_site_analyses_async(resource_group_name, site_name, diagnostic_category, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/analyses' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysisCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_site_analyses_next(next_page_link, custom_headers: nil) ⇒ DiagnosticAnalysisCollection
Get Site Analyses
Get Site Analyses
to List operation. will be added to the HTTP request.
2866 2867 2868 2869 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2866 def list_site_analyses_next(next_page_link, custom_headers:nil) response = list_site_analyses_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_site_analyses_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get Site Analyses
Get Site Analyses
to List operation. to the HTTP request.
2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2899 def list_site_analyses_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysisCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_site_analyses_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Site Analyses
Get Site Analyses
to List operation. will be added to the HTTP request.
2883 2884 2885 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2883 def list_site_analyses_next_with_http_info(next_page_link, custom_headers:nil) list_site_analyses_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_site_analyses_slot(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ Array<AnalysisDefinition>
Get Site Analyses
Get Site Analyses
resource belongs. will be added to the HTTP request.
1861 1862 1863 1864 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1861 def list_site_analyses_slot(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil) first_page = list_site_analyses_slot_as_lazy(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_site_analyses_slot_as_lazy(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ DiagnosticAnalysisCollection
Get Site Analyses
Get Site Analyses
resource belongs. will be added to the HTTP request.
the response.
3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3844 def list_site_analyses_slot_as_lazy(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil) response = list_site_analyses_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_site_analyses_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_site_analyses_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get Site Analyses
Get Site Analyses
resource belongs. to the HTTP request.
1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1900 def list_site_analyses_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/analyses' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysisCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_site_analyses_slot_next(next_page_link, custom_headers: nil) ⇒ DiagnosticAnalysisCollection
Get Site Analyses
Get Site Analyses
to List operation. will be added to the HTTP request.
3346 3347 3348 3349 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3346 def list_site_analyses_slot_next(next_page_link, custom_headers:nil) response = list_site_analyses_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_site_analyses_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get Site Analyses
Get Site Analyses
to List operation. to the HTTP request.
3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3379 def list_site_analyses_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysisCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_site_analyses_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Site Analyses
Get Site Analyses
to List operation. will be added to the HTTP request.
3363 3364 3365 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3363 def list_site_analyses_slot_next_with_http_info(next_page_link, custom_headers:nil) list_site_analyses_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_site_analyses_slot_with_http_info(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Site Analyses
Get Site Analyses
resource belongs. will be added to the HTTP request.
1881 1882 1883 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1881 def list_site_analyses_slot_with_http_info(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil) list_site_analyses_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers).value! end |
#list_site_analyses_with_http_info(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Site Analyses
Get Site Analyses
resource belongs. will be added to the HTTP request.
725 726 727 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 725 def list_site_analyses_with_http_info(resource_group_name, site_name, diagnostic_category, custom_headers:nil) list_site_analyses_async(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers).value! end |
#list_site_detector_responses(resource_group_name, site_name, custom_headers: nil) ⇒ Array<DetectorResponse>
List Site Detector Responses
List Site Detector Responses
resource belongs. will be added to the HTTP request.
263 264 265 266 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 263 def list_site_detector_responses(resource_group_name, site_name, custom_headers:nil) first_page = list_site_detector_responses_as_lazy(resource_group_name, site_name, custom_headers:custom_headers) first_page.get_all_items end |
#list_site_detector_responses_as_lazy(resource_group_name, site_name, custom_headers: nil) ⇒ DetectorResponseCollection
List Site Detector Responses
List Site Detector Responses
resource belongs. will be added to the HTTP request.
the response.
3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3661 def list_site_detector_responses_as_lazy(resource_group_name, site_name, custom_headers:nil) response = list_site_detector_responses_async(resource_group_name, site_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_site_detector_responses_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_site_detector_responses_async(resource_group_name, site_name, custom_headers: nil) ⇒ Concurrent::Promise
List Site Detector Responses
List Site Detector Responses
resource belongs. to the HTTP request.
298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 298 def list_site_detector_responses_async(resource_group_name, site_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DetectorResponseCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_site_detector_responses_next(next_page_link, custom_headers: nil) ⇒ DetectorResponseCollection
List Site Detector Responses
List Site Detector Responses
to List operation. will be added to the HTTP request.
2674 2675 2676 2677 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2674 def list_site_detector_responses_next(next_page_link, custom_headers:nil) response = list_site_detector_responses_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_site_detector_responses_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List Site Detector Responses
List Site Detector Responses
to List operation. to the HTTP request.
2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2707 def list_site_detector_responses_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DetectorResponseCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_site_detector_responses_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List Site Detector Responses
List Site Detector Responses
to List operation. will be added to the HTTP request.
2691 2692 2693 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2691 def list_site_detector_responses_next_with_http_info(next_page_link, custom_headers:nil) list_site_detector_responses_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_site_detector_responses_slot(resource_group_name, site_name, slot, custom_headers: nil) ⇒ Array<DetectorResponse>
List Site Detector Responses
List Site Detector Responses
resource belongs. will be added to the HTTP request.
1402 1403 1404 1405 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1402 def list_site_detector_responses_slot(resource_group_name, site_name, slot, custom_headers:nil) first_page = list_site_detector_responses_slot_as_lazy(resource_group_name, site_name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_site_detector_responses_slot_as_lazy(resource_group_name, site_name, slot, custom_headers: nil) ⇒ DetectorResponseCollection
List Site Detector Responses
List Site Detector Responses
resource belongs. will be added to the HTTP request.
the response.
3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3791 def list_site_detector_responses_slot_as_lazy(resource_group_name, site_name, slot, custom_headers:nil) response = list_site_detector_responses_slot_async(resource_group_name, site_name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_site_detector_responses_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_site_detector_responses_slot_async(resource_group_name, site_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
List Site Detector Responses
List Site Detector Responses
resource belongs. to the HTTP request.
1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1439 def list_site_detector_responses_slot_async(resource_group_name, site_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DetectorResponseCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_site_detector_responses_slot_next(next_page_link, custom_headers: nil) ⇒ DetectorResponseCollection
List Site Detector Responses
List Site Detector Responses
to List operation. will be added to the HTTP request.
3154 3155 3156 3157 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3154 def list_site_detector_responses_slot_next(next_page_link, custom_headers:nil) response = list_site_detector_responses_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_site_detector_responses_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List Site Detector Responses
List Site Detector Responses
to List operation. to the HTTP request.
3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3187 def list_site_detector_responses_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DetectorResponseCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_site_detector_responses_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List Site Detector Responses
List Site Detector Responses
to List operation. will be added to the HTTP request.
3171 3172 3173 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3171 def list_site_detector_responses_slot_next_with_http_info(next_page_link, custom_headers:nil) list_site_detector_responses_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_site_detector_responses_slot_with_http_info(resource_group_name, site_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List Site Detector Responses
List Site Detector Responses
resource belongs. will be added to the HTTP request.
1421 1422 1423 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1421 def list_site_detector_responses_slot_with_http_info(resource_group_name, site_name, slot, custom_headers:nil) list_site_detector_responses_slot_async(resource_group_name, site_name, slot, custom_headers:custom_headers).value! end |
#list_site_detector_responses_with_http_info(resource_group_name, site_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List Site Detector Responses
List Site Detector Responses
resource belongs. will be added to the HTTP request.
281 282 283 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 281 def list_site_detector_responses_with_http_info(resource_group_name, site_name, custom_headers:nil) list_site_detector_responses_async(resource_group_name, site_name, custom_headers:custom_headers).value! end |
#list_site_detectors(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ Array<DetectorDefinition>
Get Detectors
Get Detectors
resource belongs. will be added to the HTTP request.
1054 1055 1056 1057 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1054 def list_site_detectors(resource_group_name, site_name, diagnostic_category, custom_headers:nil) first_page = list_site_detectors_as_lazy(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers) first_page.get_all_items end |
#list_site_detectors_as_lazy(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ DiagnosticDetectorCollection
Get Detectors
Get Detectors
resource belongs. will be added to the HTTP request.
the response.
3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3738 def list_site_detectors_as_lazy(resource_group_name, site_name, diagnostic_category, custom_headers:nil) response = list_site_detectors_async(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_site_detectors_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_site_detectors_async(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ Concurrent::Promise
Get Detectors
Get Detectors
resource belongs. to the HTTP request.
1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1091 def list_site_detectors_async(resource_group_name, site_name, diagnostic_category, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_site_detectors_next(next_page_link, custom_headers: nil) ⇒ DiagnosticDetectorCollection
Get Detectors
Get Detectors
to List operation. will be added to the HTTP request.
2962 2963 2964 2965 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2962 def list_site_detectors_next(next_page_link, custom_headers:nil) response = list_site_detectors_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_site_detectors_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get Detectors
Get Detectors
to List operation. to the HTTP request.
2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2995 def list_site_detectors_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_site_detectors_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Detectors
Get Detectors
to List operation. will be added to the HTTP request.
2979 2980 2981 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2979 def list_site_detectors_next_with_http_info(next_page_link, custom_headers:nil) list_site_detectors_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_site_detectors_slot(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ Array<DetectorDefinition>
Get Detectors
Get Detectors
resource belongs. will be added to the HTTP request.
2221 2222 2223 2224 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2221 def list_site_detectors_slot(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil) first_page = list_site_detectors_slot_as_lazy(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_site_detectors_slot_as_lazy(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ DiagnosticDetectorCollection
Get Detectors
Get Detectors
resource belongs. will be added to the HTTP request.
the response.
3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3871 def list_site_detectors_slot_as_lazy(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil) response = list_site_detectors_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_site_detectors_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_site_detectors_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get Detectors
Get Detectors
resource belongs. to the HTTP request.
2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2260 def list_site_detectors_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'diagnostic_category is nil' if diagnostic_category.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/detectors' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'diagnosticCategory' => diagnostic_category,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_site_detectors_slot_next(next_page_link, custom_headers: nil) ⇒ DiagnosticDetectorCollection
Get Detectors
Get Detectors
to List operation. will be added to the HTTP request.
3442 3443 3444 3445 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3442 def list_site_detectors_slot_next(next_page_link, custom_headers:nil) response = list_site_detectors_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_site_detectors_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get Detectors
Get Detectors
to List operation. to the HTTP request.
3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3475 def list_site_detectors_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_site_detectors_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Detectors
Get Detectors
to List operation. will be added to the HTTP request.
3459 3460 3461 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3459 def list_site_detectors_slot_next_with_http_info(next_page_link, custom_headers:nil) list_site_detectors_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_site_detectors_slot_with_http_info(resource_group_name, site_name, diagnostic_category, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Detectors
Get Detectors
resource belongs. will be added to the HTTP request.
2241 2242 2243 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2241 def list_site_detectors_slot_with_http_info(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil) list_site_detectors_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers).value! end |
#list_site_detectors_with_http_info(resource_group_name, site_name, diagnostic_category, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Detectors
Get Detectors
resource belongs. will be added to the HTTP request.
1073 1074 1075 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1073 def list_site_detectors_with_http_info(resource_group_name, site_name, diagnostic_category, custom_headers:nil) list_site_detectors_async(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers).value! end |
#list_site_diagnostic_categories(resource_group_name, site_name, custom_headers: nil) ⇒ Array<DiagnosticCategory>
Get Diagnostics Categories
Get Diagnostics Categories
resource belongs. will be added to the HTTP request.
489 490 491 492 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 489 def list_site_diagnostic_categories(resource_group_name, site_name, custom_headers:nil) first_page = list_site_diagnostic_categories_as_lazy(resource_group_name, site_name, custom_headers:custom_headers) first_page.get_all_items end |
#list_site_diagnostic_categories_as_lazy(resource_group_name, site_name, custom_headers: nil) ⇒ DiagnosticCategoryCollection
Get Diagnostics Categories
Get Diagnostics Categories
resource belongs. will be added to the HTTP request.
the response.
3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3686 def list_site_diagnostic_categories_as_lazy(resource_group_name, site_name, custom_headers:nil) response = list_site_diagnostic_categories_async(resource_group_name, site_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_site_diagnostic_categories_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_site_diagnostic_categories_async(resource_group_name, site_name, custom_headers: nil) ⇒ Concurrent::Promise
Get Diagnostics Categories
Get Diagnostics Categories
resource belongs. to the HTTP request.
524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 524 def list_site_diagnostic_categories_async(resource_group_name, site_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticCategoryCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_site_diagnostic_categories_next(next_page_link, custom_headers: nil) ⇒ DiagnosticCategoryCollection
Get Diagnostics Categories
Get Diagnostics Categories
to List operation. will be added to the HTTP request.
2770 2771 2772 2773 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2770 def list_site_diagnostic_categories_next(next_page_link, custom_headers:nil) response = list_site_diagnostic_categories_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_site_diagnostic_categories_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get Diagnostics Categories
Get Diagnostics Categories
to List operation. to the HTTP request.
2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2803 def list_site_diagnostic_categories_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticCategoryCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_site_diagnostic_categories_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Diagnostics Categories
Get Diagnostics Categories
to List operation. will be added to the HTTP request.
2787 2788 2789 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 2787 def list_site_diagnostic_categories_next_with_http_info(next_page_link, custom_headers:nil) list_site_diagnostic_categories_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_site_diagnostic_categories_slot(resource_group_name, site_name, slot, custom_headers: nil) ⇒ Array<DiagnosticCategory>
Get Diagnostics Categories
Get Diagnostics Categories
resource belongs. will be added to the HTTP request.
1636 1637 1638 1639 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1636 def list_site_diagnostic_categories_slot(resource_group_name, site_name, slot, custom_headers:nil) first_page = list_site_diagnostic_categories_slot_as_lazy(resource_group_name, site_name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_site_diagnostic_categories_slot_as_lazy(resource_group_name, site_name, slot, custom_headers: nil) ⇒ DiagnosticCategoryCollection
Get Diagnostics Categories
Get Diagnostics Categories
resource belongs. will be added to the HTTP request.
the response.
3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3817 def list_site_diagnostic_categories_slot_as_lazy(resource_group_name, site_name, slot, custom_headers:nil) response = list_site_diagnostic_categories_slot_async(resource_group_name, site_name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_site_diagnostic_categories_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_site_diagnostic_categories_slot_async(resource_group_name, site_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get Diagnostics Categories
Get Diagnostics Categories
resource belongs. to the HTTP request.
1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1673 def list_site_diagnostic_categories_slot_async(resource_group_name, site_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil? fail ArgumentError, 'site_name is nil' if site_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticCategoryCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_site_diagnostic_categories_slot_next(next_page_link, custom_headers: nil) ⇒ DiagnosticCategoryCollection
Get Diagnostics Categories
Get Diagnostics Categories
to List operation. will be added to the HTTP request.
3250 3251 3252 3253 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3250 def list_site_diagnostic_categories_slot_next(next_page_link, custom_headers:nil) response = list_site_diagnostic_categories_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_site_diagnostic_categories_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get Diagnostics Categories
Get Diagnostics Categories
to List operation. to the HTTP request.
3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3283 def list_site_diagnostic_categories_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::DiagnosticCategoryCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_site_diagnostic_categories_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Diagnostics Categories
Get Diagnostics Categories
to List operation. will be added to the HTTP request.
3267 3268 3269 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 3267 def list_site_diagnostic_categories_slot_next_with_http_info(next_page_link, custom_headers:nil) list_site_diagnostic_categories_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_site_diagnostic_categories_slot_with_http_info(resource_group_name, site_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Diagnostics Categories
Get Diagnostics Categories
resource belongs. will be added to the HTTP request.
1655 1656 1657 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 1655 def list_site_diagnostic_categories_slot_with_http_info(resource_group_name, site_name, slot, custom_headers:nil) list_site_diagnostic_categories_slot_async(resource_group_name, site_name, slot, custom_headers:custom_headers).value! end |
#list_site_diagnostic_categories_with_http_info(resource_group_name, site_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get Diagnostics Categories
Get Diagnostics Categories
resource belongs. will be added to the HTTP request.
507 508 509 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb', line 507 def list_site_diagnostic_categories_with_http_info(resource_group_name, site_name, custom_headers:nil) list_site_diagnostic_categories_async(resource_group_name, site_name, custom_headers:custom_headers).value! end |