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,564 @@
|
|
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 Origins
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
#
|
16
|
+
# Creates and initializes a new instance of the Origins 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 origins 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<Origin>] 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 origins 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 origins 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}/origins'
|
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::OriginListResult.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 origin 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 origin_name [String] Name of the origin which is unique within the
|
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 [Origin] operation results.
|
151
|
+
#
|
152
|
+
def get(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil)
|
153
|
+
response = get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:custom_headers).value!
|
154
|
+
response.body unless response.nil?
|
155
|
+
end
|
156
|
+
|
157
|
+
#
|
158
|
+
# Gets an existing origin 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 origin_name [String] Name of the origin which is unique within the
|
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, origin_name, custom_headers:nil)
|
174
|
+
get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:custom_headers).value!
|
175
|
+
end
|
176
|
+
|
177
|
+
#
|
178
|
+
# Gets an existing origin 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 origin_name [String] Name of the origin which is unique within the
|
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, origin_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, 'origin_name is nil' if origin_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}/origins/{originName}'
|
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,'originName' => origin_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::Origin.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
|
+
# Updates an existing origin 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 origin_name [String] Name of the origin which is unique within the
|
263
|
+
# endpoint.
|
264
|
+
# @param origin_update_properties [OriginUpdateParameters] Origin properties
|
265
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
266
|
+
# will be added to the HTTP request.
|
267
|
+
#
|
268
|
+
# @return [Origin] operation results.
|
269
|
+
#
|
270
|
+
def update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil)
|
271
|
+
response = update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value!
|
272
|
+
response.body unless response.nil?
|
273
|
+
end
|
274
|
+
|
275
|
+
#
|
276
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
277
|
+
# Azure subscription.
|
278
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
279
|
+
# the resource group.
|
280
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
281
|
+
# unique globally.
|
282
|
+
# @param origin_name [String] Name of the origin which is unique within the
|
283
|
+
# endpoint.
|
284
|
+
# @param origin_update_properties [OriginUpdateParameters] Origin properties
|
285
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
286
|
+
# will be added to the HTTP request.
|
287
|
+
#
|
288
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
289
|
+
# response.
|
290
|
+
#
|
291
|
+
def update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil)
|
292
|
+
# Send request
|
293
|
+
promise = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers)
|
294
|
+
|
295
|
+
promise = promise.then do |response|
|
296
|
+
# Defining deserialization method.
|
297
|
+
deserialize_method = lambda do |parsed_response|
|
298
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::Origin.mapper()
|
299
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
300
|
+
end
|
301
|
+
|
302
|
+
# Waiting for response.
|
303
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
304
|
+
end
|
305
|
+
|
306
|
+
promise
|
307
|
+
end
|
308
|
+
|
309
|
+
#
|
310
|
+
# Updates an existing origin within an endpoint.
|
311
|
+
#
|
312
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
313
|
+
# Azure subscription.
|
314
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
315
|
+
# the resource group.
|
316
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
317
|
+
# unique globally.
|
318
|
+
# @param origin_name [String] Name of the origin which is unique within the
|
319
|
+
# endpoint.
|
320
|
+
# @param origin_update_properties [OriginUpdateParameters] Origin properties
|
321
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
322
|
+
# will be added to the HTTP request.
|
323
|
+
#
|
324
|
+
# @return [Origin] operation results.
|
325
|
+
#
|
326
|
+
def begin_update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil)
|
327
|
+
response = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value!
|
328
|
+
response.body unless response.nil?
|
329
|
+
end
|
330
|
+
|
331
|
+
#
|
332
|
+
# Updates an existing origin within an endpoint.
|
333
|
+
#
|
334
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
335
|
+
# Azure subscription.
|
336
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
337
|
+
# the resource group.
|
338
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
339
|
+
# unique globally.
|
340
|
+
# @param origin_name [String] Name of the origin which is unique within the
|
341
|
+
# endpoint.
|
342
|
+
# @param origin_update_properties [OriginUpdateParameters] Origin properties
|
343
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
344
|
+
# will be added to the HTTP request.
|
345
|
+
#
|
346
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
347
|
+
#
|
348
|
+
def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil)
|
349
|
+
begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value!
|
350
|
+
end
|
351
|
+
|
352
|
+
#
|
353
|
+
# Updates an existing origin within an endpoint.
|
354
|
+
#
|
355
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
356
|
+
# Azure subscription.
|
357
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
358
|
+
# the resource group.
|
359
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
360
|
+
# unique globally.
|
361
|
+
# @param origin_name [String] Name of the origin which is unique within the
|
362
|
+
# endpoint.
|
363
|
+
# @param origin_update_properties [OriginUpdateParameters] Origin properties
|
364
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
365
|
+
# to the HTTP request.
|
366
|
+
#
|
367
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
368
|
+
#
|
369
|
+
def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil)
|
370
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
371
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
372
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
373
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
374
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
375
|
+
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
376
|
+
fail ArgumentError, 'origin_name is nil' if origin_name.nil?
|
377
|
+
fail ArgumentError, 'origin_update_properties is nil' if origin_update_properties.nil?
|
378
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
379
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
380
|
+
|
381
|
+
|
382
|
+
request_headers = {}
|
383
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
384
|
+
|
385
|
+
# Set Headers
|
386
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
387
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
388
|
+
|
389
|
+
# Serialize Request
|
390
|
+
request_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::OriginUpdateParameters.mapper()
|
391
|
+
request_content = @client.serialize(request_mapper, origin_update_properties)
|
392
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
393
|
+
|
394
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}'
|
395
|
+
|
396
|
+
request_url = @base_url || @client.base_url
|
397
|
+
|
398
|
+
options = {
|
399
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
400
|
+
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'originName' => origin_name,'subscriptionId' => @client.subscription_id},
|
401
|
+
query_params: {'api-version' => @client.api_version},
|
402
|
+
body: request_content,
|
403
|
+
headers: request_headers.merge(custom_headers || {}),
|
404
|
+
base_url: request_url
|
405
|
+
}
|
406
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
407
|
+
|
408
|
+
promise = promise.then do |result|
|
409
|
+
http_response = result.response
|
410
|
+
status_code = http_response.status
|
411
|
+
response_content = http_response.body
|
412
|
+
unless status_code == 200 || status_code == 202
|
413
|
+
error_model = JSON.load(response_content)
|
414
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
415
|
+
end
|
416
|
+
|
417
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
418
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
419
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
420
|
+
# Deserialize Response
|
421
|
+
if status_code == 200
|
422
|
+
begin
|
423
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
424
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::Origin.mapper()
|
425
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
426
|
+
rescue Exception => e
|
427
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
428
|
+
end
|
429
|
+
end
|
430
|
+
# Deserialize Response
|
431
|
+
if status_code == 202
|
432
|
+
begin
|
433
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
434
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::Origin.mapper()
|
435
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
436
|
+
rescue Exception => e
|
437
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
438
|
+
end
|
439
|
+
end
|
440
|
+
|
441
|
+
result
|
442
|
+
end
|
443
|
+
|
444
|
+
promise.execute
|
445
|
+
end
|
446
|
+
|
447
|
+
#
|
448
|
+
# Lists all of the existing origins within an endpoint.
|
449
|
+
#
|
450
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
451
|
+
# to List operation.
|
452
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
453
|
+
# will be added to the HTTP request.
|
454
|
+
#
|
455
|
+
# @return [OriginListResult] operation results.
|
456
|
+
#
|
457
|
+
def list_by_endpoint_next(next_page_link, custom_headers:nil)
|
458
|
+
response = list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value!
|
459
|
+
response.body unless response.nil?
|
460
|
+
end
|
461
|
+
|
462
|
+
#
|
463
|
+
# Lists all of the existing origins within an endpoint.
|
464
|
+
#
|
465
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
466
|
+
# to List operation.
|
467
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
468
|
+
# will be added to the HTTP request.
|
469
|
+
#
|
470
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
471
|
+
#
|
472
|
+
def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil)
|
473
|
+
list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value!
|
474
|
+
end
|
475
|
+
|
476
|
+
#
|
477
|
+
# Lists all of the existing origins within an endpoint.
|
478
|
+
#
|
479
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
480
|
+
# to List operation.
|
481
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
482
|
+
# to the HTTP request.
|
483
|
+
#
|
484
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
485
|
+
#
|
486
|
+
def list_by_endpoint_next_async(next_page_link, custom_headers:nil)
|
487
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
488
|
+
|
489
|
+
|
490
|
+
request_headers = {}
|
491
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
492
|
+
|
493
|
+
# Set Headers
|
494
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
495
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
496
|
+
path_template = '{nextLink}'
|
497
|
+
|
498
|
+
request_url = @base_url || @client.base_url
|
499
|
+
|
500
|
+
options = {
|
501
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
502
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
503
|
+
headers: request_headers.merge(custom_headers || {}),
|
504
|
+
base_url: request_url
|
505
|
+
}
|
506
|
+
promise = @client.make_request_async(:get, path_template, options)
|
507
|
+
|
508
|
+
promise = promise.then do |result|
|
509
|
+
http_response = result.response
|
510
|
+
status_code = http_response.status
|
511
|
+
response_content = http_response.body
|
512
|
+
unless status_code == 200
|
513
|
+
error_model = JSON.load(response_content)
|
514
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
515
|
+
end
|
516
|
+
|
517
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
518
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
519
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
520
|
+
# Deserialize Response
|
521
|
+
if status_code == 200
|
522
|
+
begin
|
523
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
524
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::OriginListResult.mapper()
|
525
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
526
|
+
rescue Exception => e
|
527
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
528
|
+
end
|
529
|
+
end
|
530
|
+
|
531
|
+
result
|
532
|
+
end
|
533
|
+
|
534
|
+
promise.execute
|
535
|
+
end
|
536
|
+
|
537
|
+
#
|
538
|
+
# Lists all of the existing origins within an endpoint.
|
539
|
+
#
|
540
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
541
|
+
# Azure subscription.
|
542
|
+
# @param profile_name [String] Name of the CDN profile which is unique within
|
543
|
+
# the resource group.
|
544
|
+
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
545
|
+
# unique globally.
|
546
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
547
|
+
# will be added to the HTTP request.
|
548
|
+
#
|
549
|
+
# @return [OriginListResult] which provide lazy access to pages of the
|
550
|
+
# response.
|
551
|
+
#
|
552
|
+
def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
553
|
+
response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
554
|
+
unless response.nil?
|
555
|
+
page = response.body
|
556
|
+
page.next_method = Proc.new do |next_page_link|
|
557
|
+
list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers)
|
558
|
+
end
|
559
|
+
page
|
560
|
+
end
|
561
|
+
end
|
562
|
+
|
563
|
+
end
|
564
|
+
end
|