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,230 @@
|
|
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::V2017_04_02
|
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.
|
11
|
+
#
|
12
|
+
class ResourceUsageOperations
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
#
|
16
|
+
# Creates and initializes a new instance of the ResourceUsageOperations class.
|
17
|
+
# @param client service class for accessing basic functionality.
|
18
|
+
#
|
19
|
+
def initialize(client)
|
20
|
+
@client = client
|
21
|
+
end
|
22
|
+
|
23
|
+
# @return [CdnManagementClient] reference to the CdnManagementClient
|
24
|
+
attr_reader :client
|
25
|
+
|
26
|
+
#
|
27
|
+
# Check the quota and actual usage of the CDN profiles under the given
|
28
|
+
# 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 [Array<ResourceUsage>] operation results.
|
34
|
+
#
|
35
|
+
def list(custom_headers:nil)
|
36
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
37
|
+
first_page.get_all_items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Check the quota and actual usage of the CDN profiles under the given
|
42
|
+
# subscription.
|
43
|
+
#
|
44
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
|
+
# will be added to the HTTP request.
|
46
|
+
#
|
47
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
|
+
#
|
49
|
+
def list_with_http_info(custom_headers:nil)
|
50
|
+
list_async(custom_headers:custom_headers).value!
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# Check the quota and actual usage of the CDN profiles under the given
|
55
|
+
# subscription.
|
56
|
+
#
|
57
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
58
|
+
# to the HTTP request.
|
59
|
+
#
|
60
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
61
|
+
#
|
62
|
+
def list_async(custom_headers:nil)
|
63
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
64
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
65
|
+
|
66
|
+
|
67
|
+
request_headers = {}
|
68
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
69
|
+
|
70
|
+
# Set Headers
|
71
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
72
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
73
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkResourceUsage'
|
74
|
+
|
75
|
+
request_url = @base_url || @client.base_url
|
76
|
+
|
77
|
+
options = {
|
78
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
79
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
80
|
+
query_params: {'api-version' => @client.api_version},
|
81
|
+
headers: request_headers.merge(custom_headers || {}),
|
82
|
+
base_url: request_url
|
83
|
+
}
|
84
|
+
promise = @client.make_request_async(:post, path_template, options)
|
85
|
+
|
86
|
+
promise = promise.then do |result|
|
87
|
+
http_response = result.response
|
88
|
+
status_code = http_response.status
|
89
|
+
response_content = http_response.body
|
90
|
+
unless status_code == 200
|
91
|
+
error_model = JSON.load(response_content)
|
92
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
93
|
+
end
|
94
|
+
|
95
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
96
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
97
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
98
|
+
# Deserialize Response
|
99
|
+
if status_code == 200
|
100
|
+
begin
|
101
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
102
|
+
result_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::ResourceUsageListResult.mapper()
|
103
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
104
|
+
rescue Exception => e
|
105
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
result
|
110
|
+
end
|
111
|
+
|
112
|
+
promise.execute
|
113
|
+
end
|
114
|
+
|
115
|
+
#
|
116
|
+
# Check the quota and actual usage of the CDN profiles under the given
|
117
|
+
# subscription.
|
118
|
+
#
|
119
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
120
|
+
# to List operation.
|
121
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
122
|
+
# will be added to the HTTP request.
|
123
|
+
#
|
124
|
+
# @return [ResourceUsageListResult] operation results.
|
125
|
+
#
|
126
|
+
def list_next(next_page_link, custom_headers:nil)
|
127
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
128
|
+
response.body unless response.nil?
|
129
|
+
end
|
130
|
+
|
131
|
+
#
|
132
|
+
# Check the quota and actual usage of the CDN profiles under the given
|
133
|
+
# subscription.
|
134
|
+
#
|
135
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
136
|
+
# to List operation.
|
137
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
138
|
+
# will be added to the HTTP request.
|
139
|
+
#
|
140
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
141
|
+
#
|
142
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
143
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
144
|
+
end
|
145
|
+
|
146
|
+
#
|
147
|
+
# Check the quota and actual usage of the CDN profiles under the given
|
148
|
+
# subscription.
|
149
|
+
#
|
150
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
151
|
+
# to List operation.
|
152
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
153
|
+
# to the HTTP request.
|
154
|
+
#
|
155
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
156
|
+
#
|
157
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
158
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
159
|
+
|
160
|
+
|
161
|
+
request_headers = {}
|
162
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
163
|
+
|
164
|
+
# Set Headers
|
165
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
166
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
167
|
+
path_template = '{nextLink}'
|
168
|
+
|
169
|
+
request_url = @base_url || @client.base_url
|
170
|
+
|
171
|
+
options = {
|
172
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
173
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
174
|
+
headers: request_headers.merge(custom_headers || {}),
|
175
|
+
base_url: request_url
|
176
|
+
}
|
177
|
+
promise = @client.make_request_async(:post, path_template, options)
|
178
|
+
|
179
|
+
promise = promise.then do |result|
|
180
|
+
http_response = result.response
|
181
|
+
status_code = http_response.status
|
182
|
+
response_content = http_response.body
|
183
|
+
unless status_code == 200
|
184
|
+
error_model = JSON.load(response_content)
|
185
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
186
|
+
end
|
187
|
+
|
188
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
189
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
190
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
191
|
+
# Deserialize Response
|
192
|
+
if status_code == 200
|
193
|
+
begin
|
194
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
195
|
+
result_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::ResourceUsageListResult.mapper()
|
196
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
197
|
+
rescue Exception => e
|
198
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
result
|
203
|
+
end
|
204
|
+
|
205
|
+
promise.execute
|
206
|
+
end
|
207
|
+
|
208
|
+
#
|
209
|
+
# Check the quota and actual usage of the CDN profiles under the given
|
210
|
+
# subscription.
|
211
|
+
#
|
212
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
213
|
+
# will be added to the HTTP request.
|
214
|
+
#
|
215
|
+
# @return [ResourceUsageListResult] which provide lazy access to pages of the
|
216
|
+
# response.
|
217
|
+
#
|
218
|
+
def list_as_lazy(custom_headers:nil)
|
219
|
+
response = list_async(custom_headers:custom_headers).value!
|
220
|
+
unless response.nil?
|
221
|
+
page = response.body
|
222
|
+
page.next_method = Proc.new do |next_page_link|
|
223
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
224
|
+
end
|
225
|
+
page
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
end
|
230
|
+
end
|
@@ -0,0 +1,100 @@
|
|
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
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '2017-10-12/generated/azure_mgmt_cdn/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::CDN::Mgmt::V2017_10_12
|
23
|
+
autoload :Profiles, '2017-10-12/generated/azure_mgmt_cdn/profiles.rb'
|
24
|
+
autoload :Endpoints, '2017-10-12/generated/azure_mgmt_cdn/endpoints.rb'
|
25
|
+
autoload :Origins, '2017-10-12/generated/azure_mgmt_cdn/origins.rb'
|
26
|
+
autoload :CustomDomains, '2017-10-12/generated/azure_mgmt_cdn/custom_domains.rb'
|
27
|
+
autoload :ResourceUsageOperations, '2017-10-12/generated/azure_mgmt_cdn/resource_usage_operations.rb'
|
28
|
+
autoload :Operations, '2017-10-12/generated/azure_mgmt_cdn/operations.rb'
|
29
|
+
autoload :EdgeNodes, '2017-10-12/generated/azure_mgmt_cdn/edge_nodes.rb'
|
30
|
+
autoload :CdnManagementClient, '2017-10-12/generated/azure_mgmt_cdn/cdn_management_client.rb'
|
31
|
+
|
32
|
+
module Models
|
33
|
+
autoload :OriginUpdateParameters, '2017-10-12/generated/azure_mgmt_cdn/models/origin_update_parameters.rb'
|
34
|
+
autoload :Sku, '2017-10-12/generated/azure_mgmt_cdn/models/sku.rb'
|
35
|
+
autoload :OriginListResult, '2017-10-12/generated/azure_mgmt_cdn/models/origin_list_result.rb'
|
36
|
+
autoload :ProfileListResult, '2017-10-12/generated/azure_mgmt_cdn/models/profile_list_result.rb'
|
37
|
+
autoload :SsoUri, '2017-10-12/generated/azure_mgmt_cdn/models/sso_uri.rb'
|
38
|
+
autoload :CustomDomainParameters, '2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb'
|
39
|
+
autoload :DeepCreatedOrigin, '2017-10-12/generated/azure_mgmt_cdn/models/deep_created_origin.rb'
|
40
|
+
autoload :CustomDomainHttpsParameters, '2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_https_parameters.rb'
|
41
|
+
autoload :EndpointListResult, '2017-10-12/generated/azure_mgmt_cdn/models/endpoint_list_result.rb'
|
42
|
+
autoload :CdnCertificateSourceParameters, '2017-10-12/generated/azure_mgmt_cdn/models/cdn_certificate_source_parameters.rb'
|
43
|
+
autoload :DeliveryRuleAction, '2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_action.rb'
|
44
|
+
autoload :ErrorResponse, '2017-10-12/generated/azure_mgmt_cdn/models/error_response.rb'
|
45
|
+
autoload :DeliveryRule, '2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule.rb'
|
46
|
+
autoload :KeyVaultCertificateSourceParameters, '2017-10-12/generated/azure_mgmt_cdn/models/key_vault_certificate_source_parameters.rb'
|
47
|
+
autoload :EndpointUpdateParameters, '2017-10-12/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb'
|
48
|
+
autoload :UrlPathConditionParameters, '2017-10-12/generated/azure_mgmt_cdn/models/url_path_condition_parameters.rb'
|
49
|
+
autoload :EdgenodeResult, '2017-10-12/generated/azure_mgmt_cdn/models/edgenode_result.rb'
|
50
|
+
autoload :UrlFileExtensionConditionParameters, '2017-10-12/generated/azure_mgmt_cdn/models/url_file_extension_condition_parameters.rb'
|
51
|
+
autoload :CustomDomainListResult, '2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb'
|
52
|
+
autoload :CacheExpirationActionParameters, '2017-10-12/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb'
|
53
|
+
autoload :ValidateCustomDomainInput, '2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb'
|
54
|
+
autoload :PurgeParameters, '2017-10-12/generated/azure_mgmt_cdn/models/purge_parameters.rb'
|
55
|
+
autoload :ValidateCustomDomainOutput, '2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb'
|
56
|
+
autoload :Resource, '2017-10-12/generated/azure_mgmt_cdn/models/resource.rb'
|
57
|
+
autoload :Operation, '2017-10-12/generated/azure_mgmt_cdn/models/operation.rb'
|
58
|
+
autoload :ProfileUpdateParameters, '2017-10-12/generated/azure_mgmt_cdn/models/profile_update_parameters.rb'
|
59
|
+
autoload :LoadParameters, '2017-10-12/generated/azure_mgmt_cdn/models/load_parameters.rb'
|
60
|
+
autoload :IpAddressGroup, '2017-10-12/generated/azure_mgmt_cdn/models/ip_address_group.rb'
|
61
|
+
autoload :OperationDisplay, '2017-10-12/generated/azure_mgmt_cdn/models/operation_display.rb'
|
62
|
+
autoload :DeliveryRuleCondition, '2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb'
|
63
|
+
autoload :CheckNameAvailabilityInput, '2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_input.rb'
|
64
|
+
autoload :CidrIpAddress, '2017-10-12/generated/azure_mgmt_cdn/models/cidr_ip_address.rb'
|
65
|
+
autoload :CheckNameAvailabilityOutput, '2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_output.rb'
|
66
|
+
autoload :SupportedOptimizationTypesListResult, '2017-10-12/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb'
|
67
|
+
autoload :ValidateProbeInput, '2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_input.rb'
|
68
|
+
autoload :EndpointPropertiesUpdateParametersDeliveryPolicy, '2017-10-12/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb'
|
69
|
+
autoload :ValidateProbeOutput, '2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_output.rb'
|
70
|
+
autoload :GeoFilter, '2017-10-12/generated/azure_mgmt_cdn/models/geo_filter.rb'
|
71
|
+
autoload :ResourceUsage, '2017-10-12/generated/azure_mgmt_cdn/models/resource_usage.rb'
|
72
|
+
autoload :OperationsListResult, '2017-10-12/generated/azure_mgmt_cdn/models/operations_list_result.rb'
|
73
|
+
autoload :ResourceUsageListResult, '2017-10-12/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb'
|
74
|
+
autoload :Profile, '2017-10-12/generated/azure_mgmt_cdn/models/profile.rb'
|
75
|
+
autoload :Endpoint, '2017-10-12/generated/azure_mgmt_cdn/models/endpoint.rb'
|
76
|
+
autoload :DeliveryRuleUrlPathCondition, '2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb'
|
77
|
+
autoload :DeliveryRuleUrlFileExtensionCondition, '2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb'
|
78
|
+
autoload :DeliveryRuleCacheExpirationAction, '2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb'
|
79
|
+
autoload :Origin, '2017-10-12/generated/azure_mgmt_cdn/models/origin.rb'
|
80
|
+
autoload :ProxyResource, '2017-10-12/generated/azure_mgmt_cdn/models/proxy_resource.rb'
|
81
|
+
autoload :CustomDomain, '2017-10-12/generated/azure_mgmt_cdn/models/custom_domain.rb'
|
82
|
+
autoload :CdnManagedHttpsParameters, '2017-10-12/generated/azure_mgmt_cdn/models/cdn_managed_https_parameters.rb'
|
83
|
+
autoload :UserManagedHttpsParameters, '2017-10-12/generated/azure_mgmt_cdn/models/user_managed_https_parameters.rb'
|
84
|
+
autoload :EdgeNode, '2017-10-12/generated/azure_mgmt_cdn/models/edge_node.rb'
|
85
|
+
autoload :TrackedResource, '2017-10-12/generated/azure_mgmt_cdn/models/tracked_resource.rb'
|
86
|
+
autoload :SkuName, '2017-10-12/generated/azure_mgmt_cdn/models/sku_name.rb'
|
87
|
+
autoload :ProfileResourceState, '2017-10-12/generated/azure_mgmt_cdn/models/profile_resource_state.rb'
|
88
|
+
autoload :OptimizationType, '2017-10-12/generated/azure_mgmt_cdn/models/optimization_type.rb'
|
89
|
+
autoload :EndpointResourceState, '2017-10-12/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb'
|
90
|
+
autoload :QueryStringCachingBehavior, '2017-10-12/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb'
|
91
|
+
autoload :GeoFilterActions, '2017-10-12/generated/azure_mgmt_cdn/models/geo_filter_actions.rb'
|
92
|
+
autoload :OriginResourceState, '2017-10-12/generated/azure_mgmt_cdn/models/origin_resource_state.rb'
|
93
|
+
autoload :CustomDomainResourceState, '2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb'
|
94
|
+
autoload :CustomHttpsProvisioningState, '2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb'
|
95
|
+
autoload :CustomHttpsProvisioningSubstate, '2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb'
|
96
|
+
autoload :ProtocolType, '2017-10-12/generated/azure_mgmt_cdn/models/protocol_type.rb'
|
97
|
+
autoload :CertificateType, '2017-10-12/generated/azure_mgmt_cdn/models/certificate_type.rb'
|
98
|
+
autoload :ResourceType, '2017-10-12/generated/azure_mgmt_cdn/models/resource_type.rb'
|
99
|
+
end
|
100
|
+
end
|
@@ -0,0 +1,466 @@
|
|
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::V2017_10_12
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class CdnManagementClient < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] Azure Subscription ID.
|
21
|
+
attr_accessor :subscription_id
|
22
|
+
|
23
|
+
# @return [String] Version of the API to be used with the client request.
|
24
|
+
# Current version is 2017-04-02.
|
25
|
+
attr_reader :api_version
|
26
|
+
|
27
|
+
# @return [String] The preferred language for the response.
|
28
|
+
attr_accessor :accept_language
|
29
|
+
|
30
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
31
|
+
# Operations. Default value is 30.
|
32
|
+
attr_accessor :long_running_operation_retry_timeout
|
33
|
+
|
34
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
35
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
36
|
+
# generated and included in each request. Default is true.
|
37
|
+
attr_accessor :generate_client_request_id
|
38
|
+
|
39
|
+
# @return [Profiles] profiles
|
40
|
+
attr_reader :profiles
|
41
|
+
|
42
|
+
# @return [Endpoints] endpoints
|
43
|
+
attr_reader :endpoints
|
44
|
+
|
45
|
+
# @return [Origins] origins
|
46
|
+
attr_reader :origins
|
47
|
+
|
48
|
+
# @return [CustomDomains] custom_domains
|
49
|
+
attr_reader :custom_domains
|
50
|
+
|
51
|
+
# @return [ResourceUsageOperations] resource_usage_operations
|
52
|
+
attr_reader :resource_usage_operations
|
53
|
+
|
54
|
+
# @return [Operations] operations
|
55
|
+
attr_reader :operations
|
56
|
+
|
57
|
+
# @return [EdgeNodes] edge_nodes
|
58
|
+
attr_reader :edge_nodes
|
59
|
+
|
60
|
+
#
|
61
|
+
# Creates initializes a new instance of the CdnManagementClient class.
|
62
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
63
|
+
# @param base_url [String] the base URI of the service.
|
64
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
65
|
+
#
|
66
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
67
|
+
super(credentials, options)
|
68
|
+
@base_url = base_url || 'https://management.azure.com'
|
69
|
+
|
70
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
71
|
+
@credentials = credentials
|
72
|
+
|
73
|
+
@profiles = Profiles.new(self)
|
74
|
+
@endpoints = Endpoints.new(self)
|
75
|
+
@origins = Origins.new(self)
|
76
|
+
@custom_domains = CustomDomains.new(self)
|
77
|
+
@resource_usage_operations = ResourceUsageOperations.new(self)
|
78
|
+
@operations = Operations.new(self)
|
79
|
+
@edge_nodes = EdgeNodes.new(self)
|
80
|
+
@api_version = '2017-10-12'
|
81
|
+
@accept_language = 'en-US'
|
82
|
+
@long_running_operation_retry_timeout = 30
|
83
|
+
@generate_client_request_id = true
|
84
|
+
add_telemetry
|
85
|
+
end
|
86
|
+
|
87
|
+
#
|
88
|
+
# Makes a request and returns the body of the response.
|
89
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
90
|
+
# @param path [String] the path, relative to {base_url}.
|
91
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
92
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
93
|
+
# Example:
|
94
|
+
#
|
95
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
96
|
+
# path = "/path"
|
97
|
+
# options = {
|
98
|
+
# body: request_content,
|
99
|
+
# query_params: {'api-version' => '2016-02-01'}
|
100
|
+
# }
|
101
|
+
# result = @client.make_request(:put, path, options)
|
102
|
+
#
|
103
|
+
def make_request(method, path, options = {})
|
104
|
+
result = make_request_with_http_info(method, path, options)
|
105
|
+
result.body unless result.nil?
|
106
|
+
end
|
107
|
+
|
108
|
+
#
|
109
|
+
# Makes a request and returns the operation response.
|
110
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
111
|
+
# @param path [String] the path, relative to {base_url}.
|
112
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
113
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
114
|
+
#
|
115
|
+
def make_request_with_http_info(method, path, options = {})
|
116
|
+
result = make_request_async(method, path, options).value!
|
117
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
118
|
+
result
|
119
|
+
end
|
120
|
+
|
121
|
+
#
|
122
|
+
# Makes a request asynchronously.
|
123
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
124
|
+
# @param path [String] the path, relative to {base_url}.
|
125
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
126
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
127
|
+
#
|
128
|
+
def make_request_async(method, path, options = {})
|
129
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
130
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
131
|
+
|
132
|
+
request_url = options[:base_url] || @base_url
|
133
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
134
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
135
|
+
end
|
136
|
+
|
137
|
+
request_headers = @request_headers
|
138
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
139
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
140
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
141
|
+
|
142
|
+
super(request_url, method, path, options)
|
143
|
+
end
|
144
|
+
|
145
|
+
#
|
146
|
+
# Check the availability of a resource name. This is needed for resources where
|
147
|
+
# name is globally unique, such as a CDN endpoint.
|
148
|
+
#
|
149
|
+
# @param check_name_availability_input [CheckNameAvailabilityInput] Input to
|
150
|
+
# check.
|
151
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
152
|
+
# will be added to the HTTP request.
|
153
|
+
#
|
154
|
+
# @return [CheckNameAvailabilityOutput] operation results.
|
155
|
+
#
|
156
|
+
def check_name_availability(check_name_availability_input, custom_headers:nil)
|
157
|
+
response = check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value!
|
158
|
+
response.body unless response.nil?
|
159
|
+
end
|
160
|
+
|
161
|
+
#
|
162
|
+
# Check the availability of a resource name. This is needed for resources where
|
163
|
+
# name is globally unique, such as a CDN endpoint.
|
164
|
+
#
|
165
|
+
# @param check_name_availability_input [CheckNameAvailabilityInput] Input to
|
166
|
+
# check.
|
167
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
168
|
+
# will be added to the HTTP request.
|
169
|
+
#
|
170
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
171
|
+
#
|
172
|
+
def check_name_availability_with_http_info(check_name_availability_input, custom_headers:nil)
|
173
|
+
check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value!
|
174
|
+
end
|
175
|
+
|
176
|
+
#
|
177
|
+
# Check the availability of a resource name. This is needed for resources where
|
178
|
+
# name is globally unique, such as a CDN endpoint.
|
179
|
+
#
|
180
|
+
# @param check_name_availability_input [CheckNameAvailabilityInput] Input to
|
181
|
+
# check.
|
182
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
183
|
+
# to the HTTP request.
|
184
|
+
#
|
185
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
186
|
+
#
|
187
|
+
def check_name_availability_async(check_name_availability_input, custom_headers:nil)
|
188
|
+
fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.nil?
|
189
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
190
|
+
|
191
|
+
|
192
|
+
request_headers = {}
|
193
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
194
|
+
|
195
|
+
# Set Headers
|
196
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
197
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
198
|
+
|
199
|
+
# Serialize Request
|
200
|
+
request_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput.mapper()
|
201
|
+
request_content = self.serialize(request_mapper, check_name_availability_input)
|
202
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
203
|
+
|
204
|
+
path_template = 'providers/Microsoft.Cdn/checkNameAvailability'
|
205
|
+
|
206
|
+
request_url = @base_url || self.base_url
|
207
|
+
|
208
|
+
options = {
|
209
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
210
|
+
query_params: {'api-version' => api_version},
|
211
|
+
body: request_content,
|
212
|
+
headers: request_headers.merge(custom_headers || {}),
|
213
|
+
base_url: request_url
|
214
|
+
}
|
215
|
+
promise = self.make_request_async(:post, path_template, options)
|
216
|
+
|
217
|
+
promise = promise.then do |result|
|
218
|
+
http_response = result.response
|
219
|
+
status_code = http_response.status
|
220
|
+
response_content = http_response.body
|
221
|
+
unless status_code == 200
|
222
|
+
error_model = JSON.load(response_content)
|
223
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
224
|
+
end
|
225
|
+
|
226
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
227
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
228
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
229
|
+
# Deserialize Response
|
230
|
+
if status_code == 200
|
231
|
+
begin
|
232
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
233
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityOutput.mapper()
|
234
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
235
|
+
rescue Exception => e
|
236
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
result
|
241
|
+
end
|
242
|
+
|
243
|
+
promise.execute
|
244
|
+
end
|
245
|
+
|
246
|
+
#
|
247
|
+
# Check the availability of a resource name. This is needed for resources where
|
248
|
+
# name is globally unique, such as a CDN endpoint.
|
249
|
+
#
|
250
|
+
# @param check_name_availability_input [CheckNameAvailabilityInput] Input to
|
251
|
+
# check.
|
252
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
253
|
+
# will be added to the HTTP request.
|
254
|
+
#
|
255
|
+
# @return [CheckNameAvailabilityOutput] operation results.
|
256
|
+
#
|
257
|
+
def check_name_availability_with_subscription(check_name_availability_input, custom_headers:nil)
|
258
|
+
response = check_name_availability_with_subscription_async(check_name_availability_input, custom_headers:custom_headers).value!
|
259
|
+
response.body unless response.nil?
|
260
|
+
end
|
261
|
+
|
262
|
+
#
|
263
|
+
# Check the availability of a resource name. This is needed for resources where
|
264
|
+
# name is globally unique, such as a CDN endpoint.
|
265
|
+
#
|
266
|
+
# @param check_name_availability_input [CheckNameAvailabilityInput] Input to
|
267
|
+
# check.
|
268
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
269
|
+
# will be added to the HTTP request.
|
270
|
+
#
|
271
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
272
|
+
#
|
273
|
+
def check_name_availability_with_subscription_with_http_info(check_name_availability_input, custom_headers:nil)
|
274
|
+
check_name_availability_with_subscription_async(check_name_availability_input, custom_headers:custom_headers).value!
|
275
|
+
end
|
276
|
+
|
277
|
+
#
|
278
|
+
# Check the availability of a resource name. This is needed for resources where
|
279
|
+
# name is globally unique, such as a CDN endpoint.
|
280
|
+
#
|
281
|
+
# @param check_name_availability_input [CheckNameAvailabilityInput] Input to
|
282
|
+
# check.
|
283
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
284
|
+
# to the HTTP request.
|
285
|
+
#
|
286
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
287
|
+
#
|
288
|
+
def check_name_availability_with_subscription_async(check_name_availability_input, custom_headers:nil)
|
289
|
+
fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.nil?
|
290
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
291
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
292
|
+
|
293
|
+
|
294
|
+
request_headers = {}
|
295
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
296
|
+
|
297
|
+
# Set Headers
|
298
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
299
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
300
|
+
|
301
|
+
# Serialize Request
|
302
|
+
request_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput.mapper()
|
303
|
+
request_content = self.serialize(request_mapper, check_name_availability_input)
|
304
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
305
|
+
|
306
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkNameAvailability'
|
307
|
+
|
308
|
+
request_url = @base_url || self.base_url
|
309
|
+
|
310
|
+
options = {
|
311
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
312
|
+
path_params: {'subscriptionId' => subscription_id},
|
313
|
+
query_params: {'api-version' => api_version},
|
314
|
+
body: request_content,
|
315
|
+
headers: request_headers.merge(custom_headers || {}),
|
316
|
+
base_url: request_url
|
317
|
+
}
|
318
|
+
promise = self.make_request_async(:post, path_template, options)
|
319
|
+
|
320
|
+
promise = promise.then do |result|
|
321
|
+
http_response = result.response
|
322
|
+
status_code = http_response.status
|
323
|
+
response_content = http_response.body
|
324
|
+
unless status_code == 200
|
325
|
+
error_model = JSON.load(response_content)
|
326
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
327
|
+
end
|
328
|
+
|
329
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
330
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
331
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
332
|
+
# Deserialize Response
|
333
|
+
if status_code == 200
|
334
|
+
begin
|
335
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
336
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityOutput.mapper()
|
337
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
338
|
+
rescue Exception => e
|
339
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
340
|
+
end
|
341
|
+
end
|
342
|
+
|
343
|
+
result
|
344
|
+
end
|
345
|
+
|
346
|
+
promise.execute
|
347
|
+
end
|
348
|
+
|
349
|
+
#
|
350
|
+
# Check if the probe path is a valid path and the file can be accessed. Probe
|
351
|
+
# path is the path to a file hosted on the origin server to help accelerate the
|
352
|
+
# delivery of dynamic content via the CDN endpoint. This path is relative to
|
353
|
+
# the origin path specified in the endpoint configuration.
|
354
|
+
#
|
355
|
+
# @param validate_probe_input [ValidateProbeInput] Input to check.
|
356
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
357
|
+
# will be added to the HTTP request.
|
358
|
+
#
|
359
|
+
# @return [ValidateProbeOutput] operation results.
|
360
|
+
#
|
361
|
+
def validate_probe(validate_probe_input, custom_headers:nil)
|
362
|
+
response = validate_probe_async(validate_probe_input, custom_headers:custom_headers).value!
|
363
|
+
response.body unless response.nil?
|
364
|
+
end
|
365
|
+
|
366
|
+
#
|
367
|
+
# Check if the probe path is a valid path and the file can be accessed. Probe
|
368
|
+
# path is the path to a file hosted on the origin server to help accelerate the
|
369
|
+
# delivery of dynamic content via the CDN endpoint. This path is relative to
|
370
|
+
# the origin path specified in the endpoint configuration.
|
371
|
+
#
|
372
|
+
# @param validate_probe_input [ValidateProbeInput] Input to check.
|
373
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
374
|
+
# will be added to the HTTP request.
|
375
|
+
#
|
376
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
377
|
+
#
|
378
|
+
def validate_probe_with_http_info(validate_probe_input, custom_headers:nil)
|
379
|
+
validate_probe_async(validate_probe_input, custom_headers:custom_headers).value!
|
380
|
+
end
|
381
|
+
|
382
|
+
#
|
383
|
+
# Check if the probe path is a valid path and the file can be accessed. Probe
|
384
|
+
# path is the path to a file hosted on the origin server to help accelerate the
|
385
|
+
# delivery of dynamic content via the CDN endpoint. This path is relative to
|
386
|
+
# the origin path specified in the endpoint configuration.
|
387
|
+
#
|
388
|
+
# @param validate_probe_input [ValidateProbeInput] Input to check.
|
389
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
390
|
+
# to the HTTP request.
|
391
|
+
#
|
392
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
393
|
+
#
|
394
|
+
def validate_probe_async(validate_probe_input, custom_headers:nil)
|
395
|
+
fail ArgumentError, 'validate_probe_input is nil' if validate_probe_input.nil?
|
396
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
397
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
398
|
+
|
399
|
+
|
400
|
+
request_headers = {}
|
401
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
402
|
+
|
403
|
+
# Set Headers
|
404
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
405
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
406
|
+
|
407
|
+
# Serialize Request
|
408
|
+
request_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateProbeInput.mapper()
|
409
|
+
request_content = self.serialize(request_mapper, validate_probe_input)
|
410
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
411
|
+
|
412
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/validateProbe'
|
413
|
+
|
414
|
+
request_url = @base_url || self.base_url
|
415
|
+
|
416
|
+
options = {
|
417
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
418
|
+
path_params: {'subscriptionId' => subscription_id},
|
419
|
+
query_params: {'api-version' => api_version},
|
420
|
+
body: request_content,
|
421
|
+
headers: request_headers.merge(custom_headers || {}),
|
422
|
+
base_url: request_url
|
423
|
+
}
|
424
|
+
promise = self.make_request_async(:post, path_template, options)
|
425
|
+
|
426
|
+
promise = promise.then do |result|
|
427
|
+
http_response = result.response
|
428
|
+
status_code = http_response.status
|
429
|
+
response_content = http_response.body
|
430
|
+
unless status_code == 200
|
431
|
+
error_model = JSON.load(response_content)
|
432
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
433
|
+
end
|
434
|
+
|
435
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
436
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
437
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
438
|
+
# Deserialize Response
|
439
|
+
if status_code == 200
|
440
|
+
begin
|
441
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
442
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateProbeOutput.mapper()
|
443
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
444
|
+
rescue Exception => e
|
445
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
446
|
+
end
|
447
|
+
end
|
448
|
+
|
449
|
+
result
|
450
|
+
end
|
451
|
+
|
452
|
+
promise.execute
|
453
|
+
end
|
454
|
+
|
455
|
+
|
456
|
+
private
|
457
|
+
#
|
458
|
+
# Adds telemetry information.
|
459
|
+
#
|
460
|
+
def add_telemetry
|
461
|
+
sdk_information = 'azure_mgmt_cdn'
|
462
|
+
sdk_information = "#{sdk_information}/0.17.5"
|
463
|
+
add_user_agent_information(sdk_information)
|
464
|
+
end
|
465
|
+
end
|
466
|
+
end
|