azure_mgmt_cdn 0.17.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn.rb +70 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/cdn_management_client.rb +152 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb +729 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb +1476 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +69 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain.rb +103 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +57 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +47 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/deep_created_origin.rb +82 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint.rb +249 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb +185 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +56 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +152 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/error_response.rb +58 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/operation.rb +58 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/operation_display.rb +70 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/operation_list_result.rb +57 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin.rb +128 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin_list_result.rb +56 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin_parameters.rb +71 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile.rb +128 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_create_parameters.rb +77 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_list_result.rb +56 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/provisioning_state.rb +17 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/resource.rb +81 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/sku.rb +48 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/sku_name.rb +16 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/sso_uri.rb +46 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +70 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/module_definition.rb +9 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/name_availability.rb +132 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/operations.rb +112 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb +788 -0
- data/lib/2015-06-01/generated/azure_mgmt_cdn/profiles.rb +913 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn.rb +70 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +152 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/custom_domains.rb +729 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/endpoints.rb +1476 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +69 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb +103 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +57 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +47 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb +82 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint.rb +249 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb +185 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +56 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +152 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/error_response.rb +58 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation.rb +58 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_display.rb +70 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_list_result.rb +57 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin.rb +128 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb +56 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_parameters.rb +71 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile.rb +128 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_create_parameters.rb +77 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb +56 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/provisioning_state.rb +17 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/resource.rb +81 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sku.rb +49 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sku_name.rb +18 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb +46 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +70 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/module_definition.rb +9 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/name_availability.rb +132 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/operations.rb +112 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/origins.rb +788 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/profiles.rb +913 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn.rb +76 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb +764 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/custom_domains.rb +984 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/edge_nodes.rb +220 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/endpoints.rb +1928 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +69 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +57 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain.rb +151 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +101 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +48 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb +19 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb +90 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/edge_node.rb +106 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/edgenode_result.rb +100 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint.rb +285 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +100 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +190 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/error_response.rb +58 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/geo_filter.rb +80 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/ip_address_group.rb +86 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation.rb +58 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation_display.rb +69 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation_list_result.rb +101 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin.rb +158 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin_list_result.rb +100 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +79 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile.rb +127 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile_list_result.rb +100 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource.rb +110 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource_usage.rb +79 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +99 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/sku.rb +49 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/sku_name.rb +19 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/sso_uri.rb +46 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/supported_optimization_types_result.rb +55 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +70 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/module_definition.rb +9 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/origins.rb +564 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb +1484 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn.rb +83 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +363 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb +984 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb +227 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb +1948 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +72 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +57 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb +148 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +102 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +48 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb +19 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb +24 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb +91 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/edge_node.rb +83 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/edgenode_result.rb +101 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint.rb +305 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +101 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +210 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/error_response.rb +60 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/geo_filter.rb +80 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/ip_address_group.rb +86 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/operation.rb +59 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/operation_display.rb +72 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/operations_list_result.rb +102 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin.rb +158 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb +101 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +79 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile.rb +125 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb +101 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/proxy_resource.rb +63 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource.rb +80 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage.rb +83 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +100 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/sku.rb +49 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/sku_name.rb +19 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb +48 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +56 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +72 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_probe_input.rb +46 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_probe_output.rb +73 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/module_definition.rb +9 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/operations.rb +221 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/origins.rb +564 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb +1484 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb +230 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn.rb +100 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/cdn_management_client.rb +466 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/custom_domains.rb +1003 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/edge_nodes.rb +227 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/endpoints.rb +1948 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb +89 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cdn_certificate_source_parameters.rb +62 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cdn_managed_https_parameters.rb +73 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/certificate_type.rb +16 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +72 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +57 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain.rb +148 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_https_parameters.rb +60 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +102 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +48 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb +19 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb +24 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/deep_created_origin.rb +91 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule.rb +96 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_action.rb +46 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb +64 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb +47 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb +64 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb +64 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/edge_node.rb +83 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/edgenode_result.rb +101 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint.rb +318 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +101 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb +67 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +223 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/error_response.rb +60 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/geo_filter.rb +80 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/ip_address_group.rb +86 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/key_vault_certificate_source_parameters.rb +137 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation.rb +59 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation_display.rb +72 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operations_list_result.rb +102 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin.rb +158 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_list_result.rb +101 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +79 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile.rb +125 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_list_result.rb +101 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/protocol_type.rb +16 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/proxy_resource.rb +63 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource.rb +80 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage.rb +83 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +100 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku.rb +49 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku_name.rb +20 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sso_uri.rb +48 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +56 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_file_extension_condition_parameters.rb +70 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_path_condition_parameters.rb +72 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/user_managed_https_parameters.rb +73 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +72 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_input.rb +46 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_output.rb +73 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/module_definition.rb +9 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/operations.rb +221 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/origins.rb +564 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/profiles.rb +1484 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/resource_usage_operations.rb +230 -0
- data/lib/2020-04-15/generated/azure_mgmt_cdn.rb +201 -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 +51 -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_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/azure_mgmt_cdn.rb +11 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/cdn_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/cdn_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/cdn_profile_module.rb +735 -0
- data/lib/version.rb +7 -0
- metadata +581 -0
@@ -0,0 +1,913 @@
|
|
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::V2015_06_01
|
7
|
+
#
|
8
|
+
# Use these APIs to manage Azure CDN resources through the Azure Resource
|
9
|
+
# Manager. You must make sure that requests made to these resources are
|
10
|
+
# secure. For more information, see
|
11
|
+
# https://msdn.microsoft.com/en-us/library/azure/dn790557.aspx.
|
12
|
+
#
|
13
|
+
class Profiles
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
#
|
17
|
+
# Creates and initializes a new instance of the Profiles class.
|
18
|
+
# @param client service class for accessing basic functionality.
|
19
|
+
#
|
20
|
+
def initialize(client)
|
21
|
+
@client = client
|
22
|
+
end
|
23
|
+
|
24
|
+
# @return [CdnManagementClient] reference to the CdnManagementClient
|
25
|
+
attr_reader :client
|
26
|
+
|
27
|
+
#
|
28
|
+
# Lists the CDN profiles within an Azure subscription.
|
29
|
+
#
|
30
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
+
# will be added to the HTTP request.
|
32
|
+
#
|
33
|
+
# @return [ProfileListResult] operation results.
|
34
|
+
#
|
35
|
+
def list_by_subscription_id(custom_headers:nil)
|
36
|
+
response = list_by_subscription_id_async(custom_headers:custom_headers).value!
|
37
|
+
response.body unless response.nil?
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Lists the CDN profiles within an Azure subscription.
|
42
|
+
#
|
43
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
44
|
+
# will be added to the HTTP request.
|
45
|
+
#
|
46
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
47
|
+
#
|
48
|
+
def list_by_subscription_id_with_http_info(custom_headers:nil)
|
49
|
+
list_by_subscription_id_async(custom_headers:custom_headers).value!
|
50
|
+
end
|
51
|
+
|
52
|
+
#
|
53
|
+
# Lists the CDN profiles within an Azure subscription.
|
54
|
+
#
|
55
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
56
|
+
# to the HTTP request.
|
57
|
+
#
|
58
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
59
|
+
#
|
60
|
+
def list_by_subscription_id_async(custom_headers:nil)
|
61
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
62
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
63
|
+
|
64
|
+
|
65
|
+
request_headers = {}
|
66
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
67
|
+
|
68
|
+
# Set Headers
|
69
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
70
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
71
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/profiles'
|
72
|
+
|
73
|
+
request_url = @base_url || @client.base_url
|
74
|
+
|
75
|
+
options = {
|
76
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
77
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
78
|
+
query_params: {'api-version' => @client.api_version},
|
79
|
+
headers: request_headers.merge(custom_headers || {}),
|
80
|
+
base_url: request_url
|
81
|
+
}
|
82
|
+
promise = @client.make_request_async(:get, path_template, options)
|
83
|
+
|
84
|
+
promise = promise.then do |result|
|
85
|
+
http_response = result.response
|
86
|
+
status_code = http_response.status
|
87
|
+
response_content = http_response.body
|
88
|
+
unless status_code == 200
|
89
|
+
error_model = JSON.load(response_content)
|
90
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
91
|
+
end
|
92
|
+
|
93
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
94
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
95
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
96
|
+
# Deserialize Response
|
97
|
+
if status_code == 200
|
98
|
+
begin
|
99
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
100
|
+
result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::ProfileListResult.mapper()
|
101
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
102
|
+
rescue Exception => e
|
103
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
result
|
108
|
+
end
|
109
|
+
|
110
|
+
promise.execute
|
111
|
+
end
|
112
|
+
|
113
|
+
#
|
114
|
+
# Lists the CDN profiles within a resource group.
|
115
|
+
#
|
116
|
+
# @param resource_group_name [String] Name of the resource group within the
|
117
|
+
# Azure subscription.
|
118
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
119
|
+
# will be added to the HTTP request.
|
120
|
+
#
|
121
|
+
# @return [ProfileListResult] operation results.
|
122
|
+
#
|
123
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
124
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
125
|
+
response.body unless response.nil?
|
126
|
+
end
|
127
|
+
|
128
|
+
#
|
129
|
+
# Lists the CDN profiles within a resource group.
|
130
|
+
#
|
131
|
+
# @param resource_group_name [String] Name of the resource group within the
|
132
|
+
# Azure subscription.
|
133
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
134
|
+
# will be added to the HTTP request.
|
135
|
+
#
|
136
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
137
|
+
#
|
138
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
139
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
140
|
+
end
|
141
|
+
|
142
|
+
#
|
143
|
+
# Lists the CDN profiles within a resource group.
|
144
|
+
#
|
145
|
+
# @param resource_group_name [String] Name of the resource group within the
|
146
|
+
# Azure subscription.
|
147
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
148
|
+
# to the HTTP request.
|
149
|
+
#
|
150
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
151
|
+
#
|
152
|
+
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
153
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
154
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
155
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
156
|
+
|
157
|
+
|
158
|
+
request_headers = {}
|
159
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
160
|
+
|
161
|
+
# Set Headers
|
162
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
163
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
164
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles'
|
165
|
+
|
166
|
+
request_url = @base_url || @client.base_url
|
167
|
+
|
168
|
+
options = {
|
169
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
170
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
171
|
+
query_params: {'api-version' => @client.api_version},
|
172
|
+
headers: request_headers.merge(custom_headers || {}),
|
173
|
+
base_url: request_url
|
174
|
+
}
|
175
|
+
promise = @client.make_request_async(:get, path_template, options)
|
176
|
+
|
177
|
+
promise = promise.then do |result|
|
178
|
+
http_response = result.response
|
179
|
+
status_code = http_response.status
|
180
|
+
response_content = http_response.body
|
181
|
+
unless status_code == 200
|
182
|
+
error_model = JSON.load(response_content)
|
183
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
184
|
+
end
|
185
|
+
|
186
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
187
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
188
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
189
|
+
# Deserialize Response
|
190
|
+
if status_code == 200
|
191
|
+
begin
|
192
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
193
|
+
result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::ProfileListResult.mapper()
|
194
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
195
|
+
rescue Exception => e
|
196
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
result
|
201
|
+
end
|
202
|
+
|
203
|
+
promise.execute
|
204
|
+
end
|
205
|
+
|
206
|
+
#
|
207
|
+
# Gets a CDN profile with the specified parameters.
|
208
|
+
#
|
209
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
210
|
+
# group.
|
211
|
+
# @param resource_group_name [String] Name of the resource group within the
|
212
|
+
# Azure subscription.
|
213
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
214
|
+
# will be added to the HTTP request.
|
215
|
+
#
|
216
|
+
# @return [Profile] operation results.
|
217
|
+
#
|
218
|
+
def get(profile_name, resource_group_name, custom_headers:nil)
|
219
|
+
response = get_async(profile_name, resource_group_name, custom_headers:custom_headers).value!
|
220
|
+
response.body unless response.nil?
|
221
|
+
end
|
222
|
+
|
223
|
+
#
|
224
|
+
# Gets a CDN profile with the specified parameters.
|
225
|
+
#
|
226
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
227
|
+
# group.
|
228
|
+
# @param resource_group_name [String] Name of the resource group within the
|
229
|
+
# Azure subscription.
|
230
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
231
|
+
# will be added to the HTTP request.
|
232
|
+
#
|
233
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
234
|
+
#
|
235
|
+
def get_with_http_info(profile_name, resource_group_name, custom_headers:nil)
|
236
|
+
get_async(profile_name, resource_group_name, custom_headers:custom_headers).value!
|
237
|
+
end
|
238
|
+
|
239
|
+
#
|
240
|
+
# Gets a CDN profile with the specified parameters.
|
241
|
+
#
|
242
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
243
|
+
# group.
|
244
|
+
# @param resource_group_name [String] Name of the resource group within the
|
245
|
+
# Azure subscription.
|
246
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
247
|
+
# to the HTTP request.
|
248
|
+
#
|
249
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
250
|
+
#
|
251
|
+
def get_async(profile_name, resource_group_name, custom_headers:nil)
|
252
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
253
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
254
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
255
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
256
|
+
|
257
|
+
|
258
|
+
request_headers = {}
|
259
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
260
|
+
|
261
|
+
# Set Headers
|
262
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
263
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
264
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}'
|
265
|
+
|
266
|
+
request_url = @base_url || @client.base_url
|
267
|
+
|
268
|
+
options = {
|
269
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
270
|
+
path_params: {'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
271
|
+
query_params: {'api-version' => @client.api_version},
|
272
|
+
headers: request_headers.merge(custom_headers || {}),
|
273
|
+
base_url: request_url
|
274
|
+
}
|
275
|
+
promise = @client.make_request_async(:get, path_template, options)
|
276
|
+
|
277
|
+
promise = promise.then do |result|
|
278
|
+
http_response = result.response
|
279
|
+
status_code = http_response.status
|
280
|
+
response_content = http_response.body
|
281
|
+
unless status_code == 200
|
282
|
+
error_model = JSON.load(response_content)
|
283
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
284
|
+
end
|
285
|
+
|
286
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
287
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
288
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
289
|
+
# Deserialize Response
|
290
|
+
if status_code == 200
|
291
|
+
begin
|
292
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
293
|
+
result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::Profile.mapper()
|
294
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
295
|
+
rescue Exception => e
|
296
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
result
|
301
|
+
end
|
302
|
+
|
303
|
+
promise.execute
|
304
|
+
end
|
305
|
+
|
306
|
+
#
|
307
|
+
# Creates a new CDN profile with the specified parameters.
|
308
|
+
#
|
309
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
310
|
+
# group.
|
311
|
+
# @param profile_properties [ProfileCreateParameters] Profile properties needed
|
312
|
+
# for creation.
|
313
|
+
# @param resource_group_name [String] Name of the resource group within the
|
314
|
+
# Azure subscription.
|
315
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
316
|
+
# will be added to the HTTP request.
|
317
|
+
#
|
318
|
+
# @return [Profile] operation results.
|
319
|
+
#
|
320
|
+
def create(profile_name, profile_properties, resource_group_name, custom_headers:nil)
|
321
|
+
response = create_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value!
|
322
|
+
response.body unless response.nil?
|
323
|
+
end
|
324
|
+
|
325
|
+
#
|
326
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
327
|
+
# group.
|
328
|
+
# @param profile_properties [ProfileCreateParameters] Profile properties needed
|
329
|
+
# for creation.
|
330
|
+
# @param resource_group_name [String] Name of the resource group within the
|
331
|
+
# Azure subscription.
|
332
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
333
|
+
# will be added to the HTTP request.
|
334
|
+
#
|
335
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
336
|
+
# response.
|
337
|
+
#
|
338
|
+
def create_async(profile_name, profile_properties, resource_group_name, custom_headers:nil)
|
339
|
+
# Send request
|
340
|
+
promise = begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers)
|
341
|
+
|
342
|
+
promise = promise.then do |response|
|
343
|
+
# Defining deserialization method.
|
344
|
+
deserialize_method = lambda do |parsed_response|
|
345
|
+
result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::Profile.mapper()
|
346
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
347
|
+
end
|
348
|
+
|
349
|
+
# Waiting for response.
|
350
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
351
|
+
end
|
352
|
+
|
353
|
+
promise
|
354
|
+
end
|
355
|
+
|
356
|
+
#
|
357
|
+
# Updates an existing CDN profile with the specified parameters.
|
358
|
+
#
|
359
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
360
|
+
# group.
|
361
|
+
# @param profile_properties [ProfileUpdateParameters] Profile properties needed
|
362
|
+
# for update.
|
363
|
+
# @param resource_group_name [String] Name of the resource group within the
|
364
|
+
# Azure subscription.
|
365
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
366
|
+
# will be added to the HTTP request.
|
367
|
+
#
|
368
|
+
# @return [Profile] operation results.
|
369
|
+
#
|
370
|
+
def update(profile_name, profile_properties, resource_group_name, custom_headers:nil)
|
371
|
+
response = update_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value!
|
372
|
+
response.body unless response.nil?
|
373
|
+
end
|
374
|
+
|
375
|
+
#
|
376
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
377
|
+
# group.
|
378
|
+
# @param profile_properties [ProfileUpdateParameters] Profile properties needed
|
379
|
+
# for update.
|
380
|
+
# @param resource_group_name [String] Name of the resource group within the
|
381
|
+
# Azure subscription.
|
382
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
383
|
+
# will be added to the HTTP request.
|
384
|
+
#
|
385
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
386
|
+
# response.
|
387
|
+
#
|
388
|
+
def update_async(profile_name, profile_properties, resource_group_name, custom_headers:nil)
|
389
|
+
# Send request
|
390
|
+
promise = begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers)
|
391
|
+
|
392
|
+
promise = promise.then do |response|
|
393
|
+
# Defining deserialization method.
|
394
|
+
deserialize_method = lambda do |parsed_response|
|
395
|
+
result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::Profile.mapper()
|
396
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
397
|
+
end
|
398
|
+
|
399
|
+
# Waiting for response.
|
400
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
401
|
+
end
|
402
|
+
|
403
|
+
promise
|
404
|
+
end
|
405
|
+
|
406
|
+
#
|
407
|
+
# Deletes an existing CDN profile with the specified parameters. Deleting a
|
408
|
+
# profile will result in the deletion of all subresources including endpoints,
|
409
|
+
# origins and custom domains.
|
410
|
+
#
|
411
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
412
|
+
# group.
|
413
|
+
# @param resource_group_name [String] Name of the resource group within the
|
414
|
+
# Azure subscription.
|
415
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
416
|
+
# will be added to the HTTP request.
|
417
|
+
#
|
418
|
+
def delete_if_exists(profile_name, resource_group_name, custom_headers:nil)
|
419
|
+
response = delete_if_exists_async(profile_name, resource_group_name, custom_headers:custom_headers).value!
|
420
|
+
nil
|
421
|
+
end
|
422
|
+
|
423
|
+
#
|
424
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
425
|
+
# group.
|
426
|
+
# @param resource_group_name [String] Name of the resource group within the
|
427
|
+
# Azure subscription.
|
428
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
429
|
+
# will be added to the HTTP request.
|
430
|
+
#
|
431
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
432
|
+
# response.
|
433
|
+
#
|
434
|
+
def delete_if_exists_async(profile_name, resource_group_name, custom_headers:nil)
|
435
|
+
# Send request
|
436
|
+
promise = begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers:custom_headers)
|
437
|
+
|
438
|
+
promise = promise.then do |response|
|
439
|
+
# Defining deserialization method.
|
440
|
+
deserialize_method = lambda do |parsed_response|
|
441
|
+
end
|
442
|
+
|
443
|
+
# Waiting for response.
|
444
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
445
|
+
end
|
446
|
+
|
447
|
+
promise
|
448
|
+
end
|
449
|
+
|
450
|
+
#
|
451
|
+
# Generates a dynamic SSO URI used to sign in to the CDN Supplemental Portal
|
452
|
+
# used for advanced management tasks, such as Country Filtering, Advanced HTTP
|
453
|
+
# Reports, and Real-time Stats and Alerts. The SSO URI changes approximately
|
454
|
+
# every 10 minutes.
|
455
|
+
#
|
456
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
457
|
+
# group.
|
458
|
+
# @param resource_group_name [String] Name of the resource group within the
|
459
|
+
# Azure subscription.
|
460
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
461
|
+
# will be added to the HTTP request.
|
462
|
+
#
|
463
|
+
# @return [SsoUri] operation results.
|
464
|
+
#
|
465
|
+
def generate_sso_uri(profile_name, resource_group_name, custom_headers:nil)
|
466
|
+
response = generate_sso_uri_async(profile_name, resource_group_name, custom_headers:custom_headers).value!
|
467
|
+
response.body unless response.nil?
|
468
|
+
end
|
469
|
+
|
470
|
+
#
|
471
|
+
# Generates a dynamic SSO URI used to sign in to the CDN Supplemental Portal
|
472
|
+
# used for advanced management tasks, such as Country Filtering, Advanced HTTP
|
473
|
+
# Reports, and Real-time Stats and Alerts. The SSO URI changes approximately
|
474
|
+
# every 10 minutes.
|
475
|
+
#
|
476
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
477
|
+
# group.
|
478
|
+
# @param resource_group_name [String] Name of the resource group within the
|
479
|
+
# Azure subscription.
|
480
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
481
|
+
# will be added to the HTTP request.
|
482
|
+
#
|
483
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
484
|
+
#
|
485
|
+
def generate_sso_uri_with_http_info(profile_name, resource_group_name, custom_headers:nil)
|
486
|
+
generate_sso_uri_async(profile_name, resource_group_name, custom_headers:custom_headers).value!
|
487
|
+
end
|
488
|
+
|
489
|
+
#
|
490
|
+
# Generates a dynamic SSO URI used to sign in to the CDN Supplemental Portal
|
491
|
+
# used for advanced management tasks, such as Country Filtering, Advanced HTTP
|
492
|
+
# Reports, and Real-time Stats and Alerts. The SSO URI changes approximately
|
493
|
+
# every 10 minutes.
|
494
|
+
#
|
495
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
496
|
+
# group.
|
497
|
+
# @param resource_group_name [String] Name of the resource group within the
|
498
|
+
# Azure subscription.
|
499
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
500
|
+
# to the HTTP request.
|
501
|
+
#
|
502
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
503
|
+
#
|
504
|
+
def generate_sso_uri_async(profile_name, resource_group_name, custom_headers:nil)
|
505
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
506
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
507
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
508
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
509
|
+
|
510
|
+
|
511
|
+
request_headers = {}
|
512
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
513
|
+
|
514
|
+
# Set Headers
|
515
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
516
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
517
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/generateSsoUri'
|
518
|
+
|
519
|
+
request_url = @base_url || @client.base_url
|
520
|
+
|
521
|
+
options = {
|
522
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
523
|
+
path_params: {'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
524
|
+
query_params: {'api-version' => @client.api_version},
|
525
|
+
headers: request_headers.merge(custom_headers || {}),
|
526
|
+
base_url: request_url
|
527
|
+
}
|
528
|
+
promise = @client.make_request_async(:post, path_template, options)
|
529
|
+
|
530
|
+
promise = promise.then do |result|
|
531
|
+
http_response = result.response
|
532
|
+
status_code = http_response.status
|
533
|
+
response_content = http_response.body
|
534
|
+
unless status_code == 200
|
535
|
+
error_model = JSON.load(response_content)
|
536
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
537
|
+
end
|
538
|
+
|
539
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
540
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
541
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
542
|
+
# Deserialize Response
|
543
|
+
if status_code == 200
|
544
|
+
begin
|
545
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
546
|
+
result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::SsoUri.mapper()
|
547
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
548
|
+
rescue Exception => e
|
549
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
550
|
+
end
|
551
|
+
end
|
552
|
+
|
553
|
+
result
|
554
|
+
end
|
555
|
+
|
556
|
+
promise.execute
|
557
|
+
end
|
558
|
+
|
559
|
+
#
|
560
|
+
# Creates a new CDN profile with the specified parameters.
|
561
|
+
#
|
562
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
563
|
+
# group.
|
564
|
+
# @param profile_properties [ProfileCreateParameters] Profile properties needed
|
565
|
+
# for creation.
|
566
|
+
# @param resource_group_name [String] Name of the resource group within the
|
567
|
+
# Azure subscription.
|
568
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
569
|
+
# will be added to the HTTP request.
|
570
|
+
#
|
571
|
+
# @return [Profile] operation results.
|
572
|
+
#
|
573
|
+
def begin_create(profile_name, profile_properties, resource_group_name, custom_headers:nil)
|
574
|
+
response = begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value!
|
575
|
+
response.body unless response.nil?
|
576
|
+
end
|
577
|
+
|
578
|
+
#
|
579
|
+
# Creates a new CDN profile with the specified parameters.
|
580
|
+
#
|
581
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
582
|
+
# group.
|
583
|
+
# @param profile_properties [ProfileCreateParameters] Profile properties needed
|
584
|
+
# for creation.
|
585
|
+
# @param resource_group_name [String] Name of the resource group within the
|
586
|
+
# Azure subscription.
|
587
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
588
|
+
# will be added to the HTTP request.
|
589
|
+
#
|
590
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
591
|
+
#
|
592
|
+
def begin_create_with_http_info(profile_name, profile_properties, resource_group_name, custom_headers:nil)
|
593
|
+
begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value!
|
594
|
+
end
|
595
|
+
|
596
|
+
#
|
597
|
+
# Creates a new CDN profile with the specified parameters.
|
598
|
+
#
|
599
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
600
|
+
# group.
|
601
|
+
# @param profile_properties [ProfileCreateParameters] Profile properties needed
|
602
|
+
# for creation.
|
603
|
+
# @param resource_group_name [String] Name of the resource group within the
|
604
|
+
# Azure subscription.
|
605
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
606
|
+
# to the HTTP request.
|
607
|
+
#
|
608
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
609
|
+
#
|
610
|
+
def begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers:nil)
|
611
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
612
|
+
fail ArgumentError, 'profile_properties is nil' if profile_properties.nil?
|
613
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
614
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
615
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
616
|
+
|
617
|
+
|
618
|
+
request_headers = {}
|
619
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
620
|
+
|
621
|
+
# Set Headers
|
622
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
623
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
624
|
+
|
625
|
+
# Serialize Request
|
626
|
+
request_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::ProfileCreateParameters.mapper()
|
627
|
+
request_content = @client.serialize(request_mapper, profile_properties)
|
628
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
629
|
+
|
630
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}'
|
631
|
+
|
632
|
+
request_url = @base_url || @client.base_url
|
633
|
+
|
634
|
+
options = {
|
635
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
636
|
+
path_params: {'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
637
|
+
query_params: {'api-version' => @client.api_version},
|
638
|
+
body: request_content,
|
639
|
+
headers: request_headers.merge(custom_headers || {}),
|
640
|
+
base_url: request_url
|
641
|
+
}
|
642
|
+
promise = @client.make_request_async(:put, path_template, options)
|
643
|
+
|
644
|
+
promise = promise.then do |result|
|
645
|
+
http_response = result.response
|
646
|
+
status_code = http_response.status
|
647
|
+
response_content = http_response.body
|
648
|
+
unless status_code == 200 || status_code == 201 || status_code == 202
|
649
|
+
error_model = JSON.load(response_content)
|
650
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
651
|
+
end
|
652
|
+
|
653
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
654
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
655
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
656
|
+
# Deserialize Response
|
657
|
+
if status_code == 200
|
658
|
+
begin
|
659
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
660
|
+
result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::Profile.mapper()
|
661
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
662
|
+
rescue Exception => e
|
663
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
664
|
+
end
|
665
|
+
end
|
666
|
+
# Deserialize Response
|
667
|
+
if status_code == 201
|
668
|
+
begin
|
669
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
670
|
+
result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::Profile.mapper()
|
671
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
672
|
+
rescue Exception => e
|
673
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
674
|
+
end
|
675
|
+
end
|
676
|
+
# Deserialize Response
|
677
|
+
if status_code == 202
|
678
|
+
begin
|
679
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
680
|
+
result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::Profile.mapper()
|
681
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
682
|
+
rescue Exception => e
|
683
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
684
|
+
end
|
685
|
+
end
|
686
|
+
|
687
|
+
result
|
688
|
+
end
|
689
|
+
|
690
|
+
promise.execute
|
691
|
+
end
|
692
|
+
|
693
|
+
#
|
694
|
+
# Updates an existing CDN profile with the specified parameters.
|
695
|
+
#
|
696
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
697
|
+
# group.
|
698
|
+
# @param profile_properties [ProfileUpdateParameters] Profile properties needed
|
699
|
+
# for update.
|
700
|
+
# @param resource_group_name [String] Name of the resource group within the
|
701
|
+
# Azure subscription.
|
702
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
703
|
+
# will be added to the HTTP request.
|
704
|
+
#
|
705
|
+
# @return [Profile] operation results.
|
706
|
+
#
|
707
|
+
def begin_update(profile_name, profile_properties, resource_group_name, custom_headers:nil)
|
708
|
+
response = begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value!
|
709
|
+
response.body unless response.nil?
|
710
|
+
end
|
711
|
+
|
712
|
+
#
|
713
|
+
# Updates an existing CDN profile with the specified parameters.
|
714
|
+
#
|
715
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
716
|
+
# group.
|
717
|
+
# @param profile_properties [ProfileUpdateParameters] Profile properties needed
|
718
|
+
# for update.
|
719
|
+
# @param resource_group_name [String] Name of the resource group within the
|
720
|
+
# Azure subscription.
|
721
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
722
|
+
# will be added to the HTTP request.
|
723
|
+
#
|
724
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
725
|
+
#
|
726
|
+
def begin_update_with_http_info(profile_name, profile_properties, resource_group_name, custom_headers:nil)
|
727
|
+
begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value!
|
728
|
+
end
|
729
|
+
|
730
|
+
#
|
731
|
+
# Updates an existing CDN profile with the specified parameters.
|
732
|
+
#
|
733
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
734
|
+
# group.
|
735
|
+
# @param profile_properties [ProfileUpdateParameters] Profile properties needed
|
736
|
+
# for update.
|
737
|
+
# @param resource_group_name [String] Name of the resource group within the
|
738
|
+
# Azure subscription.
|
739
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
740
|
+
# to the HTTP request.
|
741
|
+
#
|
742
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
743
|
+
#
|
744
|
+
def begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers:nil)
|
745
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
746
|
+
fail ArgumentError, 'profile_properties is nil' if profile_properties.nil?
|
747
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
748
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
749
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
750
|
+
|
751
|
+
|
752
|
+
request_headers = {}
|
753
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
754
|
+
|
755
|
+
# Set Headers
|
756
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
757
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
758
|
+
|
759
|
+
# Serialize Request
|
760
|
+
request_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::ProfileUpdateParameters.mapper()
|
761
|
+
request_content = @client.serialize(request_mapper, profile_properties)
|
762
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
763
|
+
|
764
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}'
|
765
|
+
|
766
|
+
request_url = @base_url || @client.base_url
|
767
|
+
|
768
|
+
options = {
|
769
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
770
|
+
path_params: {'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
771
|
+
query_params: {'api-version' => @client.api_version},
|
772
|
+
body: request_content,
|
773
|
+
headers: request_headers.merge(custom_headers || {}),
|
774
|
+
base_url: request_url
|
775
|
+
}
|
776
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
777
|
+
|
778
|
+
promise = promise.then do |result|
|
779
|
+
http_response = result.response
|
780
|
+
status_code = http_response.status
|
781
|
+
response_content = http_response.body
|
782
|
+
unless status_code == 200 || status_code == 202
|
783
|
+
error_model = JSON.load(response_content)
|
784
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
785
|
+
end
|
786
|
+
|
787
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
788
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
789
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
790
|
+
# Deserialize Response
|
791
|
+
if status_code == 200
|
792
|
+
begin
|
793
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
794
|
+
result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::Profile.mapper()
|
795
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
796
|
+
rescue Exception => e
|
797
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
798
|
+
end
|
799
|
+
end
|
800
|
+
# Deserialize Response
|
801
|
+
if status_code == 202
|
802
|
+
begin
|
803
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
804
|
+
result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::Profile.mapper()
|
805
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
806
|
+
rescue Exception => e
|
807
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
808
|
+
end
|
809
|
+
end
|
810
|
+
|
811
|
+
result
|
812
|
+
end
|
813
|
+
|
814
|
+
promise.execute
|
815
|
+
end
|
816
|
+
|
817
|
+
#
|
818
|
+
# Deletes an existing CDN profile with the specified parameters. Deleting a
|
819
|
+
# profile will result in the deletion of all subresources including endpoints,
|
820
|
+
# origins and custom domains.
|
821
|
+
#
|
822
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
823
|
+
# group.
|
824
|
+
# @param resource_group_name [String] Name of the resource group within the
|
825
|
+
# Azure subscription.
|
826
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
827
|
+
# will be added to the HTTP request.
|
828
|
+
#
|
829
|
+
#
|
830
|
+
def begin_delete_if_exists(profile_name, resource_group_name, custom_headers:nil)
|
831
|
+
response = begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers:custom_headers).value!
|
832
|
+
nil
|
833
|
+
end
|
834
|
+
|
835
|
+
#
|
836
|
+
# Deletes an existing CDN profile with the specified parameters. Deleting a
|
837
|
+
# profile will result in the deletion of all subresources including endpoints,
|
838
|
+
# origins and custom domains.
|
839
|
+
#
|
840
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
841
|
+
# group.
|
842
|
+
# @param resource_group_name [String] Name of the resource group within the
|
843
|
+
# Azure subscription.
|
844
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
845
|
+
# will be added to the HTTP request.
|
846
|
+
#
|
847
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
848
|
+
#
|
849
|
+
def begin_delete_if_exists_with_http_info(profile_name, resource_group_name, custom_headers:nil)
|
850
|
+
begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers:custom_headers).value!
|
851
|
+
end
|
852
|
+
|
853
|
+
#
|
854
|
+
# Deletes an existing CDN profile with the specified parameters. Deleting a
|
855
|
+
# profile will result in the deletion of all subresources including endpoints,
|
856
|
+
# origins and custom domains.
|
857
|
+
#
|
858
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
859
|
+
# group.
|
860
|
+
# @param resource_group_name [String] Name of the resource group within the
|
861
|
+
# Azure subscription.
|
862
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
863
|
+
# to the HTTP request.
|
864
|
+
#
|
865
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
866
|
+
#
|
867
|
+
def begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers:nil)
|
868
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
869
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
870
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
871
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
872
|
+
|
873
|
+
|
874
|
+
request_headers = {}
|
875
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
876
|
+
|
877
|
+
# Set Headers
|
878
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
879
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
880
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}'
|
881
|
+
|
882
|
+
request_url = @base_url || @client.base_url
|
883
|
+
|
884
|
+
options = {
|
885
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
886
|
+
path_params: {'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
887
|
+
query_params: {'api-version' => @client.api_version},
|
888
|
+
headers: request_headers.merge(custom_headers || {}),
|
889
|
+
base_url: request_url
|
890
|
+
}
|
891
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
892
|
+
|
893
|
+
promise = promise.then do |result|
|
894
|
+
http_response = result.response
|
895
|
+
status_code = http_response.status
|
896
|
+
response_content = http_response.body
|
897
|
+
unless status_code == 202 || status_code == 204
|
898
|
+
error_model = JSON.load(response_content)
|
899
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
900
|
+
end
|
901
|
+
|
902
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
903
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
904
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
905
|
+
|
906
|
+
result
|
907
|
+
end
|
908
|
+
|
909
|
+
promise.execute
|
910
|
+
end
|
911
|
+
|
912
|
+
end
|
913
|
+
end
|