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,70 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '2016-04-02/generated/azure_mgmt_cdn/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::CDN::Mgmt::V2016_04_02
|
23
|
+
autoload :Profiles, '2016-04-02/generated/azure_mgmt_cdn/profiles.rb'
|
24
|
+
autoload :Endpoints, '2016-04-02/generated/azure_mgmt_cdn/endpoints.rb'
|
25
|
+
autoload :Origins, '2016-04-02/generated/azure_mgmt_cdn/origins.rb'
|
26
|
+
autoload :CustomDomains, '2016-04-02/generated/azure_mgmt_cdn/custom_domains.rb'
|
27
|
+
autoload :NameAvailability, '2016-04-02/generated/azure_mgmt_cdn/name_availability.rb'
|
28
|
+
autoload :Operations, '2016-04-02/generated/azure_mgmt_cdn/operations.rb'
|
29
|
+
autoload :CdnManagementClient, '2016-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb'
|
30
|
+
|
31
|
+
module Models
|
32
|
+
autoload :OriginParameters, '2016-04-02/generated/azure_mgmt_cdn/models/origin_parameters.rb'
|
33
|
+
autoload :OriginListResult, '2016-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb'
|
34
|
+
autoload :ErrorResponse, '2016-04-02/generated/azure_mgmt_cdn/models/error_response.rb'
|
35
|
+
autoload :Sku, '2016-04-02/generated/azure_mgmt_cdn/models/sku.rb'
|
36
|
+
autoload :ProfileCreateParameters, '2016-04-02/generated/azure_mgmt_cdn/models/profile_create_parameters.rb'
|
37
|
+
autoload :Resource, '2016-04-02/generated/azure_mgmt_cdn/models/resource.rb'
|
38
|
+
autoload :SsoUri, '2016-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb'
|
39
|
+
autoload :DeepCreatedOrigin, '2016-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb'
|
40
|
+
autoload :OperationListResult, '2016-04-02/generated/azure_mgmt_cdn/models/operation_list_result.rb'
|
41
|
+
autoload :EndpointListResult, '2016-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb'
|
42
|
+
autoload :CustomDomainParameters, '2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb'
|
43
|
+
autoload :EndpointUpdateParameters, '2016-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb'
|
44
|
+
autoload :CustomDomainListResult, '2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb'
|
45
|
+
autoload :LoadParameters, '2016-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb'
|
46
|
+
autoload :ValidateCustomDomainInput, '2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb'
|
47
|
+
autoload :ProfileUpdateParameters, '2016-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb'
|
48
|
+
autoload :ValidateCustomDomainOutput, '2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb'
|
49
|
+
autoload :EndpointCreateParameters, '2016-04-02/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb'
|
50
|
+
autoload :CheckNameAvailabilityInput, '2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb'
|
51
|
+
autoload :ProfileListResult, '2016-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb'
|
52
|
+
autoload :CheckNameAvailabilityOutput, '2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb'
|
53
|
+
autoload :PurgeParameters, '2016-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb'
|
54
|
+
autoload :OperationDisplay, '2016-04-02/generated/azure_mgmt_cdn/models/operation_display.rb'
|
55
|
+
autoload :Operation, '2016-04-02/generated/azure_mgmt_cdn/models/operation.rb'
|
56
|
+
autoload :TrackedResource, '2016-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb'
|
57
|
+
autoload :Profile, '2016-04-02/generated/azure_mgmt_cdn/models/profile.rb'
|
58
|
+
autoload :Endpoint, '2016-04-02/generated/azure_mgmt_cdn/models/endpoint.rb'
|
59
|
+
autoload :Origin, '2016-04-02/generated/azure_mgmt_cdn/models/origin.rb'
|
60
|
+
autoload :CustomDomain, '2016-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb'
|
61
|
+
autoload :SkuName, '2016-04-02/generated/azure_mgmt_cdn/models/sku_name.rb'
|
62
|
+
autoload :ProfileResourceState, '2016-04-02/generated/azure_mgmt_cdn/models/profile_resource_state.rb'
|
63
|
+
autoload :ProvisioningState, '2016-04-02/generated/azure_mgmt_cdn/models/provisioning_state.rb'
|
64
|
+
autoload :QueryStringCachingBehavior, '2016-04-02/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb'
|
65
|
+
autoload :EndpointResourceState, '2016-04-02/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb'
|
66
|
+
autoload :OriginResourceState, '2016-04-02/generated/azure_mgmt_cdn/models/origin_resource_state.rb'
|
67
|
+
autoload :CustomDomainResourceState, '2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb'
|
68
|
+
autoload :ResourceType, '2016-04-02/generated/azure_mgmt_cdn/models/resource_type.rb'
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,152 @@
|
|
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_04_02
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class CdnManagementClient < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] Azure Subscription ID.
|
21
|
+
attr_accessor :subscription_id
|
22
|
+
|
23
|
+
# @return [String] Version of the API to be used with the client request.
|
24
|
+
# Current version is 2016-04-02
|
25
|
+
attr_reader :api_version
|
26
|
+
|
27
|
+
# @return [String] The preferred language for the response.
|
28
|
+
attr_accessor :accept_language
|
29
|
+
|
30
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
31
|
+
# Operations. Default value is 30.
|
32
|
+
attr_accessor :long_running_operation_retry_timeout
|
33
|
+
|
34
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
35
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
36
|
+
# generated and included in each request. Default is true.
|
37
|
+
attr_accessor :generate_client_request_id
|
38
|
+
|
39
|
+
# @return [Profiles] profiles
|
40
|
+
attr_reader :profiles
|
41
|
+
|
42
|
+
# @return [Endpoints] endpoints
|
43
|
+
attr_reader :endpoints
|
44
|
+
|
45
|
+
# @return [Origins] origins
|
46
|
+
attr_reader :origins
|
47
|
+
|
48
|
+
# @return [CustomDomains] custom_domains
|
49
|
+
attr_reader :custom_domains
|
50
|
+
|
51
|
+
# @return [NameAvailability] name_availability
|
52
|
+
attr_reader :name_availability
|
53
|
+
|
54
|
+
# @return [Operations] operations
|
55
|
+
attr_reader :operations
|
56
|
+
|
57
|
+
#
|
58
|
+
# Creates initializes a new instance of the CdnManagementClient class.
|
59
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
60
|
+
# @param base_url [String] the base URI of the service.
|
61
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
62
|
+
#
|
63
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
64
|
+
super(credentials, options)
|
65
|
+
@base_url = base_url || 'https://management.azure.com'
|
66
|
+
|
67
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
68
|
+
@credentials = credentials
|
69
|
+
|
70
|
+
@profiles = Profiles.new(self)
|
71
|
+
@endpoints = Endpoints.new(self)
|
72
|
+
@origins = Origins.new(self)
|
73
|
+
@custom_domains = CustomDomains.new(self)
|
74
|
+
@name_availability = NameAvailability.new(self)
|
75
|
+
@operations = Operations.new(self)
|
76
|
+
@api_version = '2016-04-02'
|
77
|
+
@accept_language = 'en-US'
|
78
|
+
@long_running_operation_retry_timeout = 30
|
79
|
+
@generate_client_request_id = true
|
80
|
+
add_telemetry
|
81
|
+
end
|
82
|
+
|
83
|
+
#
|
84
|
+
# Makes a request and returns the body of the response.
|
85
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
86
|
+
# @param path [String] the path, relative to {base_url}.
|
87
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
88
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
89
|
+
# Example:
|
90
|
+
#
|
91
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
92
|
+
# path = "/path"
|
93
|
+
# options = {
|
94
|
+
# body: request_content,
|
95
|
+
# query_params: {'api-version' => '2016-02-01'}
|
96
|
+
# }
|
97
|
+
# result = @client.make_request(:put, path, options)
|
98
|
+
#
|
99
|
+
def make_request(method, path, options = {})
|
100
|
+
result = make_request_with_http_info(method, path, options)
|
101
|
+
result.body unless result.nil?
|
102
|
+
end
|
103
|
+
|
104
|
+
#
|
105
|
+
# Makes a request and returns the operation response.
|
106
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
107
|
+
# @param path [String] the path, relative to {base_url}.
|
108
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
109
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
110
|
+
#
|
111
|
+
def make_request_with_http_info(method, path, options = {})
|
112
|
+
result = make_request_async(method, path, options).value!
|
113
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
114
|
+
result
|
115
|
+
end
|
116
|
+
|
117
|
+
#
|
118
|
+
# Makes a request asynchronously.
|
119
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
120
|
+
# @param path [String] the path, relative to {base_url}.
|
121
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
122
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
123
|
+
#
|
124
|
+
def make_request_async(method, path, options = {})
|
125
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
126
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
127
|
+
|
128
|
+
request_url = options[:base_url] || @base_url
|
129
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
130
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
131
|
+
end
|
132
|
+
|
133
|
+
request_headers = @request_headers
|
134
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
135
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
136
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
137
|
+
|
138
|
+
super(request_url, method, path, options)
|
139
|
+
end
|
140
|
+
|
141
|
+
|
142
|
+
private
|
143
|
+
#
|
144
|
+
# Adds telemetry information.
|
145
|
+
#
|
146
|
+
def add_telemetry
|
147
|
+
sdk_information = 'azure_mgmt_cdn'
|
148
|
+
sdk_information = "#{sdk_information}/0.17.5"
|
149
|
+
add_user_agent_information(sdk_information)
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
@@ -0,0 +1,729 @@
|
|
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_04_02
|
7
|
+
#
|
8
|
+
# Use these APIs to manage Azure CDN resources through the Azure Resource
|
9
|
+
# Manager. You must make sure that requests made to these resources are
|
10
|
+
# secure. For more information, see
|
11
|
+
# https://msdn.microsoft.com/en-us/library/azure/dn790557.aspx.
|
12
|
+
#
|
13
|
+
class CustomDomains
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
#
|
17
|
+
# Creates and initializes a new instance of the CustomDomains class.
|
18
|
+
# @param client service class for accessing basic functionality.
|
19
|
+
#
|
20
|
+
def initialize(client)
|
21
|
+
@client = client
|
22
|
+
end
|
23
|
+
|
24
|
+
# @return [CdnManagementClient] reference to the CdnManagementClient
|
25
|
+
attr_reader :client
|
26
|
+
|
27
|
+
#
|
28
|
+
# Lists the existing CDN custom domains within an endpoint.
|
29
|
+
#
|
30
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
31
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
32
|
+
# group.
|
33
|
+
# @param resource_group_name [String] Name of the resource group within the
|
34
|
+
# Azure subscription.
|
35
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
|
+
# will be added to the HTTP request.
|
37
|
+
#
|
38
|
+
# @return [CustomDomainListResult] operation results.
|
39
|
+
#
|
40
|
+
def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
41
|
+
response = list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
|
42
|
+
response.body unless response.nil?
|
43
|
+
end
|
44
|
+
|
45
|
+
#
|
46
|
+
# Lists the existing CDN custom domains within an endpoint.
|
47
|
+
#
|
48
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
49
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
50
|
+
# group.
|
51
|
+
# @param resource_group_name [String] Name of the resource group within the
|
52
|
+
# Azure subscription.
|
53
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
54
|
+
# will be added to the HTTP request.
|
55
|
+
#
|
56
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
57
|
+
#
|
58
|
+
def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
59
|
+
list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
|
60
|
+
end
|
61
|
+
|
62
|
+
#
|
63
|
+
# Lists the existing CDN custom domains within an endpoint.
|
64
|
+
#
|
65
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
66
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
67
|
+
# group.
|
68
|
+
# @param resource_group_name [String] Name of the resource group within the
|
69
|
+
# Azure subscription.
|
70
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
71
|
+
# to the HTTP request.
|
72
|
+
#
|
73
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
74
|
+
#
|
75
|
+
def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
76
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
77
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
78
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
79
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
80
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
81
|
+
|
82
|
+
|
83
|
+
request_headers = {}
|
84
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
85
|
+
|
86
|
+
# Set Headers
|
87
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
88
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
89
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains'
|
90
|
+
|
91
|
+
request_url = @base_url || @client.base_url
|
92
|
+
|
93
|
+
options = {
|
94
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
95
|
+
path_params: {'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
96
|
+
query_params: {'api-version' => @client.api_version},
|
97
|
+
headers: request_headers.merge(custom_headers || {}),
|
98
|
+
base_url: request_url
|
99
|
+
}
|
100
|
+
promise = @client.make_request_async(:get, path_template, options)
|
101
|
+
|
102
|
+
promise = promise.then do |result|
|
103
|
+
http_response = result.response
|
104
|
+
status_code = http_response.status
|
105
|
+
response_content = http_response.body
|
106
|
+
unless status_code == 200
|
107
|
+
error_model = JSON.load(response_content)
|
108
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
109
|
+
end
|
110
|
+
|
111
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
112
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
113
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
114
|
+
# Deserialize Response
|
115
|
+
if status_code == 200
|
116
|
+
begin
|
117
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
118
|
+
result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::CustomDomainListResult.mapper()
|
119
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
120
|
+
rescue Exception => e
|
121
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
result
|
126
|
+
end
|
127
|
+
|
128
|
+
promise.execute
|
129
|
+
end
|
130
|
+
|
131
|
+
#
|
132
|
+
# Gets an existing CDN custom domain within an endpoint.
|
133
|
+
#
|
134
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
135
|
+
# endpoint.
|
136
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
137
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
138
|
+
# group.
|
139
|
+
# @param resource_group_name [String] Name of the resource group within the
|
140
|
+
# Azure subscription.
|
141
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
142
|
+
# will be added to the HTTP request.
|
143
|
+
#
|
144
|
+
# @return [CustomDomain] operation results.
|
145
|
+
#
|
146
|
+
def get(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
147
|
+
response = get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
|
148
|
+
response.body unless response.nil?
|
149
|
+
end
|
150
|
+
|
151
|
+
#
|
152
|
+
# Gets an existing CDN custom domain within an endpoint.
|
153
|
+
#
|
154
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
155
|
+
# endpoint.
|
156
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
157
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
158
|
+
# group.
|
159
|
+
# @param resource_group_name [String] Name of the resource group within the
|
160
|
+
# Azure subscription.
|
161
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
162
|
+
# will be added to the HTTP request.
|
163
|
+
#
|
164
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
165
|
+
#
|
166
|
+
def get_with_http_info(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
167
|
+
get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
|
168
|
+
end
|
169
|
+
|
170
|
+
#
|
171
|
+
# Gets an existing CDN custom domain within an endpoint.
|
172
|
+
#
|
173
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
174
|
+
# endpoint.
|
175
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
176
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
177
|
+
# group.
|
178
|
+
# @param resource_group_name [String] Name of the resource group within the
|
179
|
+
# Azure subscription.
|
180
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
181
|
+
# to the HTTP request.
|
182
|
+
#
|
183
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
184
|
+
#
|
185
|
+
def get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
186
|
+
fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
|
187
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
188
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
189
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_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}/customDomains/{customDomainName}'
|
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: {'customDomainName' => custom_domain_name,'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_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_04_02::Models::CustomDomain.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 custom domain within an endpoint.
|
244
|
+
#
|
245
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
246
|
+
# endpoint.
|
247
|
+
# @param custom_domain_properties [CustomDomainParameters] Custom domain
|
248
|
+
# properties required for creation.
|
249
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
250
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
251
|
+
# group.
|
252
|
+
# @param resource_group_name [String] Name of the resource group within the
|
253
|
+
# Azure subscription.
|
254
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
255
|
+
# will be added to the HTTP request.
|
256
|
+
#
|
257
|
+
# @return [CustomDomain] operation results.
|
258
|
+
#
|
259
|
+
def create(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
260
|
+
response = create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
|
261
|
+
response.body unless response.nil?
|
262
|
+
end
|
263
|
+
|
264
|
+
#
|
265
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
266
|
+
# endpoint.
|
267
|
+
# @param custom_domain_properties [CustomDomainParameters] Custom domain
|
268
|
+
# properties required for creation.
|
269
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
270
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
271
|
+
# group.
|
272
|
+
# @param resource_group_name [String] Name of the resource group within the
|
273
|
+
# Azure subscription.
|
274
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
275
|
+
# will be added to the HTTP request.
|
276
|
+
#
|
277
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
278
|
+
# response.
|
279
|
+
#
|
280
|
+
def create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
281
|
+
# Send request
|
282
|
+
promise = begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers)
|
283
|
+
|
284
|
+
promise = promise.then do |response|
|
285
|
+
# Defining deserialization method.
|
286
|
+
deserialize_method = lambda do |parsed_response|
|
287
|
+
result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::CustomDomain.mapper()
|
288
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
289
|
+
end
|
290
|
+
|
291
|
+
# Waiting for response.
|
292
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
293
|
+
end
|
294
|
+
|
295
|
+
promise
|
296
|
+
end
|
297
|
+
|
298
|
+
#
|
299
|
+
# Updates an existing CDN custom domain within an endpoint.
|
300
|
+
#
|
301
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
302
|
+
# endpoint.
|
303
|
+
# @param custom_domain_properties [CustomDomainParameters] Custom domain
|
304
|
+
# properties to update.
|
305
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
306
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
307
|
+
# group.
|
308
|
+
# @param resource_group_name [String] Name of the resource group within the
|
309
|
+
# Azure subscription.
|
310
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
311
|
+
# will be added to the HTTP request.
|
312
|
+
#
|
313
|
+
# @return [ErrorResponse] operation results.
|
314
|
+
#
|
315
|
+
def update(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
316
|
+
response = update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
|
317
|
+
response.body unless response.nil?
|
318
|
+
end
|
319
|
+
|
320
|
+
#
|
321
|
+
# Updates an existing CDN custom domain within an endpoint.
|
322
|
+
#
|
323
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
324
|
+
# endpoint.
|
325
|
+
# @param custom_domain_properties [CustomDomainParameters] Custom domain
|
326
|
+
# properties to update.
|
327
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
328
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
329
|
+
# group.
|
330
|
+
# @param resource_group_name [String] Name of the resource group within the
|
331
|
+
# Azure subscription.
|
332
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
333
|
+
# will be added to the HTTP request.
|
334
|
+
#
|
335
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
336
|
+
#
|
337
|
+
def update_with_http_info(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
338
|
+
update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
|
339
|
+
end
|
340
|
+
|
341
|
+
#
|
342
|
+
# Updates an existing CDN custom domain within an endpoint.
|
343
|
+
#
|
344
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
345
|
+
# endpoint.
|
346
|
+
# @param custom_domain_properties [CustomDomainParameters] Custom domain
|
347
|
+
# properties to update.
|
348
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
349
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
350
|
+
# group.
|
351
|
+
# @param resource_group_name [String] Name of the resource group within the
|
352
|
+
# Azure subscription.
|
353
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
354
|
+
# to the HTTP request.
|
355
|
+
#
|
356
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
357
|
+
#
|
358
|
+
def update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
359
|
+
fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
|
360
|
+
fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil?
|
361
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
362
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
363
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
364
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
365
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
366
|
+
|
367
|
+
|
368
|
+
request_headers = {}
|
369
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
370
|
+
|
371
|
+
# Set Headers
|
372
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
373
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
374
|
+
|
375
|
+
# Serialize Request
|
376
|
+
request_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::CustomDomainParameters.mapper()
|
377
|
+
request_content = @client.serialize(request_mapper, custom_domain_properties)
|
378
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
379
|
+
|
380
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}'
|
381
|
+
|
382
|
+
request_url = @base_url || @client.base_url
|
383
|
+
|
384
|
+
options = {
|
385
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
386
|
+
path_params: {'customDomainName' => custom_domain_name,'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
387
|
+
query_params: {'api-version' => @client.api_version},
|
388
|
+
body: request_content,
|
389
|
+
headers: request_headers.merge(custom_headers || {}),
|
390
|
+
base_url: request_url
|
391
|
+
}
|
392
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
393
|
+
|
394
|
+
promise = promise.then do |result|
|
395
|
+
http_response = result.response
|
396
|
+
status_code = http_response.status
|
397
|
+
response_content = http_response.body
|
398
|
+
unless status_code >= 200 && status_code < 300
|
399
|
+
error_model = JSON.load(response_content)
|
400
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
401
|
+
end
|
402
|
+
|
403
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
404
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
405
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
406
|
+
begin
|
407
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
408
|
+
result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::ErrorResponse.mapper()
|
409
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
410
|
+
rescue Exception => e
|
411
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
412
|
+
end
|
413
|
+
|
414
|
+
result
|
415
|
+
end
|
416
|
+
|
417
|
+
promise.execute
|
418
|
+
end
|
419
|
+
|
420
|
+
#
|
421
|
+
# Deletes an existing CDN custom domain within an endpoint.
|
422
|
+
#
|
423
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
424
|
+
# endpoint.
|
425
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
426
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
427
|
+
# group.
|
428
|
+
# @param resource_group_name [String] Name of the resource group within the
|
429
|
+
# Azure subscription.
|
430
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
431
|
+
# will be added to the HTTP request.
|
432
|
+
#
|
433
|
+
# @return [CustomDomain] operation results.
|
434
|
+
#
|
435
|
+
def delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
436
|
+
response = delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
|
437
|
+
response.body unless response.nil?
|
438
|
+
end
|
439
|
+
|
440
|
+
#
|
441
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
442
|
+
# endpoint.
|
443
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
444
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
445
|
+
# group.
|
446
|
+
# @param resource_group_name [String] Name of the resource group within the
|
447
|
+
# Azure subscription.
|
448
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
449
|
+
# will be added to the HTTP request.
|
450
|
+
#
|
451
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
452
|
+
# response.
|
453
|
+
#
|
454
|
+
def delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
455
|
+
# Send request
|
456
|
+
promise = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers)
|
457
|
+
|
458
|
+
promise = promise.then do |response|
|
459
|
+
# Defining deserialization method.
|
460
|
+
deserialize_method = lambda do |parsed_response|
|
461
|
+
result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::CustomDomain.mapper()
|
462
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
463
|
+
end
|
464
|
+
|
465
|
+
# Waiting for response.
|
466
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
467
|
+
end
|
468
|
+
|
469
|
+
promise
|
470
|
+
end
|
471
|
+
|
472
|
+
#
|
473
|
+
# Creates a new CDN custom domain within an endpoint.
|
474
|
+
#
|
475
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
476
|
+
# endpoint.
|
477
|
+
# @param custom_domain_properties [CustomDomainParameters] Custom domain
|
478
|
+
# properties required for creation.
|
479
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
480
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
481
|
+
# group.
|
482
|
+
# @param resource_group_name [String] Name of the resource group within the
|
483
|
+
# Azure subscription.
|
484
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
485
|
+
# will be added to the HTTP request.
|
486
|
+
#
|
487
|
+
# @return [CustomDomain] operation results.
|
488
|
+
#
|
489
|
+
def begin_create(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
490
|
+
response = begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
|
491
|
+
response.body unless response.nil?
|
492
|
+
end
|
493
|
+
|
494
|
+
#
|
495
|
+
# Creates a new CDN custom domain within an endpoint.
|
496
|
+
#
|
497
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
498
|
+
# endpoint.
|
499
|
+
# @param custom_domain_properties [CustomDomainParameters] Custom domain
|
500
|
+
# properties required for creation.
|
501
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
502
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
503
|
+
# group.
|
504
|
+
# @param resource_group_name [String] Name of the resource group within the
|
505
|
+
# Azure subscription.
|
506
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
507
|
+
# will be added to the HTTP request.
|
508
|
+
#
|
509
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
510
|
+
#
|
511
|
+
def begin_create_with_http_info(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
512
|
+
begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
|
513
|
+
end
|
514
|
+
|
515
|
+
#
|
516
|
+
# Creates a new CDN custom domain within an endpoint.
|
517
|
+
#
|
518
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
519
|
+
# endpoint.
|
520
|
+
# @param custom_domain_properties [CustomDomainParameters] Custom domain
|
521
|
+
# properties required for creation.
|
522
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
523
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
524
|
+
# group.
|
525
|
+
# @param resource_group_name [String] Name of the resource group within the
|
526
|
+
# Azure subscription.
|
527
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
528
|
+
# to the HTTP request.
|
529
|
+
#
|
530
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
531
|
+
#
|
532
|
+
def begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
533
|
+
fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
|
534
|
+
fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil?
|
535
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
536
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
537
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
538
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
539
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
540
|
+
|
541
|
+
|
542
|
+
request_headers = {}
|
543
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
544
|
+
|
545
|
+
# Set Headers
|
546
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
547
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
548
|
+
|
549
|
+
# Serialize Request
|
550
|
+
request_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::CustomDomainParameters.mapper()
|
551
|
+
request_content = @client.serialize(request_mapper, custom_domain_properties)
|
552
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
553
|
+
|
554
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}'
|
555
|
+
|
556
|
+
request_url = @base_url || @client.base_url
|
557
|
+
|
558
|
+
options = {
|
559
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
560
|
+
path_params: {'customDomainName' => custom_domain_name,'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
561
|
+
query_params: {'api-version' => @client.api_version},
|
562
|
+
body: request_content,
|
563
|
+
headers: request_headers.merge(custom_headers || {}),
|
564
|
+
base_url: request_url
|
565
|
+
}
|
566
|
+
promise = @client.make_request_async(:put, path_template, options)
|
567
|
+
|
568
|
+
promise = promise.then do |result|
|
569
|
+
http_response = result.response
|
570
|
+
status_code = http_response.status
|
571
|
+
response_content = http_response.body
|
572
|
+
unless status_code == 200 || status_code == 201 || status_code == 202
|
573
|
+
error_model = JSON.load(response_content)
|
574
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
575
|
+
end
|
576
|
+
|
577
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
578
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
579
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
580
|
+
# Deserialize Response
|
581
|
+
if status_code == 200
|
582
|
+
begin
|
583
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
584
|
+
result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::CustomDomain.mapper()
|
585
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
586
|
+
rescue Exception => e
|
587
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
588
|
+
end
|
589
|
+
end
|
590
|
+
# Deserialize Response
|
591
|
+
if status_code == 201
|
592
|
+
begin
|
593
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
594
|
+
result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::CustomDomain.mapper()
|
595
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
596
|
+
rescue Exception => e
|
597
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
598
|
+
end
|
599
|
+
end
|
600
|
+
# Deserialize Response
|
601
|
+
if status_code == 202
|
602
|
+
begin
|
603
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
604
|
+
result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::CustomDomain.mapper()
|
605
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
606
|
+
rescue Exception => e
|
607
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
608
|
+
end
|
609
|
+
end
|
610
|
+
|
611
|
+
result
|
612
|
+
end
|
613
|
+
|
614
|
+
promise.execute
|
615
|
+
end
|
616
|
+
|
617
|
+
#
|
618
|
+
# Deletes an existing CDN custom domain within an endpoint.
|
619
|
+
#
|
620
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
621
|
+
# endpoint.
|
622
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
623
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
624
|
+
# group.
|
625
|
+
# @param resource_group_name [String] Name of the resource group within the
|
626
|
+
# Azure subscription.
|
627
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
628
|
+
# will be added to the HTTP request.
|
629
|
+
#
|
630
|
+
# @return [CustomDomain] operation results.
|
631
|
+
#
|
632
|
+
def begin_delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
633
|
+
response = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
|
634
|
+
response.body unless response.nil?
|
635
|
+
end
|
636
|
+
|
637
|
+
#
|
638
|
+
# Deletes an existing CDN custom domain within an endpoint.
|
639
|
+
#
|
640
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
641
|
+
# endpoint.
|
642
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
643
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
644
|
+
# group.
|
645
|
+
# @param resource_group_name [String] Name of the resource group within the
|
646
|
+
# Azure subscription.
|
647
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
648
|
+
# will be added to the HTTP request.
|
649
|
+
#
|
650
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
651
|
+
#
|
652
|
+
def begin_delete_if_exists_with_http_info(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
653
|
+
begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
|
654
|
+
end
|
655
|
+
|
656
|
+
#
|
657
|
+
# Deletes an existing CDN custom domain within an endpoint.
|
658
|
+
#
|
659
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
660
|
+
# endpoint.
|
661
|
+
# @param endpoint_name [String] Name of the endpoint within the CDN profile.
|
662
|
+
# @param profile_name [String] Name of the CDN profile within the resource
|
663
|
+
# group.
|
664
|
+
# @param resource_group_name [String] Name of the resource group within the
|
665
|
+
# Azure subscription.
|
666
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
667
|
+
# to the HTTP request.
|
668
|
+
#
|
669
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
670
|
+
#
|
671
|
+
def begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
|
672
|
+
fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
|
673
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
674
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
675
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
676
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
677
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
678
|
+
|
679
|
+
|
680
|
+
request_headers = {}
|
681
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
682
|
+
|
683
|
+
# Set Headers
|
684
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
685
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
686
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}'
|
687
|
+
|
688
|
+
request_url = @base_url || @client.base_url
|
689
|
+
|
690
|
+
options = {
|
691
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
692
|
+
path_params: {'customDomainName' => custom_domain_name,'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
693
|
+
query_params: {'api-version' => @client.api_version},
|
694
|
+
headers: request_headers.merge(custom_headers || {}),
|
695
|
+
base_url: request_url
|
696
|
+
}
|
697
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
698
|
+
|
699
|
+
promise = promise.then do |result|
|
700
|
+
http_response = result.response
|
701
|
+
status_code = http_response.status
|
702
|
+
response_content = http_response.body
|
703
|
+
unless status_code == 200 || status_code == 202 || status_code == 204
|
704
|
+
error_model = JSON.load(response_content)
|
705
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
706
|
+
end
|
707
|
+
|
708
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
709
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
710
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
711
|
+
# Deserialize Response
|
712
|
+
if status_code == 202
|
713
|
+
begin
|
714
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
715
|
+
result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::CustomDomain.mapper()
|
716
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
717
|
+
rescue Exception => e
|
718
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
719
|
+
end
|
720
|
+
end
|
721
|
+
|
722
|
+
result
|
723
|
+
end
|
724
|
+
|
725
|
+
promise.execute
|
726
|
+
end
|
727
|
+
|
728
|
+
end
|
729
|
+
end
|