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,1003 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CDN::Mgmt::V2017_10_12
|
7
|
+
#
|
8
|
+
# 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 CustomDomains
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
#
|
16
|
+
# Creates and initializes a new instance of the CustomDomains 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 of the existing custom domains within an endpoint.
|
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 endpoint_name [String] Name of the endpoint under the profile which is
|
34
|
+
# unique globally.
|
35
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
|
+
# will be added to the HTTP request.
|
37
|
+
#
|
38
|
+
# @return [Array<CustomDomain>] operation results.
|
39
|
+
#
|
40
|
+
def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
41
|
+
first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers)
|
42
|
+
first_page.get_all_items
|
43
|
+
end
|
44
|
+
|
45
|
+
#
|
46
|
+
# Lists all of the existing custom domains within an endpoint.
|
47
|
+
#
|
48
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
49
|
+
# Azure subscription.
|
50
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
51
|
+
# the resource group.
|
52
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
53
|
+
# unique globally.
|
54
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
55
|
+
# will be added to the HTTP request.
|
56
|
+
#
|
57
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
58
|
+
#
|
59
|
+
def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
60
|
+
list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
61
|
+
end
|
62
|
+
|
63
|
+
#
|
64
|
+
# Lists all of the existing custom domains within an endpoint.
|
65
|
+
#
|
66
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
67
|
+
# Azure subscription.
|
68
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
69
|
+
# the resource group.
|
70
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
71
|
+
# unique globally.
|
72
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
73
|
+
# to the HTTP request.
|
74
|
+
#
|
75
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
76
|
+
#
|
77
|
+
def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
78
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
79
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
80
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
81
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
82
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
83
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
84
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
85
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
86
|
+
|
87
|
+
|
88
|
+
request_headers = {}
|
89
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
90
|
+
|
91
|
+
# Set Headers
|
92
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
93
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
94
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains'
|
95
|
+
|
96
|
+
request_url = @base_url || @client.base_url
|
97
|
+
|
98
|
+
options = {
|
99
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
100
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'subscriptionId' => @client.subscription_id},
|
101
|
+
query_params: {'api-version' => @client.api_version},
|
102
|
+
headers: request_headers.merge(custom_headers || {}),
|
103
|
+
base_url: request_url
|
104
|
+
}
|
105
|
+
promise = @client.make_request_async(:get, path_template, options)
|
106
|
+
|
107
|
+
promise = promise.then do |result|
|
108
|
+
http_response = result.response
|
109
|
+
status_code = http_response.status
|
110
|
+
response_content = http_response.body
|
111
|
+
unless status_code == 200
|
112
|
+
error_model = JSON.load(response_content)
|
113
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
114
|
+
end
|
115
|
+
|
116
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
117
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
118
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
119
|
+
# Deserialize Response
|
120
|
+
if status_code == 200
|
121
|
+
begin
|
122
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
123
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult.mapper()
|
124
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
125
|
+
rescue Exception => e
|
126
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
result
|
131
|
+
end
|
132
|
+
|
133
|
+
promise.execute
|
134
|
+
end
|
135
|
+
|
136
|
+
#
|
137
|
+
# Gets an existing custom domain within an endpoint.
|
138
|
+
#
|
139
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
140
|
+
# Azure subscription.
|
141
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
142
|
+
# the resource group.
|
143
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
144
|
+
# unique globally.
|
145
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
146
|
+
# endpoint.
|
147
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
148
|
+
# will be added to the HTTP request.
|
149
|
+
#
|
150
|
+
# @return [CustomDomain] operation results.
|
151
|
+
#
|
152
|
+
def get(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
153
|
+
response = get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
154
|
+
response.body unless response.nil?
|
155
|
+
end
|
156
|
+
|
157
|
+
#
|
158
|
+
# Gets an existing custom domain within an endpoint.
|
159
|
+
#
|
160
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
161
|
+
# Azure subscription.
|
162
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
163
|
+
# the resource group.
|
164
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
165
|
+
# unique globally.
|
166
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
167
|
+
# endpoint.
|
168
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
169
|
+
# will be added to the HTTP request.
|
170
|
+
#
|
171
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
172
|
+
#
|
173
|
+
def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
174
|
+
get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
175
|
+
end
|
176
|
+
|
177
|
+
#
|
178
|
+
# Gets an existing custom domain within an endpoint.
|
179
|
+
#
|
180
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
181
|
+
# Azure subscription.
|
182
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
183
|
+
# the resource group.
|
184
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
185
|
+
# unique globally.
|
186
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
187
|
+
# endpoint.
|
188
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
189
|
+
# to the HTTP request.
|
190
|
+
#
|
191
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
192
|
+
#
|
193
|
+
def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
194
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
195
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
196
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
197
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
198
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
199
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
200
|
+
fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
|
201
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
202
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
203
|
+
|
204
|
+
|
205
|
+
request_headers = {}
|
206
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
207
|
+
|
208
|
+
# Set Headers
|
209
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
210
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
211
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}'
|
212
|
+
|
213
|
+
request_url = @base_url || @client.base_url
|
214
|
+
|
215
|
+
options = {
|
216
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
217
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'customDomainName' => custom_domain_name,'subscriptionId' => @client.subscription_id},
|
218
|
+
query_params: {'api-version' => @client.api_version},
|
219
|
+
headers: request_headers.merge(custom_headers || {}),
|
220
|
+
base_url: request_url
|
221
|
+
}
|
222
|
+
promise = @client.make_request_async(:get, path_template, options)
|
223
|
+
|
224
|
+
promise = promise.then do |result|
|
225
|
+
http_response = result.response
|
226
|
+
status_code = http_response.status
|
227
|
+
response_content = http_response.body
|
228
|
+
unless status_code == 200
|
229
|
+
error_model = JSON.load(response_content)
|
230
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
231
|
+
end
|
232
|
+
|
233
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
234
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
235
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
236
|
+
# Deserialize Response
|
237
|
+
if status_code == 200
|
238
|
+
begin
|
239
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
240
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain.mapper()
|
241
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
242
|
+
rescue Exception => e
|
243
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
result
|
248
|
+
end
|
249
|
+
|
250
|
+
promise.execute
|
251
|
+
end
|
252
|
+
|
253
|
+
#
|
254
|
+
# Creates a new custom domain within an endpoint.
|
255
|
+
#
|
256
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
257
|
+
# Azure subscription.
|
258
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
259
|
+
# the resource group.
|
260
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
261
|
+
# unique globally.
|
262
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
263
|
+
# endpoint.
|
264
|
+
# @param custom_domain_properties [CustomDomainParameters] Properties required
|
265
|
+
# to create a new custom domain.
|
266
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
267
|
+
# will be added to the HTTP request.
|
268
|
+
#
|
269
|
+
# @return [CustomDomain] operation results.
|
270
|
+
#
|
271
|
+
def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil)
|
272
|
+
response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value!
|
273
|
+
response.body unless response.nil?
|
274
|
+
end
|
275
|
+
|
276
|
+
#
|
277
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
278
|
+
# Azure subscription.
|
279
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
280
|
+
# the resource group.
|
281
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
282
|
+
# unique globally.
|
283
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
284
|
+
# endpoint.
|
285
|
+
# @param custom_domain_properties [CustomDomainParameters] Properties required
|
286
|
+
# to create a new custom domain.
|
287
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
288
|
+
# will be added to the HTTP request.
|
289
|
+
#
|
290
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
291
|
+
# response.
|
292
|
+
#
|
293
|
+
def create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil)
|
294
|
+
# Send request
|
295
|
+
promise = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers)
|
296
|
+
|
297
|
+
promise = promise.then do |response|
|
298
|
+
# Defining deserialization method.
|
299
|
+
deserialize_method = lambda do |parsed_response|
|
300
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain.mapper()
|
301
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
302
|
+
end
|
303
|
+
|
304
|
+
# Waiting for response.
|
305
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
306
|
+
end
|
307
|
+
|
308
|
+
promise
|
309
|
+
end
|
310
|
+
|
311
|
+
#
|
312
|
+
# Deletes an existing custom domain within an endpoint.
|
313
|
+
#
|
314
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
315
|
+
# Azure subscription.
|
316
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
317
|
+
# the resource group.
|
318
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
319
|
+
# unique globally.
|
320
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
321
|
+
# endpoint.
|
322
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
323
|
+
# will be added to the HTTP request.
|
324
|
+
#
|
325
|
+
# @return [CustomDomain] operation results.
|
326
|
+
#
|
327
|
+
def delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
328
|
+
response = delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
329
|
+
response.body unless response.nil?
|
330
|
+
end
|
331
|
+
|
332
|
+
#
|
333
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
334
|
+
# Azure subscription.
|
335
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
336
|
+
# the resource group.
|
337
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
338
|
+
# unique globally.
|
339
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
340
|
+
# endpoint.
|
341
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
342
|
+
# will be added to the HTTP request.
|
343
|
+
#
|
344
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
345
|
+
# response.
|
346
|
+
#
|
347
|
+
def delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
348
|
+
# Send request
|
349
|
+
promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers)
|
350
|
+
|
351
|
+
promise = promise.then do |response|
|
352
|
+
# Defining deserialization method.
|
353
|
+
deserialize_method = lambda do |parsed_response|
|
354
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain.mapper()
|
355
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
356
|
+
end
|
357
|
+
|
358
|
+
# Waiting for response.
|
359
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
360
|
+
end
|
361
|
+
|
362
|
+
promise
|
363
|
+
end
|
364
|
+
|
365
|
+
#
|
366
|
+
# Disable https delivery of the custom domain.
|
367
|
+
#
|
368
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
369
|
+
# Azure subscription.
|
370
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
371
|
+
# the resource group.
|
372
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
373
|
+
# unique globally.
|
374
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
375
|
+
# endpoint.
|
376
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
377
|
+
# will be added to the HTTP request.
|
378
|
+
#
|
379
|
+
# @return [CustomDomain] operation results.
|
380
|
+
#
|
381
|
+
def disable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
382
|
+
response = disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
383
|
+
response.body unless response.nil?
|
384
|
+
end
|
385
|
+
|
386
|
+
#
|
387
|
+
# Disable https delivery of the custom domain.
|
388
|
+
#
|
389
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
390
|
+
# Azure subscription.
|
391
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
392
|
+
# the resource group.
|
393
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
394
|
+
# unique globally.
|
395
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
396
|
+
# endpoint.
|
397
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
398
|
+
# will be added to the HTTP request.
|
399
|
+
#
|
400
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
401
|
+
#
|
402
|
+
def disable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
403
|
+
disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
404
|
+
end
|
405
|
+
|
406
|
+
#
|
407
|
+
# Disable https delivery of the custom domain.
|
408
|
+
#
|
409
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
410
|
+
# Azure subscription.
|
411
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
412
|
+
# the resource group.
|
413
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
414
|
+
# unique globally.
|
415
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
416
|
+
# endpoint.
|
417
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
418
|
+
# to the HTTP request.
|
419
|
+
#
|
420
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
421
|
+
#
|
422
|
+
def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
423
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
424
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
425
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
426
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
427
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
428
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
429
|
+
fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
|
430
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
431
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
432
|
+
|
433
|
+
|
434
|
+
request_headers = {}
|
435
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
436
|
+
|
437
|
+
# Set Headers
|
438
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
439
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
440
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}/disableCustomHttps'
|
441
|
+
|
442
|
+
request_url = @base_url || @client.base_url
|
443
|
+
|
444
|
+
options = {
|
445
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
446
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'customDomainName' => custom_domain_name,'subscriptionId' => @client.subscription_id},
|
447
|
+
query_params: {'api-version' => @client.api_version},
|
448
|
+
headers: request_headers.merge(custom_headers || {}),
|
449
|
+
base_url: request_url
|
450
|
+
}
|
451
|
+
promise = @client.make_request_async(:post, path_template, options)
|
452
|
+
|
453
|
+
promise = promise.then do |result|
|
454
|
+
http_response = result.response
|
455
|
+
status_code = http_response.status
|
456
|
+
response_content = http_response.body
|
457
|
+
unless status_code == 200 || status_code == 202
|
458
|
+
error_model = JSON.load(response_content)
|
459
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
460
|
+
end
|
461
|
+
|
462
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
463
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
464
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
465
|
+
# Deserialize Response
|
466
|
+
if status_code == 202
|
467
|
+
begin
|
468
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
469
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain.mapper()
|
470
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
471
|
+
rescue Exception => e
|
472
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
476
|
+
result
|
477
|
+
end
|
478
|
+
|
479
|
+
promise.execute
|
480
|
+
end
|
481
|
+
|
482
|
+
#
|
483
|
+
# Enable https delivery of the custom domain.
|
484
|
+
#
|
485
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
486
|
+
# Azure subscription.
|
487
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
488
|
+
# the resource group.
|
489
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
490
|
+
# unique globally.
|
491
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
492
|
+
# endpoint.
|
493
|
+
# @param custom_domain_https_parameters [CustomDomainHttpsParameters] The
|
494
|
+
# configuration specifying how to enable HTTPS for the custom domain - using
|
495
|
+
# CDN managed certificate or user's own certificate. If not specified, enabling
|
496
|
+
# ssl uses CDN managed certificate by default.
|
497
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
498
|
+
# will be added to the HTTP request.
|
499
|
+
#
|
500
|
+
# @return [CustomDomain] operation results.
|
501
|
+
#
|
502
|
+
def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_https_parameters:nil, custom_headers:nil)
|
503
|
+
response = enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_https_parameters:custom_domain_https_parameters, custom_headers:custom_headers).value!
|
504
|
+
response.body unless response.nil?
|
505
|
+
end
|
506
|
+
|
507
|
+
#
|
508
|
+
# Enable https delivery of the custom domain.
|
509
|
+
#
|
510
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
511
|
+
# Azure subscription.
|
512
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
513
|
+
# the resource group.
|
514
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
515
|
+
# unique globally.
|
516
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
517
|
+
# endpoint.
|
518
|
+
# @param custom_domain_https_parameters [CustomDomainHttpsParameters] The
|
519
|
+
# configuration specifying how to enable HTTPS for the custom domain - using
|
520
|
+
# CDN managed certificate or user's own certificate. If not specified, enabling
|
521
|
+
# ssl uses CDN managed certificate by default.
|
522
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
523
|
+
# will be added to the HTTP request.
|
524
|
+
#
|
525
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
526
|
+
#
|
527
|
+
def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_https_parameters:nil, custom_headers:nil)
|
528
|
+
enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_https_parameters:custom_domain_https_parameters, custom_headers:custom_headers).value!
|
529
|
+
end
|
530
|
+
|
531
|
+
#
|
532
|
+
# Enable https delivery of the custom domain.
|
533
|
+
#
|
534
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
535
|
+
# Azure subscription.
|
536
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
537
|
+
# the resource group.
|
538
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
539
|
+
# unique globally.
|
540
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
541
|
+
# endpoint.
|
542
|
+
# @param custom_domain_https_parameters [CustomDomainHttpsParameters] The
|
543
|
+
# configuration specifying how to enable HTTPS for the custom domain - using
|
544
|
+
# CDN managed certificate or user's own certificate. If not specified, enabling
|
545
|
+
# ssl uses CDN managed certificate by default.
|
546
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
547
|
+
# to the HTTP request.
|
548
|
+
#
|
549
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
550
|
+
#
|
551
|
+
def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_https_parameters:nil, custom_headers:nil)
|
552
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
553
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
554
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
555
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
556
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
557
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
558
|
+
fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
|
559
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
560
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
561
|
+
|
562
|
+
|
563
|
+
request_headers = {}
|
564
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
565
|
+
|
566
|
+
# Set Headers
|
567
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
568
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
569
|
+
|
570
|
+
# Serialize Request
|
571
|
+
request_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainHttpsParameters.mapper()
|
572
|
+
request_content = @client.serialize(request_mapper, custom_domain_https_parameters)
|
573
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
574
|
+
|
575
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}/enableCustomHttps'
|
576
|
+
|
577
|
+
request_url = @base_url || @client.base_url
|
578
|
+
|
579
|
+
options = {
|
580
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
581
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'customDomainName' => custom_domain_name,'subscriptionId' => @client.subscription_id},
|
582
|
+
query_params: {'api-version' => @client.api_version},
|
583
|
+
body: request_content,
|
584
|
+
headers: request_headers.merge(custom_headers || {}),
|
585
|
+
base_url: request_url
|
586
|
+
}
|
587
|
+
promise = @client.make_request_async(:post, path_template, options)
|
588
|
+
|
589
|
+
promise = promise.then do |result|
|
590
|
+
http_response = result.response
|
591
|
+
status_code = http_response.status
|
592
|
+
response_content = http_response.body
|
593
|
+
unless status_code == 200 || status_code == 202
|
594
|
+
error_model = JSON.load(response_content)
|
595
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
596
|
+
end
|
597
|
+
|
598
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
599
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
600
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
601
|
+
# Deserialize Response
|
602
|
+
if status_code == 202
|
603
|
+
begin
|
604
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
605
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain.mapper()
|
606
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
607
|
+
rescue Exception => e
|
608
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
609
|
+
end
|
610
|
+
end
|
611
|
+
|
612
|
+
result
|
613
|
+
end
|
614
|
+
|
615
|
+
promise.execute
|
616
|
+
end
|
617
|
+
|
618
|
+
#
|
619
|
+
# Creates a new custom domain within an endpoint.
|
620
|
+
#
|
621
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
622
|
+
# Azure subscription.
|
623
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
624
|
+
# the resource group.
|
625
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
626
|
+
# unique globally.
|
627
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
628
|
+
# endpoint.
|
629
|
+
# @param custom_domain_properties [CustomDomainParameters] Properties required
|
630
|
+
# to create a new custom domain.
|
631
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
632
|
+
# will be added to the HTTP request.
|
633
|
+
#
|
634
|
+
# @return [CustomDomain] operation results.
|
635
|
+
#
|
636
|
+
def begin_create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil)
|
637
|
+
response = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value!
|
638
|
+
response.body unless response.nil?
|
639
|
+
end
|
640
|
+
|
641
|
+
#
|
642
|
+
# Creates a new custom domain within an endpoint.
|
643
|
+
#
|
644
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
645
|
+
# Azure subscription.
|
646
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
647
|
+
# the resource group.
|
648
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
649
|
+
# unique globally.
|
650
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
651
|
+
# endpoint.
|
652
|
+
# @param custom_domain_properties [CustomDomainParameters] Properties required
|
653
|
+
# to create a new custom domain.
|
654
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
655
|
+
# will be added to the HTTP request.
|
656
|
+
#
|
657
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
658
|
+
#
|
659
|
+
def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil)
|
660
|
+
begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value!
|
661
|
+
end
|
662
|
+
|
663
|
+
#
|
664
|
+
# Creates a new custom domain within an endpoint.
|
665
|
+
#
|
666
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
667
|
+
# Azure subscription.
|
668
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
669
|
+
# the resource group.
|
670
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
671
|
+
# unique globally.
|
672
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
673
|
+
# endpoint.
|
674
|
+
# @param custom_domain_properties [CustomDomainParameters] Properties required
|
675
|
+
# to create a new custom domain.
|
676
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
677
|
+
# to the HTTP request.
|
678
|
+
#
|
679
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
680
|
+
#
|
681
|
+
def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil)
|
682
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
683
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
684
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
685
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
686
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
687
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
688
|
+
fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
|
689
|
+
fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil?
|
690
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
691
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
692
|
+
|
693
|
+
|
694
|
+
request_headers = {}
|
695
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
696
|
+
|
697
|
+
# Set Headers
|
698
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
699
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
700
|
+
|
701
|
+
# Serialize Request
|
702
|
+
request_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainParameters.mapper()
|
703
|
+
request_content = @client.serialize(request_mapper, custom_domain_properties)
|
704
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
705
|
+
|
706
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}'
|
707
|
+
|
708
|
+
request_url = @base_url || @client.base_url
|
709
|
+
|
710
|
+
options = {
|
711
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
712
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'customDomainName' => custom_domain_name,'subscriptionId' => @client.subscription_id},
|
713
|
+
query_params: {'api-version' => @client.api_version},
|
714
|
+
body: request_content,
|
715
|
+
headers: request_headers.merge(custom_headers || {}),
|
716
|
+
base_url: request_url
|
717
|
+
}
|
718
|
+
promise = @client.make_request_async(:put, path_template, options)
|
719
|
+
|
720
|
+
promise = promise.then do |result|
|
721
|
+
http_response = result.response
|
722
|
+
status_code = http_response.status
|
723
|
+
response_content = http_response.body
|
724
|
+
unless status_code == 200 || status_code == 201 || status_code == 202
|
725
|
+
error_model = JSON.load(response_content)
|
726
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
727
|
+
end
|
728
|
+
|
729
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
730
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
731
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
732
|
+
# Deserialize Response
|
733
|
+
if status_code == 200
|
734
|
+
begin
|
735
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
736
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain.mapper()
|
737
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
738
|
+
rescue Exception => e
|
739
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
740
|
+
end
|
741
|
+
end
|
742
|
+
# Deserialize Response
|
743
|
+
if status_code == 201
|
744
|
+
begin
|
745
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
746
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain.mapper()
|
747
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
748
|
+
rescue Exception => e
|
749
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
750
|
+
end
|
751
|
+
end
|
752
|
+
# Deserialize Response
|
753
|
+
if status_code == 202
|
754
|
+
begin
|
755
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
756
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain.mapper()
|
757
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
758
|
+
rescue Exception => e
|
759
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
760
|
+
end
|
761
|
+
end
|
762
|
+
|
763
|
+
result
|
764
|
+
end
|
765
|
+
|
766
|
+
promise.execute
|
767
|
+
end
|
768
|
+
|
769
|
+
#
|
770
|
+
# Deletes an existing custom domain within an endpoint.
|
771
|
+
#
|
772
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
773
|
+
# Azure subscription.
|
774
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
775
|
+
# the resource group.
|
776
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
777
|
+
# unique globally.
|
778
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
779
|
+
# endpoint.
|
780
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
781
|
+
# will be added to the HTTP request.
|
782
|
+
#
|
783
|
+
# @return [CustomDomain] operation results.
|
784
|
+
#
|
785
|
+
def begin_delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
786
|
+
response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
787
|
+
response.body unless response.nil?
|
788
|
+
end
|
789
|
+
|
790
|
+
#
|
791
|
+
# Deletes an existing custom domain within an endpoint.
|
792
|
+
#
|
793
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
794
|
+
# Azure subscription.
|
795
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
796
|
+
# the resource group.
|
797
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
798
|
+
# unique globally.
|
799
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
800
|
+
# endpoint.
|
801
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
802
|
+
# will be added to the HTTP request.
|
803
|
+
#
|
804
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
805
|
+
#
|
806
|
+
def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
807
|
+
begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
808
|
+
end
|
809
|
+
|
810
|
+
#
|
811
|
+
# Deletes an existing custom domain within an endpoint.
|
812
|
+
#
|
813
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
814
|
+
# Azure subscription.
|
815
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
816
|
+
# the resource group.
|
817
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
818
|
+
# unique globally.
|
819
|
+
# @param custom_domain_name [String] Name of the custom domain within an
|
820
|
+
# endpoint.
|
821
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
822
|
+
# to the HTTP request.
|
823
|
+
#
|
824
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
825
|
+
#
|
826
|
+
def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
827
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
828
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
829
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
830
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
831
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
832
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
833
|
+
fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
|
834
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
835
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
836
|
+
|
837
|
+
|
838
|
+
request_headers = {}
|
839
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
840
|
+
|
841
|
+
# Set Headers
|
842
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
843
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
844
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}'
|
845
|
+
|
846
|
+
request_url = @base_url || @client.base_url
|
847
|
+
|
848
|
+
options = {
|
849
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
850
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'customDomainName' => custom_domain_name,'subscriptionId' => @client.subscription_id},
|
851
|
+
query_params: {'api-version' => @client.api_version},
|
852
|
+
headers: request_headers.merge(custom_headers || {}),
|
853
|
+
base_url: request_url
|
854
|
+
}
|
855
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
856
|
+
|
857
|
+
promise = promise.then do |result|
|
858
|
+
http_response = result.response
|
859
|
+
status_code = http_response.status
|
860
|
+
response_content = http_response.body
|
861
|
+
unless status_code == 200 || status_code == 202 || status_code == 204
|
862
|
+
error_model = JSON.load(response_content)
|
863
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
864
|
+
end
|
865
|
+
|
866
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
867
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
868
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
869
|
+
# Deserialize Response
|
870
|
+
if status_code == 202
|
871
|
+
begin
|
872
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
873
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain.mapper()
|
874
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
875
|
+
rescue Exception => e
|
876
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
877
|
+
end
|
878
|
+
end
|
879
|
+
|
880
|
+
result
|
881
|
+
end
|
882
|
+
|
883
|
+
promise.execute
|
884
|
+
end
|
885
|
+
|
886
|
+
#
|
887
|
+
# Lists all of the existing custom domains within an endpoint.
|
888
|
+
#
|
889
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
890
|
+
# to List operation.
|
891
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
892
|
+
# will be added to the HTTP request.
|
893
|
+
#
|
894
|
+
# @return [CustomDomainListResult] operation results.
|
895
|
+
#
|
896
|
+
def list_by_endpoint_next(next_page_link, custom_headers:nil)
|
897
|
+
response = list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value!
|
898
|
+
response.body unless response.nil?
|
899
|
+
end
|
900
|
+
|
901
|
+
#
|
902
|
+
# Lists all of the existing custom domains within an endpoint.
|
903
|
+
#
|
904
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
905
|
+
# to List operation.
|
906
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
907
|
+
# will be added to the HTTP request.
|
908
|
+
#
|
909
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
910
|
+
#
|
911
|
+
def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil)
|
912
|
+
list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value!
|
913
|
+
end
|
914
|
+
|
915
|
+
#
|
916
|
+
# Lists all of the existing custom domains within an endpoint.
|
917
|
+
#
|
918
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
919
|
+
# to List operation.
|
920
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
921
|
+
# to the HTTP request.
|
922
|
+
#
|
923
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
924
|
+
#
|
925
|
+
def list_by_endpoint_next_async(next_page_link, custom_headers:nil)
|
926
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
927
|
+
|
928
|
+
|
929
|
+
request_headers = {}
|
930
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
931
|
+
|
932
|
+
# Set Headers
|
933
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
934
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
935
|
+
path_template = '{nextLink}'
|
936
|
+
|
937
|
+
request_url = @base_url || @client.base_url
|
938
|
+
|
939
|
+
options = {
|
940
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
941
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
942
|
+
headers: request_headers.merge(custom_headers || {}),
|
943
|
+
base_url: request_url
|
944
|
+
}
|
945
|
+
promise = @client.make_request_async(:get, path_template, options)
|
946
|
+
|
947
|
+
promise = promise.then do |result|
|
948
|
+
http_response = result.response
|
949
|
+
status_code = http_response.status
|
950
|
+
response_content = http_response.body
|
951
|
+
unless status_code == 200
|
952
|
+
error_model = JSON.load(response_content)
|
953
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
954
|
+
end
|
955
|
+
|
956
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
957
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
958
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
959
|
+
# Deserialize Response
|
960
|
+
if status_code == 200
|
961
|
+
begin
|
962
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
963
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult.mapper()
|
964
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
965
|
+
rescue Exception => e
|
966
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
967
|
+
end
|
968
|
+
end
|
969
|
+
|
970
|
+
result
|
971
|
+
end
|
972
|
+
|
973
|
+
promise.execute
|
974
|
+
end
|
975
|
+
|
976
|
+
#
|
977
|
+
# Lists all of the existing custom domains within an endpoint.
|
978
|
+
#
|
979
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
980
|
+
# Azure subscription.
|
981
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
982
|
+
# the resource group.
|
983
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
984
|
+
# unique globally.
|
985
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
986
|
+
# will be added to the HTTP request.
|
987
|
+
#
|
988
|
+
# @return [CustomDomainListResult] which provide lazy access to pages of the
|
989
|
+
# response.
|
990
|
+
#
|
991
|
+
def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
992
|
+
response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
993
|
+
unless response.nil?
|
994
|
+
page = response.body
|
995
|
+
page.next_method = Proc.new do |next_page_link|
|
996
|
+
list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers)
|
997
|
+
end
|
998
|
+
page
|
999
|
+
end
|
1000
|
+
end
|
1001
|
+
|
1002
|
+
end
|
1003
|
+
end
|