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,220 @@
|
|
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::V2016_10_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 EdgeNodes
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
#
|
16
|
+
# Creates and initializes a new instance of the EdgeNodes 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
|
+
# Lists all the edge nodes of a CDN service.
|
28
|
+
#
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
|
+
# will be added to the HTTP request.
|
31
|
+
#
|
32
|
+
# @return [Array<EdgeNode>] operation results.
|
33
|
+
#
|
34
|
+
def list(custom_headers:nil)
|
35
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
36
|
+
first_page.get_all_items
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Lists all the edge nodes of a CDN service.
|
41
|
+
#
|
42
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
43
|
+
# will be added to the HTTP request.
|
44
|
+
#
|
45
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
46
|
+
#
|
47
|
+
def list_with_http_info(custom_headers:nil)
|
48
|
+
list_async(custom_headers:custom_headers).value!
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# Lists all the edge nodes of a CDN service.
|
53
|
+
#
|
54
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
55
|
+
# to the HTTP request.
|
56
|
+
#
|
57
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
58
|
+
#
|
59
|
+
def list_async(custom_headers:nil)
|
60
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
61
|
+
|
62
|
+
|
63
|
+
request_headers = {}
|
64
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
65
|
+
|
66
|
+
# Set Headers
|
67
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
68
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
69
|
+
path_template = 'providers/Microsoft.Cdn/edgenodes'
|
70
|
+
|
71
|
+
request_url = @base_url || @client.base_url
|
72
|
+
|
73
|
+
options = {
|
74
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
75
|
+
query_params: {'api-version' => @client.api_version},
|
76
|
+
headers: request_headers.merge(custom_headers || {}),
|
77
|
+
base_url: request_url
|
78
|
+
}
|
79
|
+
promise = @client.make_request_async(:get, path_template, options)
|
80
|
+
|
81
|
+
promise = promise.then do |result|
|
82
|
+
http_response = result.response
|
83
|
+
status_code = http_response.status
|
84
|
+
response_content = http_response.body
|
85
|
+
unless status_code == 200
|
86
|
+
error_model = JSON.load(response_content)
|
87
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
88
|
+
end
|
89
|
+
|
90
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
91
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
92
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
93
|
+
# Deserialize Response
|
94
|
+
if status_code == 200
|
95
|
+
begin
|
96
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
97
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::EdgenodeResult.mapper()
|
98
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
99
|
+
rescue Exception => e
|
100
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
result
|
105
|
+
end
|
106
|
+
|
107
|
+
promise.execute
|
108
|
+
end
|
109
|
+
|
110
|
+
#
|
111
|
+
# Lists all the edge nodes of a CDN service.
|
112
|
+
#
|
113
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
114
|
+
# to List operation.
|
115
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
116
|
+
# will be added to the HTTP request.
|
117
|
+
#
|
118
|
+
# @return [EdgenodeResult] operation results.
|
119
|
+
#
|
120
|
+
def list_next(next_page_link, custom_headers:nil)
|
121
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
122
|
+
response.body unless response.nil?
|
123
|
+
end
|
124
|
+
|
125
|
+
#
|
126
|
+
# Lists all the edge nodes of a CDN service.
|
127
|
+
#
|
128
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
129
|
+
# to List operation.
|
130
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
131
|
+
# will be added to the HTTP request.
|
132
|
+
#
|
133
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
134
|
+
#
|
135
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
136
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
137
|
+
end
|
138
|
+
|
139
|
+
#
|
140
|
+
# Lists all the edge nodes of a CDN service.
|
141
|
+
#
|
142
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
143
|
+
# to List operation.
|
144
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
145
|
+
# to the HTTP request.
|
146
|
+
#
|
147
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
148
|
+
#
|
149
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
150
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
151
|
+
|
152
|
+
|
153
|
+
request_headers = {}
|
154
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
155
|
+
|
156
|
+
# Set Headers
|
157
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
158
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
159
|
+
path_template = '{nextLink}'
|
160
|
+
|
161
|
+
request_url = @base_url || @client.base_url
|
162
|
+
|
163
|
+
options = {
|
164
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
165
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
166
|
+
headers: request_headers.merge(custom_headers || {}),
|
167
|
+
base_url: request_url
|
168
|
+
}
|
169
|
+
promise = @client.make_request_async(:get, path_template, options)
|
170
|
+
|
171
|
+
promise = promise.then do |result|
|
172
|
+
http_response = result.response
|
173
|
+
status_code = http_response.status
|
174
|
+
response_content = http_response.body
|
175
|
+
unless status_code == 200
|
176
|
+
error_model = JSON.load(response_content)
|
177
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
178
|
+
end
|
179
|
+
|
180
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
181
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
182
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
183
|
+
# Deserialize Response
|
184
|
+
if status_code == 200
|
185
|
+
begin
|
186
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
187
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::EdgenodeResult.mapper()
|
188
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
189
|
+
rescue Exception => e
|
190
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
result
|
195
|
+
end
|
196
|
+
|
197
|
+
promise.execute
|
198
|
+
end
|
199
|
+
|
200
|
+
#
|
201
|
+
# Lists all the edge nodes of a CDN service.
|
202
|
+
#
|
203
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
204
|
+
# will be added to the HTTP request.
|
205
|
+
#
|
206
|
+
# @return [EdgenodeResult] which provide lazy access to pages of the response.
|
207
|
+
#
|
208
|
+
def list_as_lazy(custom_headers:nil)
|
209
|
+
response = list_async(custom_headers:custom_headers).value!
|
210
|
+
unless response.nil?
|
211
|
+
page = response.body
|
212
|
+
page.next_method = Proc.new do |next_page_link|
|
213
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
214
|
+
end
|
215
|
+
page
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
end
|
220
|
+
end
|
@@ -0,0 +1,1928 @@
|
|
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::V2016_10_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 Endpoints
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
#
|
16
|
+
# Creates and initializes a new instance of the Endpoints 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
|
+
# Lists existing CDN endpoints.
|
28
|
+
#
|
29
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
30
|
+
# Azure subscription.
|
31
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
32
|
+
# the resource group.
|
33
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
|
+
# will be added to the HTTP request.
|
35
|
+
#
|
36
|
+
# @return [Array<Endpoint>] operation results.
|
37
|
+
#
|
38
|
+
def list_by_profile(resource_group_name, profile_name, custom_headers:nil)
|
39
|
+
first_page = list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:custom_headers)
|
40
|
+
first_page.get_all_items
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Lists existing CDN endpoints.
|
45
|
+
#
|
46
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
47
|
+
# Azure subscription.
|
48
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
49
|
+
# the resource group.
|
50
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
|
+
# will be added to the HTTP request.
|
52
|
+
#
|
53
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
|
+
#
|
55
|
+
def list_by_profile_with_http_info(resource_group_name, profile_name, custom_headers:nil)
|
56
|
+
list_by_profile_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
|
57
|
+
end
|
58
|
+
|
59
|
+
#
|
60
|
+
# Lists existing CDN endpoints.
|
61
|
+
#
|
62
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
63
|
+
# Azure subscription.
|
64
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
65
|
+
# the resource group.
|
66
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
67
|
+
# to the HTTP request.
|
68
|
+
#
|
69
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
70
|
+
#
|
71
|
+
def list_by_profile_async(resource_group_name, profile_name, custom_headers:nil)
|
72
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
73
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
74
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
75
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
76
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
77
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
78
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
79
|
+
|
80
|
+
|
81
|
+
request_headers = {}
|
82
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
83
|
+
|
84
|
+
# Set Headers
|
85
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
86
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
87
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints'
|
88
|
+
|
89
|
+
request_url = @base_url || @client.base_url
|
90
|
+
|
91
|
+
options = {
|
92
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
93
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'subscriptionId' => @client.subscription_id},
|
94
|
+
query_params: {'api-version' => @client.api_version},
|
95
|
+
headers: request_headers.merge(custom_headers || {}),
|
96
|
+
base_url: request_url
|
97
|
+
}
|
98
|
+
promise = @client.make_request_async(:get, path_template, options)
|
99
|
+
|
100
|
+
promise = promise.then do |result|
|
101
|
+
http_response = result.response
|
102
|
+
status_code = http_response.status
|
103
|
+
response_content = http_response.body
|
104
|
+
unless status_code == 200
|
105
|
+
error_model = JSON.load(response_content)
|
106
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
107
|
+
end
|
108
|
+
|
109
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
110
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
111
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
112
|
+
# Deserialize Response
|
113
|
+
if status_code == 200
|
114
|
+
begin
|
115
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
116
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::EndpointListResult.mapper()
|
117
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
118
|
+
rescue Exception => e
|
119
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
result
|
124
|
+
end
|
125
|
+
|
126
|
+
promise.execute
|
127
|
+
end
|
128
|
+
|
129
|
+
#
|
130
|
+
# Gets an existing CDN endpoint with the specified endpoint name under the
|
131
|
+
# specified subscription, resource group and profile.
|
132
|
+
#
|
133
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
134
|
+
# Azure subscription.
|
135
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
136
|
+
# the resource group.
|
137
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
138
|
+
# unique globally.
|
139
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
140
|
+
# will be added to the HTTP request.
|
141
|
+
#
|
142
|
+
# @return [Endpoint] operation results.
|
143
|
+
#
|
144
|
+
def get(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
145
|
+
response = get_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
146
|
+
response.body unless response.nil?
|
147
|
+
end
|
148
|
+
|
149
|
+
#
|
150
|
+
# Gets an existing CDN endpoint with the specified endpoint name under the
|
151
|
+
# specified subscription, resource group and profile.
|
152
|
+
#
|
153
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
154
|
+
# Azure subscription.
|
155
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
156
|
+
# the resource group.
|
157
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
158
|
+
# unique globally.
|
159
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
160
|
+
# will be added to the HTTP request.
|
161
|
+
#
|
162
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
163
|
+
#
|
164
|
+
def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
165
|
+
get_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
166
|
+
end
|
167
|
+
|
168
|
+
#
|
169
|
+
# Gets an existing CDN endpoint with the specified endpoint name under the
|
170
|
+
# specified subscription, resource group and profile.
|
171
|
+
#
|
172
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
173
|
+
# Azure subscription.
|
174
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
175
|
+
# the resource group.
|
176
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
177
|
+
# unique globally.
|
178
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
179
|
+
# to the HTTP request.
|
180
|
+
#
|
181
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
182
|
+
#
|
183
|
+
def get_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
184
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
185
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
186
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
187
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
188
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
189
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
190
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
191
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
192
|
+
|
193
|
+
|
194
|
+
request_headers = {}
|
195
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
196
|
+
|
197
|
+
# Set Headers
|
198
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
199
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
200
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}'
|
201
|
+
|
202
|
+
request_url = @base_url || @client.base_url
|
203
|
+
|
204
|
+
options = {
|
205
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
206
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'subscriptionId' => @client.subscription_id},
|
207
|
+
query_params: {'api-version' => @client.api_version},
|
208
|
+
headers: request_headers.merge(custom_headers || {}),
|
209
|
+
base_url: request_url
|
210
|
+
}
|
211
|
+
promise = @client.make_request_async(:get, path_template, options)
|
212
|
+
|
213
|
+
promise = promise.then do |result|
|
214
|
+
http_response = result.response
|
215
|
+
status_code = http_response.status
|
216
|
+
response_content = http_response.body
|
217
|
+
unless status_code == 200
|
218
|
+
error_model = JSON.load(response_content)
|
219
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
220
|
+
end
|
221
|
+
|
222
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
223
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
224
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
225
|
+
# Deserialize Response
|
226
|
+
if status_code == 200
|
227
|
+
begin
|
228
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
229
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::Endpoint.mapper()
|
230
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
231
|
+
rescue Exception => e
|
232
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
result
|
237
|
+
end
|
238
|
+
|
239
|
+
promise.execute
|
240
|
+
end
|
241
|
+
|
242
|
+
#
|
243
|
+
# Creates a new CDN endpoint with the specified endpoint name under the
|
244
|
+
# specified subscription, resource group and profile.
|
245
|
+
#
|
246
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
247
|
+
# Azure subscription.
|
248
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
249
|
+
# the resource group.
|
250
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
251
|
+
# unique globally.
|
252
|
+
# @param endpoint [Endpoint] Endpoint properties
|
253
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
254
|
+
# will be added to the HTTP request.
|
255
|
+
#
|
256
|
+
# @return [Endpoint] operation results.
|
257
|
+
#
|
258
|
+
def create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil)
|
259
|
+
response = create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value!
|
260
|
+
response.body unless response.nil?
|
261
|
+
end
|
262
|
+
|
263
|
+
#
|
264
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
265
|
+
# Azure subscription.
|
266
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
267
|
+
# the resource group.
|
268
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
269
|
+
# unique globally.
|
270
|
+
# @param endpoint [Endpoint] Endpoint properties
|
271
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
272
|
+
# will be added to the HTTP request.
|
273
|
+
#
|
274
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
275
|
+
# response.
|
276
|
+
#
|
277
|
+
def create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil)
|
278
|
+
# Send request
|
279
|
+
promise = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers)
|
280
|
+
|
281
|
+
promise = promise.then do |response|
|
282
|
+
# Defining deserialization method.
|
283
|
+
deserialize_method = lambda do |parsed_response|
|
284
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::Endpoint.mapper()
|
285
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
286
|
+
end
|
287
|
+
|
288
|
+
# Waiting for response.
|
289
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
290
|
+
end
|
291
|
+
|
292
|
+
promise
|
293
|
+
end
|
294
|
+
|
295
|
+
#
|
296
|
+
# Updates an existing CDN endpoint with the specified endpoint name under the
|
297
|
+
# specified subscription, resource group and profile. Only tags and Origin
|
298
|
+
# HostHeader can be updated after creating an endpoint. To update origins, use
|
299
|
+
# the Update Origin operation. To update custom domains, use the Update Custom
|
300
|
+
# Domain operation.
|
301
|
+
#
|
302
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
303
|
+
# Azure subscription.
|
304
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
305
|
+
# the resource group.
|
306
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
307
|
+
# unique globally.
|
308
|
+
# @param endpoint_update_properties [EndpointUpdateParameters] Endpoint update
|
309
|
+
# properties
|
310
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
311
|
+
# will be added to the HTTP request.
|
312
|
+
#
|
313
|
+
# @return [Endpoint] operation results.
|
314
|
+
#
|
315
|
+
def update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil)
|
316
|
+
response = update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value!
|
317
|
+
response.body unless response.nil?
|
318
|
+
end
|
319
|
+
|
320
|
+
#
|
321
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
322
|
+
# Azure subscription.
|
323
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
324
|
+
# the resource group.
|
325
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
326
|
+
# unique globally.
|
327
|
+
# @param endpoint_update_properties [EndpointUpdateParameters] Endpoint update
|
328
|
+
# properties
|
329
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
330
|
+
# will be added to the HTTP request.
|
331
|
+
#
|
332
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
333
|
+
# response.
|
334
|
+
#
|
335
|
+
def update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil)
|
336
|
+
# Send request
|
337
|
+
promise = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers)
|
338
|
+
|
339
|
+
promise = promise.then do |response|
|
340
|
+
# Defining deserialization method.
|
341
|
+
deserialize_method = lambda do |parsed_response|
|
342
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::Endpoint.mapper()
|
343
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
344
|
+
end
|
345
|
+
|
346
|
+
# Waiting for response.
|
347
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
348
|
+
end
|
349
|
+
|
350
|
+
promise
|
351
|
+
end
|
352
|
+
|
353
|
+
#
|
354
|
+
# Deletes an existing CDN endpoint with the specified endpoint name under the
|
355
|
+
# specified subscription, resource group and profile.
|
356
|
+
#
|
357
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
358
|
+
# Azure subscription.
|
359
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
360
|
+
# the resource group.
|
361
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
362
|
+
# unique globally.
|
363
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
364
|
+
# will be added to the HTTP request.
|
365
|
+
#
|
366
|
+
def delete(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
367
|
+
response = delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
368
|
+
nil
|
369
|
+
end
|
370
|
+
|
371
|
+
#
|
372
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
373
|
+
# Azure subscription.
|
374
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
375
|
+
# the resource group.
|
376
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
377
|
+
# unique globally.
|
378
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
379
|
+
# will be added to the HTTP request.
|
380
|
+
#
|
381
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
382
|
+
# response.
|
383
|
+
#
|
384
|
+
def delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
385
|
+
# Send request
|
386
|
+
promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers)
|
387
|
+
|
388
|
+
promise = promise.then do |response|
|
389
|
+
# Defining deserialization method.
|
390
|
+
deserialize_method = lambda do |parsed_response|
|
391
|
+
end
|
392
|
+
|
393
|
+
# Waiting for response.
|
394
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
395
|
+
end
|
396
|
+
|
397
|
+
promise
|
398
|
+
end
|
399
|
+
|
400
|
+
#
|
401
|
+
# Starts an existing CDN endpoint that is on a stopped state.
|
402
|
+
#
|
403
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
404
|
+
# Azure subscription.
|
405
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
406
|
+
# the resource group.
|
407
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
408
|
+
# unique globally.
|
409
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
410
|
+
# will be added to the HTTP request.
|
411
|
+
#
|
412
|
+
# @return [Endpoint] operation results.
|
413
|
+
#
|
414
|
+
def start(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
415
|
+
response = start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
416
|
+
response.body unless response.nil?
|
417
|
+
end
|
418
|
+
|
419
|
+
#
|
420
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
421
|
+
# Azure subscription.
|
422
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
423
|
+
# the resource group.
|
424
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
425
|
+
# unique globally.
|
426
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
427
|
+
# will be added to the HTTP request.
|
428
|
+
#
|
429
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
430
|
+
# response.
|
431
|
+
#
|
432
|
+
def start_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
433
|
+
# Send request
|
434
|
+
promise = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers)
|
435
|
+
|
436
|
+
promise = promise.then do |response|
|
437
|
+
# Defining deserialization method.
|
438
|
+
deserialize_method = lambda do |parsed_response|
|
439
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::Endpoint.mapper()
|
440
|
+
parsed_response = @client.deserialize(result_mapper, 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
|
+
# Stops an existing running CDN endpoint.
|
452
|
+
#
|
453
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
454
|
+
# Azure subscription.
|
455
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
456
|
+
# the resource group.
|
457
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
458
|
+
# unique globally.
|
459
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
460
|
+
# will be added to the HTTP request.
|
461
|
+
#
|
462
|
+
# @return [Endpoint] operation results.
|
463
|
+
#
|
464
|
+
def stop(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
465
|
+
response = stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
466
|
+
response.body unless response.nil?
|
467
|
+
end
|
468
|
+
|
469
|
+
#
|
470
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
471
|
+
# Azure subscription.
|
472
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
473
|
+
# the resource group.
|
474
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
475
|
+
# unique globally.
|
476
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
477
|
+
# will be added to the HTTP request.
|
478
|
+
#
|
479
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
480
|
+
# response.
|
481
|
+
#
|
482
|
+
def stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
483
|
+
# Send request
|
484
|
+
promise = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers)
|
485
|
+
|
486
|
+
promise = promise.then do |response|
|
487
|
+
# Defining deserialization method.
|
488
|
+
deserialize_method = lambda do |parsed_response|
|
489
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::Endpoint.mapper()
|
490
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
491
|
+
end
|
492
|
+
|
493
|
+
# Waiting for response.
|
494
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
495
|
+
end
|
496
|
+
|
497
|
+
promise
|
498
|
+
end
|
499
|
+
|
500
|
+
#
|
501
|
+
# Removes a content from CDN.
|
502
|
+
#
|
503
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
504
|
+
# Azure subscription.
|
505
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
506
|
+
# the resource group.
|
507
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
508
|
+
# unique globally.
|
509
|
+
# @param content_file_paths [PurgeParameters] The path to the content to be
|
510
|
+
# purged. Path can be a full URL, e.g. '/pictures/city.png' which removes a
|
511
|
+
# single file, or a directory with a wildcard, e.g. '/pictures/*' which removes
|
512
|
+
# all folders and files in the directory.
|
513
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
514
|
+
# will be added to the HTTP request.
|
515
|
+
#
|
516
|
+
def purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil)
|
517
|
+
response = purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value!
|
518
|
+
nil
|
519
|
+
end
|
520
|
+
|
521
|
+
#
|
522
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
523
|
+
# Azure subscription.
|
524
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
525
|
+
# the resource group.
|
526
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
527
|
+
# unique globally.
|
528
|
+
# @param content_file_paths [PurgeParameters] The path to the content to be
|
529
|
+
# purged. Path can be a full URL, e.g. '/pictures/city.png' which removes a
|
530
|
+
# single file, or a directory with a wildcard, e.g. '/pictures/*' which removes
|
531
|
+
# all folders and files in the directory.
|
532
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
533
|
+
# will be added to the HTTP request.
|
534
|
+
#
|
535
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
536
|
+
# response.
|
537
|
+
#
|
538
|
+
def purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil)
|
539
|
+
# Send request
|
540
|
+
promise = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers)
|
541
|
+
|
542
|
+
promise = promise.then do |response|
|
543
|
+
# Defining deserialization method.
|
544
|
+
deserialize_method = lambda do |parsed_response|
|
545
|
+
end
|
546
|
+
|
547
|
+
# Waiting for response.
|
548
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
549
|
+
end
|
550
|
+
|
551
|
+
promise
|
552
|
+
end
|
553
|
+
|
554
|
+
#
|
555
|
+
# Pre-loads a content to CDN. Available for Verizon Profiles.
|
556
|
+
#
|
557
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
558
|
+
# Azure subscription.
|
559
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
560
|
+
# the resource group.
|
561
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
562
|
+
# unique globally.
|
563
|
+
# @param content_file_paths [LoadParameters] The path to the content to be
|
564
|
+
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
565
|
+
# single file
|
566
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
567
|
+
# will be added to the HTTP request.
|
568
|
+
#
|
569
|
+
def load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil)
|
570
|
+
response = load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value!
|
571
|
+
nil
|
572
|
+
end
|
573
|
+
|
574
|
+
#
|
575
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
576
|
+
# Azure subscription.
|
577
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
578
|
+
# the resource group.
|
579
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
580
|
+
# unique globally.
|
581
|
+
# @param content_file_paths [LoadParameters] The path to the content to be
|
582
|
+
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
583
|
+
# single file
|
584
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
585
|
+
# will be added to the HTTP request.
|
586
|
+
#
|
587
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
588
|
+
# response.
|
589
|
+
#
|
590
|
+
def load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil)
|
591
|
+
# Send request
|
592
|
+
promise = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers)
|
593
|
+
|
594
|
+
promise = promise.then do |response|
|
595
|
+
# Defining deserialization method.
|
596
|
+
deserialize_method = lambda do |parsed_response|
|
597
|
+
end
|
598
|
+
|
599
|
+
# Waiting for response.
|
600
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
601
|
+
end
|
602
|
+
|
603
|
+
promise
|
604
|
+
end
|
605
|
+
|
606
|
+
#
|
607
|
+
# Validates the custom domain mapping to ensure it maps to the correct CDN
|
608
|
+
# endpoint in DNS.
|
609
|
+
#
|
610
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
611
|
+
# Azure subscription.
|
612
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
613
|
+
# the resource group.
|
614
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
615
|
+
# unique globally.
|
616
|
+
# @param custom_domain_properties [ValidateCustomDomainInput] Custom domain to
|
617
|
+
# be validated.
|
618
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
619
|
+
# will be added to the HTTP request.
|
620
|
+
#
|
621
|
+
# @return [ValidateCustomDomainOutput] operation results.
|
622
|
+
#
|
623
|
+
def validate_custom_domain(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil)
|
624
|
+
response = validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:custom_headers).value!
|
625
|
+
response.body unless response.nil?
|
626
|
+
end
|
627
|
+
|
628
|
+
#
|
629
|
+
# Validates the custom domain mapping to ensure it maps to the correct CDN
|
630
|
+
# endpoint in DNS.
|
631
|
+
#
|
632
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
633
|
+
# Azure subscription.
|
634
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
635
|
+
# the resource group.
|
636
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
637
|
+
# unique globally.
|
638
|
+
# @param custom_domain_properties [ValidateCustomDomainInput] Custom domain to
|
639
|
+
# be validated.
|
640
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
641
|
+
# will be added to the HTTP request.
|
642
|
+
#
|
643
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
644
|
+
#
|
645
|
+
def validate_custom_domain_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil)
|
646
|
+
validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:custom_headers).value!
|
647
|
+
end
|
648
|
+
|
649
|
+
#
|
650
|
+
# Validates the custom domain mapping to ensure it maps to the correct CDN
|
651
|
+
# endpoint in DNS.
|
652
|
+
#
|
653
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
654
|
+
# Azure subscription.
|
655
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
656
|
+
# the resource group.
|
657
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
658
|
+
# unique globally.
|
659
|
+
# @param custom_domain_properties [ValidateCustomDomainInput] Custom domain to
|
660
|
+
# be validated.
|
661
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
662
|
+
# to the HTTP request.
|
663
|
+
#
|
664
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
665
|
+
#
|
666
|
+
def validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil)
|
667
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
668
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
669
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
670
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
671
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
672
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
673
|
+
fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil?
|
674
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
675
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
676
|
+
|
677
|
+
|
678
|
+
request_headers = {}
|
679
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
680
|
+
|
681
|
+
# Set Headers
|
682
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
683
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
684
|
+
|
685
|
+
# Serialize Request
|
686
|
+
request_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::ValidateCustomDomainInput.mapper()
|
687
|
+
request_content = @client.serialize(request_mapper, custom_domain_properties)
|
688
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
689
|
+
|
690
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/validateCustomDomain'
|
691
|
+
|
692
|
+
request_url = @base_url || @client.base_url
|
693
|
+
|
694
|
+
options = {
|
695
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
696
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'subscriptionId' => @client.subscription_id},
|
697
|
+
query_params: {'api-version' => @client.api_version},
|
698
|
+
body: request_content,
|
699
|
+
headers: request_headers.merge(custom_headers || {}),
|
700
|
+
base_url: request_url
|
701
|
+
}
|
702
|
+
promise = @client.make_request_async(:post, path_template, options)
|
703
|
+
|
704
|
+
promise = promise.then do |result|
|
705
|
+
http_response = result.response
|
706
|
+
status_code = http_response.status
|
707
|
+
response_content = http_response.body
|
708
|
+
unless status_code == 200
|
709
|
+
error_model = JSON.load(response_content)
|
710
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
711
|
+
end
|
712
|
+
|
713
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
714
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
715
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
716
|
+
# Deserialize Response
|
717
|
+
if status_code == 200
|
718
|
+
begin
|
719
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
720
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::ValidateCustomDomainOutput.mapper()
|
721
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
722
|
+
rescue Exception => e
|
723
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
724
|
+
end
|
725
|
+
end
|
726
|
+
|
727
|
+
result
|
728
|
+
end
|
729
|
+
|
730
|
+
promise.execute
|
731
|
+
end
|
732
|
+
|
733
|
+
#
|
734
|
+
# Checks the quota and usage of geo filters and custom domains under the given
|
735
|
+
# endpoint.
|
736
|
+
#
|
737
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
738
|
+
# Azure subscription.
|
739
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
740
|
+
# the resource group.
|
741
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
742
|
+
# unique globally.
|
743
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
744
|
+
# will be added to the HTTP request.
|
745
|
+
#
|
746
|
+
# @return [Array<ResourceUsage>] operation results.
|
747
|
+
#
|
748
|
+
def list_resource_usage(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
749
|
+
first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers)
|
750
|
+
first_page.get_all_items
|
751
|
+
end
|
752
|
+
|
753
|
+
#
|
754
|
+
# Checks the quota and usage of geo filters and custom domains under the given
|
755
|
+
# endpoint.
|
756
|
+
#
|
757
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
758
|
+
# Azure subscription.
|
759
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
760
|
+
# the resource group.
|
761
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
762
|
+
# unique globally.
|
763
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
764
|
+
# will be added to the HTTP request.
|
765
|
+
#
|
766
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
767
|
+
#
|
768
|
+
def list_resource_usage_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
769
|
+
list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
770
|
+
end
|
771
|
+
|
772
|
+
#
|
773
|
+
# Checks the quota and usage of geo filters and custom domains under the given
|
774
|
+
# endpoint.
|
775
|
+
#
|
776
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
777
|
+
# Azure subscription.
|
778
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
779
|
+
# the resource group.
|
780
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
781
|
+
# unique globally.
|
782
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
783
|
+
# to the HTTP request.
|
784
|
+
#
|
785
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
786
|
+
#
|
787
|
+
def list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
788
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
789
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
790
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
791
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
792
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
793
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
794
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
795
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
796
|
+
|
797
|
+
|
798
|
+
request_headers = {}
|
799
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
800
|
+
|
801
|
+
# Set Headers
|
802
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
803
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
804
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/checkResourceUsage'
|
805
|
+
|
806
|
+
request_url = @base_url || @client.base_url
|
807
|
+
|
808
|
+
options = {
|
809
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
810
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'subscriptionId' => @client.subscription_id},
|
811
|
+
query_params: {'api-version' => @client.api_version},
|
812
|
+
headers: request_headers.merge(custom_headers || {}),
|
813
|
+
base_url: request_url
|
814
|
+
}
|
815
|
+
promise = @client.make_request_async(:post, path_template, options)
|
816
|
+
|
817
|
+
promise = promise.then do |result|
|
818
|
+
http_response = result.response
|
819
|
+
status_code = http_response.status
|
820
|
+
response_content = http_response.body
|
821
|
+
unless status_code == 200
|
822
|
+
error_model = JSON.load(response_content)
|
823
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
824
|
+
end
|
825
|
+
|
826
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
827
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
828
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
829
|
+
# Deserialize Response
|
830
|
+
if status_code == 200
|
831
|
+
begin
|
832
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
833
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::ResourceUsageListResult.mapper()
|
834
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
835
|
+
rescue Exception => e
|
836
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
837
|
+
end
|
838
|
+
end
|
839
|
+
|
840
|
+
result
|
841
|
+
end
|
842
|
+
|
843
|
+
promise.execute
|
844
|
+
end
|
845
|
+
|
846
|
+
#
|
847
|
+
# Creates a new CDN endpoint with the specified endpoint name under the
|
848
|
+
# specified subscription, resource group and profile.
|
849
|
+
#
|
850
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
851
|
+
# Azure subscription.
|
852
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
853
|
+
# the resource group.
|
854
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
855
|
+
# unique globally.
|
856
|
+
# @param endpoint [Endpoint] Endpoint properties
|
857
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
858
|
+
# will be added to the HTTP request.
|
859
|
+
#
|
860
|
+
# @return [Endpoint] operation results.
|
861
|
+
#
|
862
|
+
def begin_create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil)
|
863
|
+
response = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value!
|
864
|
+
response.body unless response.nil?
|
865
|
+
end
|
866
|
+
|
867
|
+
#
|
868
|
+
# Creates a new CDN endpoint with the specified endpoint name under the
|
869
|
+
# specified subscription, resource group and profile.
|
870
|
+
#
|
871
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
872
|
+
# Azure subscription.
|
873
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
874
|
+
# the resource group.
|
875
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
876
|
+
# unique globally.
|
877
|
+
# @param endpoint [Endpoint] Endpoint properties
|
878
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
879
|
+
# will be added to the HTTP request.
|
880
|
+
#
|
881
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
882
|
+
#
|
883
|
+
def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil)
|
884
|
+
begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value!
|
885
|
+
end
|
886
|
+
|
887
|
+
#
|
888
|
+
# Creates a new CDN endpoint with the specified endpoint name under the
|
889
|
+
# specified subscription, resource group and profile.
|
890
|
+
#
|
891
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
892
|
+
# Azure subscription.
|
893
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
894
|
+
# the resource group.
|
895
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
896
|
+
# unique globally.
|
897
|
+
# @param endpoint [Endpoint] Endpoint properties
|
898
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
899
|
+
# to the HTTP request.
|
900
|
+
#
|
901
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
902
|
+
#
|
903
|
+
def begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil)
|
904
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
905
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
906
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
907
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
908
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
909
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
910
|
+
fail ArgumentError, 'endpoint is nil' if endpoint.nil?
|
911
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
912
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
913
|
+
|
914
|
+
|
915
|
+
request_headers = {}
|
916
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
917
|
+
|
918
|
+
# Set Headers
|
919
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
920
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
921
|
+
|
922
|
+
# Serialize Request
|
923
|
+
request_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::Endpoint.mapper()
|
924
|
+
request_content = @client.serialize(request_mapper, endpoint)
|
925
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
926
|
+
|
927
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}'
|
928
|
+
|
929
|
+
request_url = @base_url || @client.base_url
|
930
|
+
|
931
|
+
options = {
|
932
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
933
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'subscriptionId' => @client.subscription_id},
|
934
|
+
query_params: {'api-version' => @client.api_version},
|
935
|
+
body: request_content,
|
936
|
+
headers: request_headers.merge(custom_headers || {}),
|
937
|
+
base_url: request_url
|
938
|
+
}
|
939
|
+
promise = @client.make_request_async(:put, path_template, options)
|
940
|
+
|
941
|
+
promise = promise.then do |result|
|
942
|
+
http_response = result.response
|
943
|
+
status_code = http_response.status
|
944
|
+
response_content = http_response.body
|
945
|
+
unless status_code == 200 || status_code == 201 || status_code == 202
|
946
|
+
error_model = JSON.load(response_content)
|
947
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
948
|
+
end
|
949
|
+
|
950
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
951
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
952
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
953
|
+
# Deserialize Response
|
954
|
+
if status_code == 200
|
955
|
+
begin
|
956
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
957
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::Endpoint.mapper()
|
958
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
959
|
+
rescue Exception => e
|
960
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
961
|
+
end
|
962
|
+
end
|
963
|
+
# Deserialize Response
|
964
|
+
if status_code == 201
|
965
|
+
begin
|
966
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
967
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::Endpoint.mapper()
|
968
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
969
|
+
rescue Exception => e
|
970
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
971
|
+
end
|
972
|
+
end
|
973
|
+
# Deserialize Response
|
974
|
+
if status_code == 202
|
975
|
+
begin
|
976
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
977
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::Endpoint.mapper()
|
978
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
979
|
+
rescue Exception => e
|
980
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
981
|
+
end
|
982
|
+
end
|
983
|
+
|
984
|
+
result
|
985
|
+
end
|
986
|
+
|
987
|
+
promise.execute
|
988
|
+
end
|
989
|
+
|
990
|
+
#
|
991
|
+
# Updates an existing CDN endpoint with the specified endpoint name under the
|
992
|
+
# specified subscription, resource group and profile. Only tags and Origin
|
993
|
+
# HostHeader can be updated after creating an endpoint. To update origins, use
|
994
|
+
# the Update Origin operation. To update custom domains, use the Update Custom
|
995
|
+
# Domain operation.
|
996
|
+
#
|
997
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
998
|
+
# Azure subscription.
|
999
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1000
|
+
# the resource group.
|
1001
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1002
|
+
# unique globally.
|
1003
|
+
# @param endpoint_update_properties [EndpointUpdateParameters] Endpoint update
|
1004
|
+
# properties
|
1005
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1006
|
+
# will be added to the HTTP request.
|
1007
|
+
#
|
1008
|
+
# @return [Endpoint] operation results.
|
1009
|
+
#
|
1010
|
+
def begin_update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil)
|
1011
|
+
response = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value!
|
1012
|
+
response.body unless response.nil?
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
#
|
1016
|
+
# Updates an existing CDN endpoint with the specified endpoint name under the
|
1017
|
+
# specified subscription, resource group and profile. Only tags and Origin
|
1018
|
+
# HostHeader can be updated after creating an endpoint. To update origins, use
|
1019
|
+
# the Update Origin operation. To update custom domains, use the Update Custom
|
1020
|
+
# Domain operation.
|
1021
|
+
#
|
1022
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1023
|
+
# Azure subscription.
|
1024
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1025
|
+
# the resource group.
|
1026
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1027
|
+
# unique globally.
|
1028
|
+
# @param endpoint_update_properties [EndpointUpdateParameters] Endpoint update
|
1029
|
+
# properties
|
1030
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1031
|
+
# will be added to the HTTP request.
|
1032
|
+
#
|
1033
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1034
|
+
#
|
1035
|
+
def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil)
|
1036
|
+
begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value!
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
#
|
1040
|
+
# Updates an existing CDN endpoint with the specified endpoint name under the
|
1041
|
+
# specified subscription, resource group and profile. Only tags and Origin
|
1042
|
+
# HostHeader can be updated after creating an endpoint. To update origins, use
|
1043
|
+
# the Update Origin operation. To update custom domains, use the Update Custom
|
1044
|
+
# Domain operation.
|
1045
|
+
#
|
1046
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1047
|
+
# Azure subscription.
|
1048
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1049
|
+
# the resource group.
|
1050
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1051
|
+
# unique globally.
|
1052
|
+
# @param endpoint_update_properties [EndpointUpdateParameters] Endpoint update
|
1053
|
+
# properties
|
1054
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1055
|
+
# to the HTTP request.
|
1056
|
+
#
|
1057
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1058
|
+
#
|
1059
|
+
def begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil)
|
1060
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1061
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1062
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1063
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
1064
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
1065
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
1066
|
+
fail ArgumentError, 'endpoint_update_properties is nil' if endpoint_update_properties.nil?
|
1067
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1068
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1069
|
+
|
1070
|
+
|
1071
|
+
request_headers = {}
|
1072
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1073
|
+
|
1074
|
+
# Set Headers
|
1075
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1076
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1077
|
+
|
1078
|
+
# Serialize Request
|
1079
|
+
request_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::EndpointUpdateParameters.mapper()
|
1080
|
+
request_content = @client.serialize(request_mapper, endpoint_update_properties)
|
1081
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1082
|
+
|
1083
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}'
|
1084
|
+
|
1085
|
+
request_url = @base_url || @client.base_url
|
1086
|
+
|
1087
|
+
options = {
|
1088
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1089
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'subscriptionId' => @client.subscription_id},
|
1090
|
+
query_params: {'api-version' => @client.api_version},
|
1091
|
+
body: request_content,
|
1092
|
+
headers: request_headers.merge(custom_headers || {}),
|
1093
|
+
base_url: request_url
|
1094
|
+
}
|
1095
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
1096
|
+
|
1097
|
+
promise = promise.then do |result|
|
1098
|
+
http_response = result.response
|
1099
|
+
status_code = http_response.status
|
1100
|
+
response_content = http_response.body
|
1101
|
+
unless status_code == 200 || status_code == 202
|
1102
|
+
error_model = JSON.load(response_content)
|
1103
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1107
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1108
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1109
|
+
# Deserialize Response
|
1110
|
+
if status_code == 200
|
1111
|
+
begin
|
1112
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1113
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::Endpoint.mapper()
|
1114
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1115
|
+
rescue Exception => e
|
1116
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1117
|
+
end
|
1118
|
+
end
|
1119
|
+
# Deserialize Response
|
1120
|
+
if status_code == 202
|
1121
|
+
begin
|
1122
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1123
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::Endpoint.mapper()
|
1124
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1125
|
+
rescue Exception => e
|
1126
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1127
|
+
end
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
result
|
1131
|
+
end
|
1132
|
+
|
1133
|
+
promise.execute
|
1134
|
+
end
|
1135
|
+
|
1136
|
+
#
|
1137
|
+
# Deletes an existing CDN endpoint with the specified endpoint name under the
|
1138
|
+
# specified subscription, resource group and profile.
|
1139
|
+
#
|
1140
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1141
|
+
# Azure subscription.
|
1142
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1143
|
+
# the resource group.
|
1144
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1145
|
+
# unique globally.
|
1146
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1147
|
+
# will be added to the HTTP request.
|
1148
|
+
#
|
1149
|
+
#
|
1150
|
+
def begin_delete(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
1151
|
+
response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
1152
|
+
nil
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
#
|
1156
|
+
# Deletes an existing CDN endpoint with the specified endpoint name under the
|
1157
|
+
# specified subscription, resource group and profile.
|
1158
|
+
#
|
1159
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1160
|
+
# Azure subscription.
|
1161
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1162
|
+
# the resource group.
|
1163
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1164
|
+
# unique globally.
|
1165
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1166
|
+
# will be added to the HTTP request.
|
1167
|
+
#
|
1168
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1169
|
+
#
|
1170
|
+
def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
1171
|
+
begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
#
|
1175
|
+
# Deletes an existing CDN endpoint with the specified endpoint name under the
|
1176
|
+
# specified subscription, resource group and profile.
|
1177
|
+
#
|
1178
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1179
|
+
# Azure subscription.
|
1180
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1181
|
+
# the resource group.
|
1182
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1183
|
+
# unique globally.
|
1184
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1185
|
+
# to the HTTP request.
|
1186
|
+
#
|
1187
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1188
|
+
#
|
1189
|
+
def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
1190
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1191
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1192
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1193
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
1194
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
1195
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
1196
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1197
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1198
|
+
|
1199
|
+
|
1200
|
+
request_headers = {}
|
1201
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1202
|
+
|
1203
|
+
# Set Headers
|
1204
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1205
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1206
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}'
|
1207
|
+
|
1208
|
+
request_url = @base_url || @client.base_url
|
1209
|
+
|
1210
|
+
options = {
|
1211
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1212
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'subscriptionId' => @client.subscription_id},
|
1213
|
+
query_params: {'api-version' => @client.api_version},
|
1214
|
+
headers: request_headers.merge(custom_headers || {}),
|
1215
|
+
base_url: request_url
|
1216
|
+
}
|
1217
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
1218
|
+
|
1219
|
+
promise = promise.then do |result|
|
1220
|
+
http_response = result.response
|
1221
|
+
status_code = http_response.status
|
1222
|
+
response_content = http_response.body
|
1223
|
+
unless status_code == 202 || status_code == 204
|
1224
|
+
error_model = JSON.load(response_content)
|
1225
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1229
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1230
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1231
|
+
|
1232
|
+
result
|
1233
|
+
end
|
1234
|
+
|
1235
|
+
promise.execute
|
1236
|
+
end
|
1237
|
+
|
1238
|
+
#
|
1239
|
+
# Starts an existing CDN endpoint that is on a stopped state.
|
1240
|
+
#
|
1241
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1242
|
+
# Azure subscription.
|
1243
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1244
|
+
# the resource group.
|
1245
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1246
|
+
# unique globally.
|
1247
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1248
|
+
# will be added to the HTTP request.
|
1249
|
+
#
|
1250
|
+
# @return [Endpoint] operation results.
|
1251
|
+
#
|
1252
|
+
def begin_start(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
1253
|
+
response = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
1254
|
+
response.body unless response.nil?
|
1255
|
+
end
|
1256
|
+
|
1257
|
+
#
|
1258
|
+
# Starts an existing CDN endpoint that is on a stopped state.
|
1259
|
+
#
|
1260
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1261
|
+
# Azure subscription.
|
1262
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1263
|
+
# the resource group.
|
1264
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1265
|
+
# unique globally.
|
1266
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1267
|
+
# will be added to the HTTP request.
|
1268
|
+
#
|
1269
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1270
|
+
#
|
1271
|
+
def begin_start_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
1272
|
+
begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
1273
|
+
end
|
1274
|
+
|
1275
|
+
#
|
1276
|
+
# Starts an existing CDN endpoint that is on a stopped state.
|
1277
|
+
#
|
1278
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1279
|
+
# Azure subscription.
|
1280
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1281
|
+
# the resource group.
|
1282
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1283
|
+
# unique globally.
|
1284
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1285
|
+
# to the HTTP request.
|
1286
|
+
#
|
1287
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1288
|
+
#
|
1289
|
+
def begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
1290
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1291
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1292
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1293
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
1294
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
1295
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
1296
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1297
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1298
|
+
|
1299
|
+
|
1300
|
+
request_headers = {}
|
1301
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1302
|
+
|
1303
|
+
# Set Headers
|
1304
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1305
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1306
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/start'
|
1307
|
+
|
1308
|
+
request_url = @base_url || @client.base_url
|
1309
|
+
|
1310
|
+
options = {
|
1311
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1312
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'subscriptionId' => @client.subscription_id},
|
1313
|
+
query_params: {'api-version' => @client.api_version},
|
1314
|
+
headers: request_headers.merge(custom_headers || {}),
|
1315
|
+
base_url: request_url
|
1316
|
+
}
|
1317
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1318
|
+
|
1319
|
+
promise = promise.then do |result|
|
1320
|
+
http_response = result.response
|
1321
|
+
status_code = http_response.status
|
1322
|
+
response_content = http_response.body
|
1323
|
+
unless status_code == 202
|
1324
|
+
error_model = JSON.load(response_content)
|
1325
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1326
|
+
end
|
1327
|
+
|
1328
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1329
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1330
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1331
|
+
# Deserialize Response
|
1332
|
+
if status_code == 202
|
1333
|
+
begin
|
1334
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1335
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::Endpoint.mapper()
|
1336
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1337
|
+
rescue Exception => e
|
1338
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1339
|
+
end
|
1340
|
+
end
|
1341
|
+
|
1342
|
+
result
|
1343
|
+
end
|
1344
|
+
|
1345
|
+
promise.execute
|
1346
|
+
end
|
1347
|
+
|
1348
|
+
#
|
1349
|
+
# Stops an existing running CDN endpoint.
|
1350
|
+
#
|
1351
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1352
|
+
# Azure subscription.
|
1353
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1354
|
+
# the resource group.
|
1355
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1356
|
+
# unique globally.
|
1357
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1358
|
+
# will be added to the HTTP request.
|
1359
|
+
#
|
1360
|
+
# @return [Endpoint] operation results.
|
1361
|
+
#
|
1362
|
+
def begin_stop(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
1363
|
+
response = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
1364
|
+
response.body unless response.nil?
|
1365
|
+
end
|
1366
|
+
|
1367
|
+
#
|
1368
|
+
# Stops an existing running CDN endpoint.
|
1369
|
+
#
|
1370
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1371
|
+
# Azure subscription.
|
1372
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1373
|
+
# the resource group.
|
1374
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1375
|
+
# unique globally.
|
1376
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1377
|
+
# will be added to the HTTP request.
|
1378
|
+
#
|
1379
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1380
|
+
#
|
1381
|
+
def begin_stop_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
1382
|
+
begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
1383
|
+
end
|
1384
|
+
|
1385
|
+
#
|
1386
|
+
# Stops an existing running CDN endpoint.
|
1387
|
+
#
|
1388
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1389
|
+
# Azure subscription.
|
1390
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1391
|
+
# the resource group.
|
1392
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1393
|
+
# unique globally.
|
1394
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1395
|
+
# to the HTTP request.
|
1396
|
+
#
|
1397
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1398
|
+
#
|
1399
|
+
def begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
1400
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1401
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1402
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1403
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
1404
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
1405
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
1406
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1407
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1408
|
+
|
1409
|
+
|
1410
|
+
request_headers = {}
|
1411
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1412
|
+
|
1413
|
+
# Set Headers
|
1414
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1415
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1416
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/stop'
|
1417
|
+
|
1418
|
+
request_url = @base_url || @client.base_url
|
1419
|
+
|
1420
|
+
options = {
|
1421
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1422
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'subscriptionId' => @client.subscription_id},
|
1423
|
+
query_params: {'api-version' => @client.api_version},
|
1424
|
+
headers: request_headers.merge(custom_headers || {}),
|
1425
|
+
base_url: request_url
|
1426
|
+
}
|
1427
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1428
|
+
|
1429
|
+
promise = promise.then do |result|
|
1430
|
+
http_response = result.response
|
1431
|
+
status_code = http_response.status
|
1432
|
+
response_content = http_response.body
|
1433
|
+
unless status_code == 202
|
1434
|
+
error_model = JSON.load(response_content)
|
1435
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1436
|
+
end
|
1437
|
+
|
1438
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1439
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1440
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1441
|
+
# Deserialize Response
|
1442
|
+
if status_code == 202
|
1443
|
+
begin
|
1444
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1445
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::Endpoint.mapper()
|
1446
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1447
|
+
rescue Exception => e
|
1448
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1449
|
+
end
|
1450
|
+
end
|
1451
|
+
|
1452
|
+
result
|
1453
|
+
end
|
1454
|
+
|
1455
|
+
promise.execute
|
1456
|
+
end
|
1457
|
+
|
1458
|
+
#
|
1459
|
+
# Removes a content from CDN.
|
1460
|
+
#
|
1461
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1462
|
+
# Azure subscription.
|
1463
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1464
|
+
# the resource group.
|
1465
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1466
|
+
# unique globally.
|
1467
|
+
# @param content_file_paths [PurgeParameters] The path to the content to be
|
1468
|
+
# purged. Path can be a full URL, e.g. '/pictures/city.png' which removes a
|
1469
|
+
# single file, or a directory with a wildcard, e.g. '/pictures/*' which removes
|
1470
|
+
# all folders and files in the directory.
|
1471
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1472
|
+
# will be added to the HTTP request.
|
1473
|
+
#
|
1474
|
+
#
|
1475
|
+
def begin_purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil)
|
1476
|
+
response = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value!
|
1477
|
+
nil
|
1478
|
+
end
|
1479
|
+
|
1480
|
+
#
|
1481
|
+
# Removes a content from CDN.
|
1482
|
+
#
|
1483
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1484
|
+
# Azure subscription.
|
1485
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1486
|
+
# the resource group.
|
1487
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1488
|
+
# unique globally.
|
1489
|
+
# @param content_file_paths [PurgeParameters] The path to the content to be
|
1490
|
+
# purged. Path can be a full URL, e.g. '/pictures/city.png' which removes a
|
1491
|
+
# single file, or a directory with a wildcard, e.g. '/pictures/*' which removes
|
1492
|
+
# all folders and files in the directory.
|
1493
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1494
|
+
# will be added to the HTTP request.
|
1495
|
+
#
|
1496
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1497
|
+
#
|
1498
|
+
def begin_purge_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil)
|
1499
|
+
begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value!
|
1500
|
+
end
|
1501
|
+
|
1502
|
+
#
|
1503
|
+
# Removes a content from CDN.
|
1504
|
+
#
|
1505
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1506
|
+
# Azure subscription.
|
1507
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1508
|
+
# the resource group.
|
1509
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1510
|
+
# unique globally.
|
1511
|
+
# @param content_file_paths [PurgeParameters] The path to the content to be
|
1512
|
+
# purged. Path can be a full URL, e.g. '/pictures/city.png' which removes a
|
1513
|
+
# single file, or a directory with a wildcard, e.g. '/pictures/*' which removes
|
1514
|
+
# all folders and files in the directory.
|
1515
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1516
|
+
# to the HTTP request.
|
1517
|
+
#
|
1518
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1519
|
+
#
|
1520
|
+
def begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil)
|
1521
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1522
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1523
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1524
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
1525
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
1526
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
1527
|
+
fail ArgumentError, 'content_file_paths is nil' if content_file_paths.nil?
|
1528
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1529
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1530
|
+
|
1531
|
+
|
1532
|
+
request_headers = {}
|
1533
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1534
|
+
|
1535
|
+
# Set Headers
|
1536
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1537
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1538
|
+
|
1539
|
+
# Serialize Request
|
1540
|
+
request_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::PurgeParameters.mapper()
|
1541
|
+
request_content = @client.serialize(request_mapper, content_file_paths)
|
1542
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1543
|
+
|
1544
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/purge'
|
1545
|
+
|
1546
|
+
request_url = @base_url || @client.base_url
|
1547
|
+
|
1548
|
+
options = {
|
1549
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1550
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'subscriptionId' => @client.subscription_id},
|
1551
|
+
query_params: {'api-version' => @client.api_version},
|
1552
|
+
body: request_content,
|
1553
|
+
headers: request_headers.merge(custom_headers || {}),
|
1554
|
+
base_url: request_url
|
1555
|
+
}
|
1556
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1557
|
+
|
1558
|
+
promise = promise.then do |result|
|
1559
|
+
http_response = result.response
|
1560
|
+
status_code = http_response.status
|
1561
|
+
response_content = http_response.body
|
1562
|
+
unless status_code == 202
|
1563
|
+
error_model = JSON.load(response_content)
|
1564
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1565
|
+
end
|
1566
|
+
|
1567
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1568
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1569
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1570
|
+
|
1571
|
+
result
|
1572
|
+
end
|
1573
|
+
|
1574
|
+
promise.execute
|
1575
|
+
end
|
1576
|
+
|
1577
|
+
#
|
1578
|
+
# Pre-loads a content to CDN. Available for Verizon Profiles.
|
1579
|
+
#
|
1580
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1581
|
+
# Azure subscription.
|
1582
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1583
|
+
# the resource group.
|
1584
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1585
|
+
# unique globally.
|
1586
|
+
# @param content_file_paths [LoadParameters] The path to the content to be
|
1587
|
+
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
1588
|
+
# single file
|
1589
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1590
|
+
# will be added to the HTTP request.
|
1591
|
+
#
|
1592
|
+
#
|
1593
|
+
def begin_load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil)
|
1594
|
+
response = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value!
|
1595
|
+
nil
|
1596
|
+
end
|
1597
|
+
|
1598
|
+
#
|
1599
|
+
# Pre-loads a content to CDN. Available for Verizon Profiles.
|
1600
|
+
#
|
1601
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1602
|
+
# Azure subscription.
|
1603
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1604
|
+
# the resource group.
|
1605
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1606
|
+
# unique globally.
|
1607
|
+
# @param content_file_paths [LoadParameters] The path to the content to be
|
1608
|
+
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
1609
|
+
# single file
|
1610
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1611
|
+
# will be added to the HTTP request.
|
1612
|
+
#
|
1613
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1614
|
+
#
|
1615
|
+
def begin_load_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil)
|
1616
|
+
begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value!
|
1617
|
+
end
|
1618
|
+
|
1619
|
+
#
|
1620
|
+
# Pre-loads a content to CDN. Available for Verizon Profiles.
|
1621
|
+
#
|
1622
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1623
|
+
# Azure subscription.
|
1624
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1625
|
+
# the resource group.
|
1626
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1627
|
+
# unique globally.
|
1628
|
+
# @param content_file_paths [LoadParameters] The path to the content to be
|
1629
|
+
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
1630
|
+
# single file
|
1631
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1632
|
+
# to the HTTP request.
|
1633
|
+
#
|
1634
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1635
|
+
#
|
1636
|
+
def begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil)
|
1637
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1638
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1639
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1640
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
1641
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
1642
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
1643
|
+
fail ArgumentError, 'content_file_paths is nil' if content_file_paths.nil?
|
1644
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1645
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1646
|
+
|
1647
|
+
|
1648
|
+
request_headers = {}
|
1649
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1650
|
+
|
1651
|
+
# Set Headers
|
1652
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1653
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1654
|
+
|
1655
|
+
# Serialize Request
|
1656
|
+
request_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::LoadParameters.mapper()
|
1657
|
+
request_content = @client.serialize(request_mapper, content_file_paths)
|
1658
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1659
|
+
|
1660
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/load'
|
1661
|
+
|
1662
|
+
request_url = @base_url || @client.base_url
|
1663
|
+
|
1664
|
+
options = {
|
1665
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1666
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'subscriptionId' => @client.subscription_id},
|
1667
|
+
query_params: {'api-version' => @client.api_version},
|
1668
|
+
body: request_content,
|
1669
|
+
headers: request_headers.merge(custom_headers || {}),
|
1670
|
+
base_url: request_url
|
1671
|
+
}
|
1672
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1673
|
+
|
1674
|
+
promise = promise.then do |result|
|
1675
|
+
http_response = result.response
|
1676
|
+
status_code = http_response.status
|
1677
|
+
response_content = http_response.body
|
1678
|
+
unless status_code == 202
|
1679
|
+
error_model = JSON.load(response_content)
|
1680
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1681
|
+
end
|
1682
|
+
|
1683
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1684
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1685
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1686
|
+
|
1687
|
+
result
|
1688
|
+
end
|
1689
|
+
|
1690
|
+
promise.execute
|
1691
|
+
end
|
1692
|
+
|
1693
|
+
#
|
1694
|
+
# Lists existing CDN endpoints.
|
1695
|
+
#
|
1696
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1697
|
+
# to List operation.
|
1698
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1699
|
+
# will be added to the HTTP request.
|
1700
|
+
#
|
1701
|
+
# @return [EndpointListResult] operation results.
|
1702
|
+
#
|
1703
|
+
def list_by_profile_next(next_page_link, custom_headers:nil)
|
1704
|
+
response = list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value!
|
1705
|
+
response.body unless response.nil?
|
1706
|
+
end
|
1707
|
+
|
1708
|
+
#
|
1709
|
+
# Lists existing CDN endpoints.
|
1710
|
+
#
|
1711
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1712
|
+
# to List operation.
|
1713
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1714
|
+
# will be added to the HTTP request.
|
1715
|
+
#
|
1716
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1717
|
+
#
|
1718
|
+
def list_by_profile_next_with_http_info(next_page_link, custom_headers:nil)
|
1719
|
+
list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value!
|
1720
|
+
end
|
1721
|
+
|
1722
|
+
#
|
1723
|
+
# Lists existing CDN endpoints.
|
1724
|
+
#
|
1725
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1726
|
+
# to List operation.
|
1727
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1728
|
+
# to the HTTP request.
|
1729
|
+
#
|
1730
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1731
|
+
#
|
1732
|
+
def list_by_profile_next_async(next_page_link, custom_headers:nil)
|
1733
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1734
|
+
|
1735
|
+
|
1736
|
+
request_headers = {}
|
1737
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1738
|
+
|
1739
|
+
# Set Headers
|
1740
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1741
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1742
|
+
path_template = '{nextLink}'
|
1743
|
+
|
1744
|
+
request_url = @base_url || @client.base_url
|
1745
|
+
|
1746
|
+
options = {
|
1747
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1748
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1749
|
+
headers: request_headers.merge(custom_headers || {}),
|
1750
|
+
base_url: request_url
|
1751
|
+
}
|
1752
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1753
|
+
|
1754
|
+
promise = promise.then do |result|
|
1755
|
+
http_response = result.response
|
1756
|
+
status_code = http_response.status
|
1757
|
+
response_content = http_response.body
|
1758
|
+
unless status_code == 200
|
1759
|
+
error_model = JSON.load(response_content)
|
1760
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1761
|
+
end
|
1762
|
+
|
1763
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1764
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1765
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1766
|
+
# Deserialize Response
|
1767
|
+
if status_code == 200
|
1768
|
+
begin
|
1769
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1770
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::EndpointListResult.mapper()
|
1771
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1772
|
+
rescue Exception => e
|
1773
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1774
|
+
end
|
1775
|
+
end
|
1776
|
+
|
1777
|
+
result
|
1778
|
+
end
|
1779
|
+
|
1780
|
+
promise.execute
|
1781
|
+
end
|
1782
|
+
|
1783
|
+
#
|
1784
|
+
# Checks the quota and usage of geo filters and custom domains under the given
|
1785
|
+
# endpoint.
|
1786
|
+
#
|
1787
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1788
|
+
# to List operation.
|
1789
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1790
|
+
# will be added to the HTTP request.
|
1791
|
+
#
|
1792
|
+
# @return [ResourceUsageListResult] operation results.
|
1793
|
+
#
|
1794
|
+
def list_resource_usage_next(next_page_link, custom_headers:nil)
|
1795
|
+
response = list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value!
|
1796
|
+
response.body unless response.nil?
|
1797
|
+
end
|
1798
|
+
|
1799
|
+
#
|
1800
|
+
# Checks the quota and usage of geo filters and custom domains under the given
|
1801
|
+
# endpoint.
|
1802
|
+
#
|
1803
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1804
|
+
# to List operation.
|
1805
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1806
|
+
# will be added to the HTTP request.
|
1807
|
+
#
|
1808
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1809
|
+
#
|
1810
|
+
def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil)
|
1811
|
+
list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value!
|
1812
|
+
end
|
1813
|
+
|
1814
|
+
#
|
1815
|
+
# Checks the quota and usage of geo filters and custom domains under the given
|
1816
|
+
# endpoint.
|
1817
|
+
#
|
1818
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1819
|
+
# to List operation.
|
1820
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1821
|
+
# to the HTTP request.
|
1822
|
+
#
|
1823
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1824
|
+
#
|
1825
|
+
def list_resource_usage_next_async(next_page_link, custom_headers:nil)
|
1826
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1827
|
+
|
1828
|
+
|
1829
|
+
request_headers = {}
|
1830
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1831
|
+
|
1832
|
+
# Set Headers
|
1833
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1834
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1835
|
+
path_template = '{nextLink}'
|
1836
|
+
|
1837
|
+
request_url = @base_url || @client.base_url
|
1838
|
+
|
1839
|
+
options = {
|
1840
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1841
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1842
|
+
headers: request_headers.merge(custom_headers || {}),
|
1843
|
+
base_url: request_url
|
1844
|
+
}
|
1845
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1846
|
+
|
1847
|
+
promise = promise.then do |result|
|
1848
|
+
http_response = result.response
|
1849
|
+
status_code = http_response.status
|
1850
|
+
response_content = http_response.body
|
1851
|
+
unless status_code == 200
|
1852
|
+
error_model = JSON.load(response_content)
|
1853
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1854
|
+
end
|
1855
|
+
|
1856
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1857
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1858
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1859
|
+
# Deserialize Response
|
1860
|
+
if status_code == 200
|
1861
|
+
begin
|
1862
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1863
|
+
result_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::ResourceUsageListResult.mapper()
|
1864
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1865
|
+
rescue Exception => e
|
1866
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1867
|
+
end
|
1868
|
+
end
|
1869
|
+
|
1870
|
+
result
|
1871
|
+
end
|
1872
|
+
|
1873
|
+
promise.execute
|
1874
|
+
end
|
1875
|
+
|
1876
|
+
#
|
1877
|
+
# Lists existing CDN endpoints.
|
1878
|
+
#
|
1879
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1880
|
+
# Azure subscription.
|
1881
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1882
|
+
# the resource group.
|
1883
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1884
|
+
# will be added to the HTTP request.
|
1885
|
+
#
|
1886
|
+
# @return [EndpointListResult] which provide lazy access to pages of the
|
1887
|
+
# response.
|
1888
|
+
#
|
1889
|
+
def list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:nil)
|
1890
|
+
response = list_by_profile_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
|
1891
|
+
unless response.nil?
|
1892
|
+
page = response.body
|
1893
|
+
page.next_method = Proc.new do |next_page_link|
|
1894
|
+
list_by_profile_next_async(next_page_link, custom_headers:custom_headers)
|
1895
|
+
end
|
1896
|
+
page
|
1897
|
+
end
|
1898
|
+
end
|
1899
|
+
|
1900
|
+
#
|
1901
|
+
# Checks the quota and usage of geo filters and custom domains under the given
|
1902
|
+
# endpoint.
|
1903
|
+
#
|
1904
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1905
|
+
# Azure subscription.
|
1906
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
1907
|
+
# the resource group.
|
1908
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
1909
|
+
# unique globally.
|
1910
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1911
|
+
# will be added to the HTTP request.
|
1912
|
+
#
|
1913
|
+
# @return [ResourceUsageListResult] which provide lazy access to pages of the
|
1914
|
+
# response.
|
1915
|
+
#
|
1916
|
+
def list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
1917
|
+
response = list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
1918
|
+
unless response.nil?
|
1919
|
+
page = response.body
|
1920
|
+
page.next_method = Proc.new do |next_page_link|
|
1921
|
+
list_resource_usage_next_async(next_page_link, custom_headers:custom_headers)
|
1922
|
+
end
|
1923
|
+
page
|
1924
|
+
end
|
1925
|
+
end
|
1926
|
+
|
1927
|
+
end
|
1928
|
+
end
|