azure_mgmt_cdn 0.17.4 → 0.18.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-06-01/generated/azure_mgmt_cdn/cdn_management_client.rb +1 -1
- data/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb +10 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb +20 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/name_availability.rb +2 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/operations.rb +2 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb +10 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/profiles.rb +14 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +1 -1
- data/lib/2016-04-02/generated/azure_mgmt_cdn/custom_domains.rb +10 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/endpoints.rb +20 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/name_availability.rb +2 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/operations.rb +2 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/origins.rb +10 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/profiles.rb +14 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb +17 -3
- data/lib/2016-10-02/generated/azure_mgmt_cdn/custom_domains.rb +14 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/edge_nodes.rb +4 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/endpoints.rb +26 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/origins.rb +8 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb +24 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +5 -1
- data/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb +14 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb +4 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb +26 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/operations.rb +4 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/origins.rb +8 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb +24 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb +4 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/cdn_management_client.rb +7 -1
- data/lib/2017-10-12/generated/azure_mgmt_cdn/custom_domains.rb +14 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/edge_nodes.rb +4 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/endpoints.rb +26 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/operations.rb +4 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/origins.rb +8 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/profiles.rb +24 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/resource_usage_operations.rb +4 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn.rb +202 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/cdn_management_client.rb +478 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/custom_domains.rb +1001 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/edge_nodes.rb +225 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/endpoints.rb +1946 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/managed_rule_sets.rb +221 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/action_type.rb +18 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/algorithm.rb +15 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cache_behavior.rb +17 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb +88 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cache_key_query_string_action_parameters.rb +75 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_certificate_source_parameters.rb +62 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_endpoint.rb +46 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_managed_https_parameters.rb +82 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy.rb +210 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_list.rb +103 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_patch_parameters.rb +55 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/certificate_type.rb +16 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +72 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +57 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cookies_match_condition_parameters.rb +123 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cookies_operator.rb +23 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain.rb +148 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_https_parameters.rb +73 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +102 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +48 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb +19 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb +24 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_rule.rb +108 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_rule_enabled_state.rb +16 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_rule_list.rb +55 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/deep_created_origin.rb +200 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/deep_created_origin_group.rb +114 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule.rb +107 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_action.rb +52 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_cache_key_query_string_action.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb +59 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_cookies_condition.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_http_version_condition.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_is_device_condition.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_post_args_condition.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_query_string_condition.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_remote_address_condition.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_body_condition.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_header_action.rb +63 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_header_condition.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_method_condition.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_scheme_condition.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_uri_condition.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_response_header_action.rb +63 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_url_file_name_condition.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/destination_protocol.rb +17 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/edge_node.rb +83 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/edgenode_result.rb +101 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint.rb +391 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +101 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb +67 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_web_application_firewall_policy_link.rb +49 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +274 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/error_response.rb +60 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/geo_filter.rb +80 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/header_action.rb +17 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/header_action_parameters.rb +83 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/health_probe_parameters.rb +90 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/health_probe_request_type.rb +17 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/http_error_range_parameters.rb +65 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/http_version_match_condition_parameters.rb +95 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/ip_address_group.rb +86 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/is_device_match_condition_parameters.rb +113 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/key_vault_certificate_source_parameters.rb +137 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/key_vault_signing_key_parameters.rb +106 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_definition.rb +59 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_enabled_state.rb +16 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_group_definition.rb +81 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_group_override.rb +68 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_override.rb +72 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set.rb +94 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set_definition.rb +133 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set_definition_list.rb +101 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set_list.rb +55 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/match_condition.rb +125 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/match_variable.rb +23 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/minimum_tls_version.rb +17 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/operation.rb +59 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/operation_display.rb +72 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/operations_list_result.rb +102 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/operator.rb +26 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin.rb +256 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_group.rb +153 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_group_list_result.rb +102 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_group_resource_state.rb +17 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_group_update_parameters.rb +100 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_list_result.rb +101 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +187 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/param_indicator.rb +17 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/policy_enabled_state.rb +16 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/policy_mode.rb +16 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/policy_resource_state.rb +20 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/policy_settings.rb +99 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/post_args_match_condition_parameters.rb +123 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/post_args_operator.rb +23 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/private_endpoint_status.rb +19 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/probe_protocol.rb +17 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/profile.rb +125 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/profile_list_result.rb +101 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/protocol_type.rb +16 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/provisioning_state.rb +17 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/proxy_resource.rb +63 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/query_string_behavior.rb +18 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/query_string_match_condition_parameters.rb +114 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/query_string_operator.rb +23 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/rate_limit_rule.rb +117 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/rate_limit_rule_list.rb +55 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/redirect_type.rb +18 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/remote_address_match_condition_parameters.rb +114 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/remote_address_operator.rb +17 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_body_match_condition_parameters.rb +114 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_body_operator.rb +23 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_header_match_condition_parameters.rb +125 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_header_operator.rb +23 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_method_match_condition_parameters.rb +95 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_scheme_match_condition_parameters.rb +95 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_uri_match_condition_parameters.rb +113 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_uri_operator.rb +23 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource.rb +80 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource_reference.rb +46 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource_usage.rb +83 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +100 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/response_based_detected_error_types.rb +17 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/response_based_origin_error_detection_parameters.rb +89 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/sku.rb +50 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/sku_name.rb +21 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/sso_uri.rb +48 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +56 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/transform.rb +16 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/transform_type.rb +20 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_file_extension_match_condition_parameters.rb +114 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_file_extension_operator.rb +23 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_file_name_match_condition_parameters.rb +114 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_file_name_operator.rb +23 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_path_match_condition_parameters.rb +114 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_path_operator.rb +24 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_redirect_action.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_redirect_action_parameters.rb +127 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_rewrite_action.rb +64 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_rewrite_action_parameters.rb +86 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_signing_action.rb +63 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_signing_action_parameters.rb +112 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_signing_key.rb +62 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_signing_param_identifier.rb +58 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/user_managed_https_parameters.rb +82 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +72 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/validate_probe_input.rb +46 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/models/validate_probe_output.rb +73 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/module_definition.rb +9 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/operations.rb +219 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/origin_groups.rb +927 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/origins.rb +922 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/policies.rb +789 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/profiles.rb +1482 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn/resource_usage_operations.rb +228 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn.rb +304 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/afdcustom_domains.rb +1035 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/afdendpoints.rb +1426 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/afdorigin_groups.rb +1094 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/afdorigins.rb +912 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/afdprofiles.rb +362 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/cdn_management_client.rb +533 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/custom_domains.rb +1001 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/edge_nodes.rb +225 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/endpoints.rb +1946 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/log_analytics.rb +748 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/managed_rule_sets.rb +221 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/action_type.rb +18 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afd_certificate_type.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afd_error_response.rb +51 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afd_minimum_tls_version.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afd_provisioning_state.rb +19 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afd_purge_parameters.rb +74 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afddomain.rb +166 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afddomain_https_parameters.rb +73 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afddomain_list_result.rb +102 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afddomain_update_parameters.rb +62 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdendpoint.rb +166 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdendpoint_list_result.rb +102 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdendpoint_protocols.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdendpoint_update_parameters.rb +82 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin.rb +232 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_group.rb +169 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_group_list_result.rb +102 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_group_update_parameters.rb +105 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_list_result.rb +101 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_update_parameters.rb +166 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdstate_properties.rb +61 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/algorithm.rb +15 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cache_behavior.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb +88 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cache_key_query_string_action_parameters.rb +75 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_certificate_source_parameters.rb +62 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_endpoint.rb +46 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_managed_https_parameters.rb +82 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy.rb +220 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_list.rb +103 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_patch_parameters.rb +55 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/certificate.rb +68 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/certificate_type.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +72 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +57 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/compression_settings.rb +70 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/continents_response.rb +75 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/continents_response_continents_item.rb +47 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/continents_response_country_or_regions_item.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cookies_match_condition_parameters.rb +124 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cookies_operator.rb +24 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_domain.rb +158 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_domain_https_parameters.rb +73 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +102 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +48 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb +19 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb +24 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_rule.rb +108 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_rule_enabled_state.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_rule_list.rb +55 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/customer_certificate.rb +122 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/customer_certificate_parameters.rb +144 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/deep_created_origin.rb +200 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/deep_created_origin_group.rb +114 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule.rb +107 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_action.rb +53 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_cache_key_query_string_action.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb +59 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_cookies_condition.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_http_version_condition.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_is_device_condition.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_post_args_condition.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_query_string_condition.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_remote_address_condition.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_body_condition.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_header_action.rb +63 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_header_condition.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_method_condition.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_scheme_condition.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_uri_condition.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_response_header_action.rb +63 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_url_file_name_condition.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/deployment_status.rb +18 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/destination_protocol.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/domain_validation_properties.rb +60 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/domain_validation_state.rb +20 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/edge_node.rb +93 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/edgenode_result.rb +101 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/enabled_state.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint.rb +401 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +101 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb +67 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_web_application_firewall_policy_link.rb +49 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +274 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/error_response.rb +60 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/forwarding_protocol.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/geo_filter.rb +80 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/header_action.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/header_action_parameters.rb +83 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/health_probe_parameters.rb +90 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/health_probe_request_type.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/http_error_range_parameters.rb +65 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/http_version_match_condition_parameters.rb +95 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/https_redirect.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/identity_type.rb +18 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/ip_address_group.rb +86 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/is_device_match_condition_parameters.rb +113 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/key_vault_certificate_source_parameters.rb +137 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/key_vault_signing_key_parameters.rb +106 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/link_to_default_domain.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/load_balancing_settings_parameters.rb +71 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_certificate.rb +59 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_certificate_parameters.rb +80 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_definition.rb +59 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_enabled_state.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_group_definition.rb +81 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_group_override.rb +68 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_override.rb +72 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_set.rb +94 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_set_definition.rb +133 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_set_definition_list.rb +101 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_set_list.rb +55 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb +125 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/match_processing_behavior.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/match_variable.rb +23 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/metrics_response.rb +88 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/metrics_response_series_item.rb +99 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/metrics_response_series_item_data_item.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/metrics_response_series_item_groups_item.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/minimum_tls_version.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/operation.rb +59 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/operation_display.rb +72 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/operations_list_result.rb +102 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/operator.rb +26 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin.rb +266 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group.rb +163 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group_list_result.rb +102 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group_override_action.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group_override_action_parameters.rb +63 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group_resource_state.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group_update_parameters.rb +100 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_list_result.rb +101 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +187 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/param_indicator.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/policy_enabled_state.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/policy_mode.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/policy_resource_state.rb +20 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/policy_settings.rb +99 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/post_args_match_condition_parameters.rb +124 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/post_args_operator.rb +24 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/private_endpoint_status.rb +19 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/probe_protocol.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/profile.rb +147 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/profile_list_result.rb +101 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/protocol_type.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/provisioning_state.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/proxy_resource.rb +76 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/query_string_behavior.rb +18 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/query_string_match_condition_parameters.rb +114 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/query_string_operator.rb +24 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rankings_response.rb +77 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rankings_response_tables_item.rb +67 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rankings_response_tables_item_data_item.rb +67 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rankings_response_tables_item_data_item_metrics_item.rb +70 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rate_limit_rule.rb +117 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rate_limit_rule_list.rb +55 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/redirect_type.rb +18 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/remote_address_match_condition_parameters.rb +114 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/remote_address_operator.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_body_match_condition_parameters.rb +114 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_body_operator.rb +24 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_header_match_condition_parameters.rb +125 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_header_operator.rb +24 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_method_match_condition_parameters.rb +95 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_scheme_match_condition_parameters.rb +95 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_uri_match_condition_parameters.rb +114 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_uri_operator.rb +24 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resource.rb +80 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resource_reference.rb +46 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resource_usage.rb +83 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +100 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resources_response.rb +75 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resources_response_custom_domains_item.rb +80 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resources_response_endpoints_item.rb +89 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resources_response_endpoints_item_custom_domains_item.rb +81 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/response_based_detected_error_types.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/response_based_origin_error_detection_parameters.rb +89 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/route.rb +299 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/route_list_result.rb +101 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/route_update_parameters.rb +235 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rule.rb +174 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rule_list_result.rb +101 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rule_set.rb +99 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rule_set_list_result.rb +102 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rule_update_parameters.rb +110 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/secret.rb +113 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/secret_list_result.rb +102 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/secret_parameters.rb +46 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/secret_properties.rb +67 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/secret_type.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/security_policy.rb +111 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/security_policy_list_result.rb +102 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/security_policy_parameters.rb +46 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/security_policy_web_application_firewall_association.rb +75 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/security_policy_web_application_firewall_parameters.rb +84 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/shared_private_link_resource_properties.rb +99 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/shared_private_link_resource_status.rb +19 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/sku.rb +54 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/sku_name.rb +28 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/sso_uri.rb +48 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/status.rb +18 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +56 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/system_data.rb +107 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/tracked_resource.rb +105 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/transform.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/transform_type.rb +20 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_file_extension_match_condition_parameters.rb +114 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_file_extension_operator.rb +24 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_file_name_match_condition_parameters.rb +114 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_file_name_operator.rb +24 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_path_match_condition_parameters.rb +114 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_path_operator.rb +25 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_redirect_action.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_redirect_action_parameters.rb +127 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_rewrite_action.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_rewrite_action_parameters.rb +86 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_signing_action.rb +64 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_signing_action_parameters.rb +82 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_signing_key.rb +62 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_signing_key_parameters.rb +86 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_signing_param_identifier.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/usage.rb +95 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/usage_name.rb +57 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/usages_list_result.rb +98 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/user_managed_https_parameters.rb +82 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +72 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_probe_input.rb +46 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_probe_output.rb +73 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_secret_input.rb +59 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_secret_output.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_secret_type.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validation_token.rb +47 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_metrics_response.rb +88 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_metrics_response_series_item.rb +98 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_metrics_response_series_item_data_item.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_metrics_response_series_item_groups_item.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_rankings_response.rb +96 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_rankings_response_data_item.rb +75 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_rankings_response_data_item_metrics_item.rb +69 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/module_definition.rb +9 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/operations.rb +219 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/origin_groups.rb +927 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/origins.rb +922 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/policies.rb +789 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/profiles.rb +1482 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/resource_usage_operations.rb +228 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/routes.rb +913 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/rule_sets.rb +908 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/rules.rb +889 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/secrets.rb +845 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/security_policies.rb +868 -0
- data/lib/2020-09-01/generated/azure_mgmt_cdn/validate.rb +122 -0
- data/lib/azure_mgmt_cdn.rb +5 -3
- data/lib/profiles/latest/modules/cdn_profile_module.rb +960 -174
- data/lib/version.rb +1 -1
- metadata +461 -3
@@ -0,0 +1,845 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CDN::Mgmt::V2020_09_01
|
7
|
+
#
|
8
|
+
# Cdn Management Client
|
9
|
+
#
|
10
|
+
class Secrets
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Secrets class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [CdnManagementClient] reference to the CdnManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Lists existing AzureFrontDoor secrets.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
28
|
+
# Azure subscription.
|
29
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
30
|
+
# the resource group.
|
31
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
|
+
# will be added to the HTTP request.
|
33
|
+
#
|
34
|
+
# @return [Array<Secret>] operation results.
|
35
|
+
#
|
36
|
+
def list_by_profile(resource_group_name, profile_name, custom_headers:nil)
|
37
|
+
first_page = list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:custom_headers)
|
38
|
+
first_page.get_all_items
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Lists existing AzureFrontDoor secrets.
|
43
|
+
#
|
44
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
45
|
+
# Azure subscription.
|
46
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
47
|
+
# the resource group.
|
48
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
49
|
+
# will be added to the HTTP request.
|
50
|
+
#
|
51
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
|
+
#
|
53
|
+
def list_by_profile_with_http_info(resource_group_name, profile_name, custom_headers:nil)
|
54
|
+
list_by_profile_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Lists existing AzureFrontDoor secrets.
|
59
|
+
#
|
60
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
61
|
+
# Azure subscription.
|
62
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
63
|
+
# the resource group.
|
64
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
65
|
+
# to the HTTP request.
|
66
|
+
#
|
67
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
|
+
#
|
69
|
+
def list_by_profile_async(resource_group_name, profile_name, custom_headers:nil)
|
70
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
71
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
72
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
73
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
74
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
75
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
76
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
77
|
+
|
78
|
+
|
79
|
+
request_headers = {}
|
80
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
81
|
+
|
82
|
+
# Set Headers
|
83
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
84
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
85
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/secrets'
|
86
|
+
|
87
|
+
request_url = @base_url || @client.base_url
|
88
|
+
|
89
|
+
options = {
|
90
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
91
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'subscriptionId' => @client.subscription_id},
|
92
|
+
query_params: {'api-version' => @client.api_version},
|
93
|
+
headers: request_headers.merge(custom_headers || {}),
|
94
|
+
base_url: request_url
|
95
|
+
}
|
96
|
+
promise = @client.make_request_async(:get, path_template, options)
|
97
|
+
|
98
|
+
promise = promise.then do |result|
|
99
|
+
http_response = result.response
|
100
|
+
status_code = http_response.status
|
101
|
+
response_content = http_response.body
|
102
|
+
unless status_code == 200
|
103
|
+
error_model = JSON.load(response_content)
|
104
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
105
|
+
end
|
106
|
+
|
107
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
108
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
109
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
110
|
+
# Deserialize Response
|
111
|
+
if status_code == 200
|
112
|
+
begin
|
113
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
114
|
+
result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::SecretListResult.mapper()
|
115
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
116
|
+
rescue Exception => e
|
117
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
result
|
122
|
+
end
|
123
|
+
|
124
|
+
promise.execute
|
125
|
+
end
|
126
|
+
|
127
|
+
#
|
128
|
+
# Gets an existing Secret within a profile.
|
129
|
+
#
|
130
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
131
|
+
# Azure subscription.
|
132
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
133
|
+
# the resource group.
|
134
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
135
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
136
|
+
# will be added to the HTTP request.
|
137
|
+
#
|
138
|
+
# @return [Secret] operation results.
|
139
|
+
#
|
140
|
+
def get(resource_group_name, profile_name, secret_name, custom_headers:nil)
|
141
|
+
response = get_async(resource_group_name, profile_name, secret_name, custom_headers:custom_headers).value!
|
142
|
+
response.body unless response.nil?
|
143
|
+
end
|
144
|
+
|
145
|
+
#
|
146
|
+
# Gets an existing Secret within a profile.
|
147
|
+
#
|
148
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
149
|
+
# Azure subscription.
|
150
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
151
|
+
# the resource group.
|
152
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
153
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
154
|
+
# will be added to the HTTP request.
|
155
|
+
#
|
156
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
157
|
+
#
|
158
|
+
def get_with_http_info(resource_group_name, profile_name, secret_name, custom_headers:nil)
|
159
|
+
get_async(resource_group_name, profile_name, secret_name, custom_headers:custom_headers).value!
|
160
|
+
end
|
161
|
+
|
162
|
+
#
|
163
|
+
# Gets an existing Secret within a profile.
|
164
|
+
#
|
165
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
166
|
+
# Azure subscription.
|
167
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
168
|
+
# the resource group.
|
169
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
170
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
171
|
+
# to the HTTP request.
|
172
|
+
#
|
173
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
174
|
+
#
|
175
|
+
def get_async(resource_group_name, profile_name, secret_name, custom_headers:nil)
|
176
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
177
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
178
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
179
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
180
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
181
|
+
fail ArgumentError, 'secret_name is nil' if secret_name.nil?
|
182
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
183
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
184
|
+
|
185
|
+
|
186
|
+
request_headers = {}
|
187
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
188
|
+
|
189
|
+
# Set Headers
|
190
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
191
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
192
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/secrets/{secretName}'
|
193
|
+
|
194
|
+
request_url = @base_url || @client.base_url
|
195
|
+
|
196
|
+
options = {
|
197
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
198
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'secretName' => secret_name,'subscriptionId' => @client.subscription_id},
|
199
|
+
query_params: {'api-version' => @client.api_version},
|
200
|
+
headers: request_headers.merge(custom_headers || {}),
|
201
|
+
base_url: request_url
|
202
|
+
}
|
203
|
+
promise = @client.make_request_async(:get, path_template, options)
|
204
|
+
|
205
|
+
promise = promise.then do |result|
|
206
|
+
http_response = result.response
|
207
|
+
status_code = http_response.status
|
208
|
+
response_content = http_response.body
|
209
|
+
unless status_code == 200
|
210
|
+
error_model = JSON.load(response_content)
|
211
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
212
|
+
end
|
213
|
+
|
214
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
215
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
216
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
217
|
+
# Deserialize Response
|
218
|
+
if status_code == 200
|
219
|
+
begin
|
220
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
221
|
+
result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::Secret.mapper()
|
222
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
223
|
+
rescue Exception => e
|
224
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
result
|
229
|
+
end
|
230
|
+
|
231
|
+
promise.execute
|
232
|
+
end
|
233
|
+
|
234
|
+
#
|
235
|
+
# Creates a new Secret within the specified profile.
|
236
|
+
#
|
237
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
238
|
+
# Azure subscription.
|
239
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
240
|
+
# the resource group.
|
241
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
242
|
+
# @param secret [Secret] The Secret properties.
|
243
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
244
|
+
# will be added to the HTTP request.
|
245
|
+
#
|
246
|
+
# @return [Secret] operation results.
|
247
|
+
#
|
248
|
+
def create(resource_group_name, profile_name, secret_name, secret, custom_headers:nil)
|
249
|
+
response = create_async(resource_group_name, profile_name, secret_name, secret, custom_headers:custom_headers).value!
|
250
|
+
response.body unless response.nil?
|
251
|
+
end
|
252
|
+
|
253
|
+
#
|
254
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
255
|
+
# Azure subscription.
|
256
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
257
|
+
# the resource group.
|
258
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
259
|
+
# @param secret [Secret] The Secret properties.
|
260
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
261
|
+
# will be added to the HTTP request.
|
262
|
+
#
|
263
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
264
|
+
# response.
|
265
|
+
#
|
266
|
+
def create_async(resource_group_name, profile_name, secret_name, secret, custom_headers:nil)
|
267
|
+
# Send request
|
268
|
+
promise = begin_create_async(resource_group_name, profile_name, secret_name, secret, custom_headers:custom_headers)
|
269
|
+
|
270
|
+
promise = promise.then do |response|
|
271
|
+
# Defining deserialization method.
|
272
|
+
deserialize_method = lambda do |parsed_response|
|
273
|
+
result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::Secret.mapper()
|
274
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
275
|
+
end
|
276
|
+
|
277
|
+
# Waiting for response.
|
278
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
279
|
+
end
|
280
|
+
|
281
|
+
promise
|
282
|
+
end
|
283
|
+
|
284
|
+
#
|
285
|
+
# Updates an existing Secret within a profile.
|
286
|
+
#
|
287
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
288
|
+
# Azure subscription.
|
289
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
290
|
+
# the resource group.
|
291
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
292
|
+
# @param secret_properties [SecretProperties] Secret properties
|
293
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
294
|
+
# will be added to the HTTP request.
|
295
|
+
#
|
296
|
+
# @return [Secret] operation results.
|
297
|
+
#
|
298
|
+
def update(resource_group_name, profile_name, secret_name, secret_properties, custom_headers:nil)
|
299
|
+
response = update_async(resource_group_name, profile_name, secret_name, secret_properties, custom_headers:custom_headers).value!
|
300
|
+
response.body unless response.nil?
|
301
|
+
end
|
302
|
+
|
303
|
+
#
|
304
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
305
|
+
# Azure subscription.
|
306
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
307
|
+
# the resource group.
|
308
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
309
|
+
# @param secret_properties [SecretProperties] Secret properties
|
310
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
311
|
+
# will be added to the HTTP request.
|
312
|
+
#
|
313
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
314
|
+
# response.
|
315
|
+
#
|
316
|
+
def update_async(resource_group_name, profile_name, secret_name, secret_properties, custom_headers:nil)
|
317
|
+
# Send request
|
318
|
+
promise = begin_update_async(resource_group_name, profile_name, secret_name, secret_properties, custom_headers:custom_headers)
|
319
|
+
|
320
|
+
promise = promise.then do |response|
|
321
|
+
# Defining deserialization method.
|
322
|
+
deserialize_method = lambda do |parsed_response|
|
323
|
+
result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::Secret.mapper()
|
324
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
325
|
+
end
|
326
|
+
|
327
|
+
# Waiting for response.
|
328
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
329
|
+
end
|
330
|
+
|
331
|
+
promise
|
332
|
+
end
|
333
|
+
|
334
|
+
#
|
335
|
+
# Deletes an existing Secret within profile.
|
336
|
+
#
|
337
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
338
|
+
# Azure subscription.
|
339
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
340
|
+
# the resource group.
|
341
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
342
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
343
|
+
# will be added to the HTTP request.
|
344
|
+
#
|
345
|
+
def delete(resource_group_name, profile_name, secret_name, custom_headers:nil)
|
346
|
+
response = delete_async(resource_group_name, profile_name, secret_name, custom_headers:custom_headers).value!
|
347
|
+
nil
|
348
|
+
end
|
349
|
+
|
350
|
+
#
|
351
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
352
|
+
# Azure subscription.
|
353
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
354
|
+
# the resource group.
|
355
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
356
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
357
|
+
# will be added to the HTTP request.
|
358
|
+
#
|
359
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
360
|
+
# response.
|
361
|
+
#
|
362
|
+
def delete_async(resource_group_name, profile_name, secret_name, custom_headers:nil)
|
363
|
+
# Send request
|
364
|
+
promise = begin_delete_async(resource_group_name, profile_name, secret_name, custom_headers:custom_headers)
|
365
|
+
|
366
|
+
promise = promise.then do |response|
|
367
|
+
# Defining deserialization method.
|
368
|
+
deserialize_method = lambda do |parsed_response|
|
369
|
+
end
|
370
|
+
|
371
|
+
# Waiting for response.
|
372
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
373
|
+
end
|
374
|
+
|
375
|
+
promise
|
376
|
+
end
|
377
|
+
|
378
|
+
#
|
379
|
+
# Creates a new Secret within the specified profile.
|
380
|
+
#
|
381
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
382
|
+
# Azure subscription.
|
383
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
384
|
+
# the resource group.
|
385
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
386
|
+
# @param secret [Secret] The Secret properties.
|
387
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
388
|
+
# will be added to the HTTP request.
|
389
|
+
#
|
390
|
+
# @return [Secret] operation results.
|
391
|
+
#
|
392
|
+
def begin_create(resource_group_name, profile_name, secret_name, secret, custom_headers:nil)
|
393
|
+
response = begin_create_async(resource_group_name, profile_name, secret_name, secret, custom_headers:custom_headers).value!
|
394
|
+
response.body unless response.nil?
|
395
|
+
end
|
396
|
+
|
397
|
+
#
|
398
|
+
# Creates a new Secret within the specified profile.
|
399
|
+
#
|
400
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
401
|
+
# Azure subscription.
|
402
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
403
|
+
# the resource group.
|
404
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
405
|
+
# @param secret [Secret] The Secret properties.
|
406
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
407
|
+
# will be added to the HTTP request.
|
408
|
+
#
|
409
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
410
|
+
#
|
411
|
+
def begin_create_with_http_info(resource_group_name, profile_name, secret_name, secret, custom_headers:nil)
|
412
|
+
begin_create_async(resource_group_name, profile_name, secret_name, secret, custom_headers:custom_headers).value!
|
413
|
+
end
|
414
|
+
|
415
|
+
#
|
416
|
+
# Creates a new Secret within the specified profile.
|
417
|
+
#
|
418
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
419
|
+
# Azure subscription.
|
420
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
421
|
+
# the resource group.
|
422
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
423
|
+
# @param secret [Secret] The Secret properties.
|
424
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
425
|
+
# to the HTTP request.
|
426
|
+
#
|
427
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
428
|
+
#
|
429
|
+
def begin_create_async(resource_group_name, profile_name, secret_name, secret, custom_headers:nil)
|
430
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
431
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
432
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
433
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
434
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
435
|
+
fail ArgumentError, 'secret_name is nil' if secret_name.nil?
|
436
|
+
fail ArgumentError, 'secret is nil' if secret.nil?
|
437
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
438
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
439
|
+
|
440
|
+
|
441
|
+
request_headers = {}
|
442
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
443
|
+
|
444
|
+
# Set Headers
|
445
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
446
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
447
|
+
|
448
|
+
# Serialize Request
|
449
|
+
request_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::Secret.mapper()
|
450
|
+
request_content = @client.serialize(request_mapper, secret)
|
451
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
452
|
+
|
453
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/secrets/{secretName}'
|
454
|
+
|
455
|
+
request_url = @base_url || @client.base_url
|
456
|
+
|
457
|
+
options = {
|
458
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
459
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'secretName' => secret_name,'subscriptionId' => @client.subscription_id},
|
460
|
+
query_params: {'api-version' => @client.api_version},
|
461
|
+
body: request_content,
|
462
|
+
headers: request_headers.merge(custom_headers || {}),
|
463
|
+
base_url: request_url
|
464
|
+
}
|
465
|
+
promise = @client.make_request_async(:put, path_template, options)
|
466
|
+
|
467
|
+
promise = promise.then do |result|
|
468
|
+
http_response = result.response
|
469
|
+
status_code = http_response.status
|
470
|
+
response_content = http_response.body
|
471
|
+
unless status_code == 200 || status_code == 201
|
472
|
+
error_model = JSON.load(response_content)
|
473
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
474
|
+
end
|
475
|
+
|
476
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
477
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
478
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
479
|
+
# Deserialize Response
|
480
|
+
if status_code == 200
|
481
|
+
begin
|
482
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
483
|
+
result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::Secret.mapper()
|
484
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
485
|
+
rescue Exception => e
|
486
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
487
|
+
end
|
488
|
+
end
|
489
|
+
# Deserialize Response
|
490
|
+
if status_code == 201
|
491
|
+
begin
|
492
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
493
|
+
result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::Secret.mapper()
|
494
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
495
|
+
rescue Exception => e
|
496
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
497
|
+
end
|
498
|
+
end
|
499
|
+
|
500
|
+
result
|
501
|
+
end
|
502
|
+
|
503
|
+
promise.execute
|
504
|
+
end
|
505
|
+
|
506
|
+
#
|
507
|
+
# Updates an existing Secret within a profile.
|
508
|
+
#
|
509
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
510
|
+
# Azure subscription.
|
511
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
512
|
+
# the resource group.
|
513
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
514
|
+
# @param secret_properties [SecretProperties] Secret properties
|
515
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
516
|
+
# will be added to the HTTP request.
|
517
|
+
#
|
518
|
+
# @return [Secret] operation results.
|
519
|
+
#
|
520
|
+
def begin_update(resource_group_name, profile_name, secret_name, secret_properties, custom_headers:nil)
|
521
|
+
response = begin_update_async(resource_group_name, profile_name, secret_name, secret_properties, custom_headers:custom_headers).value!
|
522
|
+
response.body unless response.nil?
|
523
|
+
end
|
524
|
+
|
525
|
+
#
|
526
|
+
# Updates an existing Secret within a profile.
|
527
|
+
#
|
528
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
529
|
+
# Azure subscription.
|
530
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
531
|
+
# the resource group.
|
532
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
533
|
+
# @param secret_properties [SecretProperties] Secret properties
|
534
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
535
|
+
# will be added to the HTTP request.
|
536
|
+
#
|
537
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
538
|
+
#
|
539
|
+
def begin_update_with_http_info(resource_group_name, profile_name, secret_name, secret_properties, custom_headers:nil)
|
540
|
+
begin_update_async(resource_group_name, profile_name, secret_name, secret_properties, custom_headers:custom_headers).value!
|
541
|
+
end
|
542
|
+
|
543
|
+
#
|
544
|
+
# Updates an existing Secret within a profile.
|
545
|
+
#
|
546
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
547
|
+
# Azure subscription.
|
548
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
549
|
+
# the resource group.
|
550
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
551
|
+
# @param secret_properties [SecretProperties] Secret properties
|
552
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
553
|
+
# to the HTTP request.
|
554
|
+
#
|
555
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
556
|
+
#
|
557
|
+
def begin_update_async(resource_group_name, profile_name, secret_name, secret_properties, custom_headers:nil)
|
558
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
559
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
560
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
561
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
562
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
563
|
+
fail ArgumentError, 'secret_name is nil' if secret_name.nil?
|
564
|
+
fail ArgumentError, 'secret_properties is nil' if secret_properties.nil?
|
565
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
566
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
567
|
+
|
568
|
+
|
569
|
+
request_headers = {}
|
570
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
571
|
+
|
572
|
+
# Set Headers
|
573
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
574
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
575
|
+
|
576
|
+
# Serialize Request
|
577
|
+
request_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::SecretProperties.mapper()
|
578
|
+
request_content = @client.serialize(request_mapper, secret_properties)
|
579
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
580
|
+
|
581
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/secrets/{secretName}'
|
582
|
+
|
583
|
+
request_url = @base_url || @client.base_url
|
584
|
+
|
585
|
+
options = {
|
586
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
587
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'secretName' => secret_name,'subscriptionId' => @client.subscription_id},
|
588
|
+
query_params: {'api-version' => @client.api_version},
|
589
|
+
body: request_content,
|
590
|
+
headers: request_headers.merge(custom_headers || {}),
|
591
|
+
base_url: request_url
|
592
|
+
}
|
593
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
594
|
+
|
595
|
+
promise = promise.then do |result|
|
596
|
+
http_response = result.response
|
597
|
+
status_code = http_response.status
|
598
|
+
response_content = http_response.body
|
599
|
+
unless status_code == 200 || status_code == 202
|
600
|
+
error_model = JSON.load(response_content)
|
601
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
602
|
+
end
|
603
|
+
|
604
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
605
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
606
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
607
|
+
# Deserialize Response
|
608
|
+
if status_code == 200
|
609
|
+
begin
|
610
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
611
|
+
result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::Secret.mapper()
|
612
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
613
|
+
rescue Exception => e
|
614
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
615
|
+
end
|
616
|
+
end
|
617
|
+
# Deserialize Response
|
618
|
+
if status_code == 202
|
619
|
+
begin
|
620
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
621
|
+
result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::Secret.mapper()
|
622
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
623
|
+
rescue Exception => e
|
624
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
625
|
+
end
|
626
|
+
end
|
627
|
+
|
628
|
+
result
|
629
|
+
end
|
630
|
+
|
631
|
+
promise.execute
|
632
|
+
end
|
633
|
+
|
634
|
+
#
|
635
|
+
# Deletes an existing Secret within profile.
|
636
|
+
#
|
637
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
638
|
+
# Azure subscription.
|
639
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
640
|
+
# the resource group.
|
641
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
642
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
643
|
+
# will be added to the HTTP request.
|
644
|
+
#
|
645
|
+
#
|
646
|
+
def begin_delete(resource_group_name, profile_name, secret_name, custom_headers:nil)
|
647
|
+
response = begin_delete_async(resource_group_name, profile_name, secret_name, custom_headers:custom_headers).value!
|
648
|
+
nil
|
649
|
+
end
|
650
|
+
|
651
|
+
#
|
652
|
+
# Deletes an existing Secret within profile.
|
653
|
+
#
|
654
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
655
|
+
# Azure subscription.
|
656
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
657
|
+
# the resource group.
|
658
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
659
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
660
|
+
# will be added to the HTTP request.
|
661
|
+
#
|
662
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
663
|
+
#
|
664
|
+
def begin_delete_with_http_info(resource_group_name, profile_name, secret_name, custom_headers:nil)
|
665
|
+
begin_delete_async(resource_group_name, profile_name, secret_name, custom_headers:custom_headers).value!
|
666
|
+
end
|
667
|
+
|
668
|
+
#
|
669
|
+
# Deletes an existing Secret within profile.
|
670
|
+
#
|
671
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
672
|
+
# Azure subscription.
|
673
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
674
|
+
# the resource group.
|
675
|
+
# @param secret_name [String] Name of the Secret under the profile.
|
676
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
677
|
+
# to the HTTP request.
|
678
|
+
#
|
679
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
680
|
+
#
|
681
|
+
def begin_delete_async(resource_group_name, profile_name, secret_name, custom_headers:nil)
|
682
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
683
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
684
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
685
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
686
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
687
|
+
fail ArgumentError, 'secret_name is nil' if secret_name.nil?
|
688
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
689
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
690
|
+
|
691
|
+
|
692
|
+
request_headers = {}
|
693
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
694
|
+
|
695
|
+
# Set Headers
|
696
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
697
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
698
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/secrets/{secretName}'
|
699
|
+
|
700
|
+
request_url = @base_url || @client.base_url
|
701
|
+
|
702
|
+
options = {
|
703
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
704
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'secretName' => secret_name,'subscriptionId' => @client.subscription_id},
|
705
|
+
query_params: {'api-version' => @client.api_version},
|
706
|
+
headers: request_headers.merge(custom_headers || {}),
|
707
|
+
base_url: request_url
|
708
|
+
}
|
709
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
710
|
+
|
711
|
+
promise = promise.then do |result|
|
712
|
+
http_response = result.response
|
713
|
+
status_code = http_response.status
|
714
|
+
response_content = http_response.body
|
715
|
+
unless status_code == 200 || status_code == 204
|
716
|
+
error_model = JSON.load(response_content)
|
717
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
718
|
+
end
|
719
|
+
|
720
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
721
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
722
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
723
|
+
|
724
|
+
result
|
725
|
+
end
|
726
|
+
|
727
|
+
promise.execute
|
728
|
+
end
|
729
|
+
|
730
|
+
#
|
731
|
+
# Lists existing AzureFrontDoor secrets.
|
732
|
+
#
|
733
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
734
|
+
# to List operation.
|
735
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
736
|
+
# will be added to the HTTP request.
|
737
|
+
#
|
738
|
+
# @return [SecretListResult] operation results.
|
739
|
+
#
|
740
|
+
def list_by_profile_next(next_page_link, custom_headers:nil)
|
741
|
+
response = list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value!
|
742
|
+
response.body unless response.nil?
|
743
|
+
end
|
744
|
+
|
745
|
+
#
|
746
|
+
# Lists existing AzureFrontDoor secrets.
|
747
|
+
#
|
748
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
749
|
+
# to List operation.
|
750
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
751
|
+
# will be added to the HTTP request.
|
752
|
+
#
|
753
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
754
|
+
#
|
755
|
+
def list_by_profile_next_with_http_info(next_page_link, custom_headers:nil)
|
756
|
+
list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value!
|
757
|
+
end
|
758
|
+
|
759
|
+
#
|
760
|
+
# Lists existing AzureFrontDoor secrets.
|
761
|
+
#
|
762
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
763
|
+
# to List operation.
|
764
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
765
|
+
# to the HTTP request.
|
766
|
+
#
|
767
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
768
|
+
#
|
769
|
+
def list_by_profile_next_async(next_page_link, custom_headers:nil)
|
770
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
771
|
+
|
772
|
+
|
773
|
+
request_headers = {}
|
774
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
775
|
+
|
776
|
+
# Set Headers
|
777
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
778
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
779
|
+
path_template = '{nextLink}'
|
780
|
+
|
781
|
+
request_url = @base_url || @client.base_url
|
782
|
+
|
783
|
+
options = {
|
784
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
785
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
786
|
+
headers: request_headers.merge(custom_headers || {}),
|
787
|
+
base_url: request_url
|
788
|
+
}
|
789
|
+
promise = @client.make_request_async(:get, path_template, options)
|
790
|
+
|
791
|
+
promise = promise.then do |result|
|
792
|
+
http_response = result.response
|
793
|
+
status_code = http_response.status
|
794
|
+
response_content = http_response.body
|
795
|
+
unless status_code == 200
|
796
|
+
error_model = JSON.load(response_content)
|
797
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
798
|
+
end
|
799
|
+
|
800
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
801
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
802
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
803
|
+
# Deserialize Response
|
804
|
+
if status_code == 200
|
805
|
+
begin
|
806
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
807
|
+
result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::SecretListResult.mapper()
|
808
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
809
|
+
rescue Exception => e
|
810
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
811
|
+
end
|
812
|
+
end
|
813
|
+
|
814
|
+
result
|
815
|
+
end
|
816
|
+
|
817
|
+
promise.execute
|
818
|
+
end
|
819
|
+
|
820
|
+
#
|
821
|
+
# Lists existing AzureFrontDoor secrets.
|
822
|
+
#
|
823
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
824
|
+
# Azure subscription.
|
825
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
826
|
+
# the resource group.
|
827
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
828
|
+
# will be added to the HTTP request.
|
829
|
+
#
|
830
|
+
# @return [SecretListResult] which provide lazy access to pages of the
|
831
|
+
# response.
|
832
|
+
#
|
833
|
+
def list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:nil)
|
834
|
+
response = list_by_profile_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
|
835
|
+
unless response.nil?
|
836
|
+
page = response.body
|
837
|
+
page.next_method = Proc.new do |next_page_link|
|
838
|
+
list_by_profile_next_async(next_page_link, custom_headers:custom_headers)
|
839
|
+
end
|
840
|
+
page
|
841
|
+
end
|
842
|
+
end
|
843
|
+
|
844
|
+
end
|
845
|
+
end
|