azure_mgmt_cdn 0.17.7 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (291) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-01/generated/azure_mgmt_cdn/cdn_management_client.rb +1 -1
  3. data/lib/2016-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +1 -1
  4. data/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb +1 -1
  5. data/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +1 -1
  6. data/lib/2017-10-12/generated/azure_mgmt_cdn/cdn_management_client.rb +1 -1
  7. data/lib/2020-04-15/generated/azure_mgmt_cdn/cdn_management_client.rb +1 -1
  8. data/lib/2020-09-01/generated/azure_mgmt_cdn.rb +304 -0
  9. data/lib/2020-09-01/generated/azure_mgmt_cdn/afdcustom_domains.rb +1035 -0
  10. data/lib/2020-09-01/generated/azure_mgmt_cdn/afdendpoints.rb +1426 -0
  11. data/lib/2020-09-01/generated/azure_mgmt_cdn/afdorigin_groups.rb +1094 -0
  12. data/lib/2020-09-01/generated/azure_mgmt_cdn/afdorigins.rb +912 -0
  13. data/lib/2020-09-01/generated/azure_mgmt_cdn/afdprofiles.rb +362 -0
  14. data/lib/2020-09-01/generated/azure_mgmt_cdn/cdn_management_client.rb +533 -0
  15. data/lib/2020-09-01/generated/azure_mgmt_cdn/custom_domains.rb +1001 -0
  16. data/lib/2020-09-01/generated/azure_mgmt_cdn/edge_nodes.rb +225 -0
  17. data/lib/2020-09-01/generated/azure_mgmt_cdn/endpoints.rb +1946 -0
  18. data/lib/2020-09-01/generated/azure_mgmt_cdn/log_analytics.rb +748 -0
  19. data/lib/2020-09-01/generated/azure_mgmt_cdn/managed_rule_sets.rb +221 -0
  20. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/action_type.rb +18 -0
  21. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afd_certificate_type.rb +16 -0
  22. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afd_error_response.rb +51 -0
  23. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afd_minimum_tls_version.rb +16 -0
  24. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afd_provisioning_state.rb +19 -0
  25. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afd_purge_parameters.rb +74 -0
  26. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afddomain.rb +166 -0
  27. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afddomain_https_parameters.rb +73 -0
  28. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afddomain_list_result.rb +102 -0
  29. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afddomain_update_parameters.rb +62 -0
  30. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdendpoint.rb +166 -0
  31. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdendpoint_list_result.rb +102 -0
  32. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdendpoint_protocols.rb +16 -0
  33. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdendpoint_update_parameters.rb +82 -0
  34. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin.rb +232 -0
  35. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_group.rb +169 -0
  36. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_group_list_result.rb +102 -0
  37. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_group_update_parameters.rb +105 -0
  38. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_list_result.rb +101 -0
  39. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_update_parameters.rb +166 -0
  40. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdstate_properties.rb +61 -0
  41. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/algorithm.rb +15 -0
  42. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cache_behavior.rb +17 -0
  43. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb +88 -0
  44. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cache_key_query_string_action_parameters.rb +75 -0
  45. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_certificate_source_parameters.rb +62 -0
  46. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_endpoint.rb +46 -0
  47. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_managed_https_parameters.rb +82 -0
  48. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy.rb +220 -0
  49. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_list.rb +103 -0
  50. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_patch_parameters.rb +55 -0
  51. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/certificate.rb +68 -0
  52. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/certificate_type.rb +16 -0
  53. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
  54. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +72 -0
  55. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +57 -0
  56. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/compression_settings.rb +70 -0
  57. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/continents_response.rb +75 -0
  58. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/continents_response_continents_item.rb +47 -0
  59. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/continents_response_country_or_regions_item.rb +58 -0
  60. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cookies_match_condition_parameters.rb +124 -0
  61. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cookies_operator.rb +24 -0
  62. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_domain.rb +158 -0
  63. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_domain_https_parameters.rb +73 -0
  64. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +102 -0
  65. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +48 -0
  66. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
  67. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb +19 -0
  68. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb +24 -0
  69. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_rule.rb +108 -0
  70. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_rule_enabled_state.rb +16 -0
  71. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_rule_list.rb +55 -0
  72. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/customer_certificate.rb +122 -0
  73. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/customer_certificate_parameters.rb +144 -0
  74. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/deep_created_origin.rb +200 -0
  75. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/deep_created_origin_group.rb +114 -0
  76. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule.rb +107 -0
  77. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_action.rb +53 -0
  78. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb +64 -0
  79. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_cache_key_query_string_action.rb +64 -0
  80. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb +59 -0
  81. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_cookies_condition.rb +64 -0
  82. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_http_version_condition.rb +64 -0
  83. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_is_device_condition.rb +64 -0
  84. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_post_args_condition.rb +64 -0
  85. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_query_string_condition.rb +64 -0
  86. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_remote_address_condition.rb +64 -0
  87. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_body_condition.rb +64 -0
  88. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_header_action.rb +63 -0
  89. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_header_condition.rb +64 -0
  90. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_method_condition.rb +64 -0
  91. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_scheme_condition.rb +64 -0
  92. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_uri_condition.rb +64 -0
  93. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_response_header_action.rb +63 -0
  94. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb +64 -0
  95. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_url_file_name_condition.rb +64 -0
  96. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb +64 -0
  97. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/deployment_status.rb +18 -0
  98. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/destination_protocol.rb +17 -0
  99. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/domain_validation_properties.rb +60 -0
  100. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/domain_validation_state.rb +20 -0
  101. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/edge_node.rb +93 -0
  102. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/edgenode_result.rb +101 -0
  103. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/enabled_state.rb +16 -0
  104. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint.rb +401 -0
  105. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +101 -0
  106. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb +67 -0
  107. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_web_application_firewall_policy_link.rb +49 -0
  108. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
  109. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +274 -0
  110. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/error_response.rb +60 -0
  111. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/forwarding_protocol.rb +17 -0
  112. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/geo_filter.rb +80 -0
  113. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
  114. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/header_action.rb +17 -0
  115. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/header_action_parameters.rb +83 -0
  116. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/health_probe_parameters.rb +90 -0
  117. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/health_probe_request_type.rb +17 -0
  118. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/http_error_range_parameters.rb +65 -0
  119. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/http_version_match_condition_parameters.rb +95 -0
  120. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/https_redirect.rb +16 -0
  121. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/identity_type.rb +18 -0
  122. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/ip_address_group.rb +86 -0
  123. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/is_device_match_condition_parameters.rb +113 -0
  124. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/key_vault_certificate_source_parameters.rb +137 -0
  125. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/key_vault_signing_key_parameters.rb +106 -0
  126. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/link_to_default_domain.rb +16 -0
  127. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/load_balancing_settings_parameters.rb +71 -0
  128. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
  129. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_certificate.rb +59 -0
  130. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_certificate_parameters.rb +80 -0
  131. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_definition.rb +59 -0
  132. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_enabled_state.rb +16 -0
  133. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_group_definition.rb +81 -0
  134. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_group_override.rb +68 -0
  135. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_override.rb +72 -0
  136. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_set.rb +94 -0
  137. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_set_definition.rb +133 -0
  138. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_set_definition_list.rb +101 -0
  139. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_set_list.rb +55 -0
  140. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb +125 -0
  141. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/match_processing_behavior.rb +16 -0
  142. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/match_variable.rb +23 -0
  143. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/metrics_response.rb +88 -0
  144. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/metrics_response_series_item.rb +99 -0
  145. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/metrics_response_series_item_data_item.rb +58 -0
  146. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/metrics_response_series_item_groups_item.rb +58 -0
  147. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/minimum_tls_version.rb +17 -0
  148. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/operation.rb +59 -0
  149. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/operation_display.rb +72 -0
  150. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/operations_list_result.rb +102 -0
  151. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/operator.rb +26 -0
  152. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
  153. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin.rb +266 -0
  154. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group.rb +163 -0
  155. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group_list_result.rb +102 -0
  156. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group_override_action.rb +64 -0
  157. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group_override_action_parameters.rb +63 -0
  158. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group_resource_state.rb +17 -0
  159. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group_update_parameters.rb +100 -0
  160. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_list_result.rb +101 -0
  161. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
  162. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +187 -0
  163. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/param_indicator.rb +17 -0
  164. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/policy_enabled_state.rb +16 -0
  165. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/policy_mode.rb +16 -0
  166. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/policy_resource_state.rb +20 -0
  167. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/policy_settings.rb +99 -0
  168. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/post_args_match_condition_parameters.rb +124 -0
  169. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/post_args_operator.rb +24 -0
  170. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/private_endpoint_status.rb +19 -0
  171. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/probe_protocol.rb +17 -0
  172. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/profile.rb +147 -0
  173. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/profile_list_result.rb +101 -0
  174. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
  175. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
  176. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/protocol_type.rb +16 -0
  177. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/provisioning_state.rb +17 -0
  178. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/proxy_resource.rb +76 -0
  179. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
  180. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/query_string_behavior.rb +18 -0
  181. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
  182. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/query_string_match_condition_parameters.rb +114 -0
  183. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/query_string_operator.rb +24 -0
  184. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rankings_response.rb +77 -0
  185. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rankings_response_tables_item.rb +67 -0
  186. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rankings_response_tables_item_data_item.rb +67 -0
  187. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rankings_response_tables_item_data_item_metrics_item.rb +70 -0
  188. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rate_limit_rule.rb +117 -0
  189. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rate_limit_rule_list.rb +55 -0
  190. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/redirect_type.rb +18 -0
  191. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/remote_address_match_condition_parameters.rb +114 -0
  192. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/remote_address_operator.rb +17 -0
  193. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_body_match_condition_parameters.rb +114 -0
  194. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_body_operator.rb +24 -0
  195. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_header_match_condition_parameters.rb +125 -0
  196. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_header_operator.rb +24 -0
  197. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_method_match_condition_parameters.rb +95 -0
  198. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_scheme_match_condition_parameters.rb +95 -0
  199. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_uri_match_condition_parameters.rb +114 -0
  200. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_uri_operator.rb +24 -0
  201. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resource.rb +80 -0
  202. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resource_reference.rb +46 -0
  203. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
  204. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resource_usage.rb +83 -0
  205. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +100 -0
  206. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resources_response.rb +75 -0
  207. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resources_response_custom_domains_item.rb +80 -0
  208. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resources_response_endpoints_item.rb +89 -0
  209. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resources_response_endpoints_item_custom_domains_item.rb +81 -0
  210. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/response_based_detected_error_types.rb +17 -0
  211. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/response_based_origin_error_detection_parameters.rb +89 -0
  212. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/route.rb +299 -0
  213. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/route_list_result.rb +101 -0
  214. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/route_update_parameters.rb +235 -0
  215. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rule.rb +174 -0
  216. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rule_list_result.rb +101 -0
  217. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rule_set.rb +99 -0
  218. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rule_set_list_result.rb +102 -0
  219. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rule_update_parameters.rb +110 -0
  220. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/secret.rb +113 -0
  221. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/secret_list_result.rb +102 -0
  222. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/secret_parameters.rb +46 -0
  223. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/secret_properties.rb +67 -0
  224. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/secret_type.rb +17 -0
  225. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/security_policy.rb +111 -0
  226. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/security_policy_list_result.rb +102 -0
  227. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/security_policy_parameters.rb +46 -0
  228. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/security_policy_web_application_firewall_association.rb +75 -0
  229. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/security_policy_web_application_firewall_parameters.rb +84 -0
  230. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/shared_private_link_resource_properties.rb +99 -0
  231. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/shared_private_link_resource_status.rb +19 -0
  232. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/sku.rb +54 -0
  233. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/sku_name.rb +28 -0
  234. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/sso_uri.rb +48 -0
  235. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/status.rb +18 -0
  236. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +56 -0
  237. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/system_data.rb +107 -0
  238. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/tracked_resource.rb +105 -0
  239. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/transform.rb +16 -0
  240. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/transform_type.rb +20 -0
  241. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_file_extension_match_condition_parameters.rb +114 -0
  242. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_file_extension_operator.rb +24 -0
  243. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_file_name_match_condition_parameters.rb +114 -0
  244. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_file_name_operator.rb +24 -0
  245. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_path_match_condition_parameters.rb +114 -0
  246. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_path_operator.rb +25 -0
  247. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_redirect_action.rb +64 -0
  248. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_redirect_action_parameters.rb +127 -0
  249. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_rewrite_action.rb +64 -0
  250. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_rewrite_action_parameters.rb +86 -0
  251. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_signing_action.rb +64 -0
  252. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_signing_action_parameters.rb +82 -0
  253. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_signing_key.rb +62 -0
  254. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_signing_key_parameters.rb +86 -0
  255. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_signing_param_identifier.rb +58 -0
  256. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/usage.rb +95 -0
  257. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/usage_name.rb +57 -0
  258. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/usages_list_result.rb +98 -0
  259. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/user_managed_https_parameters.rb +82 -0
  260. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
  261. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +72 -0
  262. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_probe_input.rb +46 -0
  263. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_probe_output.rb +73 -0
  264. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_secret_input.rb +59 -0
  265. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_secret_output.rb +58 -0
  266. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_secret_type.rb +17 -0
  267. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validation_token.rb +47 -0
  268. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_metrics_response.rb +88 -0
  269. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_metrics_response_series_item.rb +98 -0
  270. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_metrics_response_series_item_data_item.rb +58 -0
  271. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_metrics_response_series_item_groups_item.rb +58 -0
  272. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_rankings_response.rb +96 -0
  273. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_rankings_response_data_item.rb +75 -0
  274. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_rankings_response_data_item_metrics_item.rb +69 -0
  275. data/lib/2020-09-01/generated/azure_mgmt_cdn/module_definition.rb +9 -0
  276. data/lib/2020-09-01/generated/azure_mgmt_cdn/operations.rb +219 -0
  277. data/lib/2020-09-01/generated/azure_mgmt_cdn/origin_groups.rb +927 -0
  278. data/lib/2020-09-01/generated/azure_mgmt_cdn/origins.rb +922 -0
  279. data/lib/2020-09-01/generated/azure_mgmt_cdn/policies.rb +789 -0
  280. data/lib/2020-09-01/generated/azure_mgmt_cdn/profiles.rb +1482 -0
  281. data/lib/2020-09-01/generated/azure_mgmt_cdn/resource_usage_operations.rb +228 -0
  282. data/lib/2020-09-01/generated/azure_mgmt_cdn/routes.rb +913 -0
  283. data/lib/2020-09-01/generated/azure_mgmt_cdn/rule_sets.rb +908 -0
  284. data/lib/2020-09-01/generated/azure_mgmt_cdn/rules.rb +889 -0
  285. data/lib/2020-09-01/generated/azure_mgmt_cdn/secrets.rb +845 -0
  286. data/lib/2020-09-01/generated/azure_mgmt_cdn/security_policies.rb +868 -0
  287. data/lib/2020-09-01/generated/azure_mgmt_cdn/validate.rb +122 -0
  288. data/lib/azure_mgmt_cdn.rb +1 -0
  289. data/lib/profiles/latest/modules/cdn_profile_module.rb +802 -418
  290. data/lib/version.rb +1 -1
  291. metadata +282 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d681d433c60c3824e41df8cf07cf098cb25ca89bb859d7bb00cbb3d8aed3823
4
- data.tar.gz: 7741738ab8da6caf578ac42372b820466c1fdb104d9d3da827426348a3b6969d
3
+ metadata.gz: c33f650372648ab5af4dd77b613cfff0ad3ec1ae8ed95b505b93d483777218a8
4
+ data.tar.gz: 8a3c2c7f1fb9aa7de6779051954db2977aab57c83231a0d8fa42296db3286d7d
5
5
  SHA512:
6
- metadata.gz: c6dcfd21d30f97ce23bda6bfb6c9ee200374ee4a41fd0d7ced659e7a3b8f4f2d030665bb516e5218033812e77dc33f7c6a09296c0f4e617158bb4dc5e9b135b9
7
- data.tar.gz: 287d8838f66cd1eddbe187c4c90da7d7c6a9875443500c397a1cd9645dd04ba95cd5ed6660e739567145299d73a96e12b9df5ca0f4bf35c179eccfb3cc0ccde7
6
+ metadata.gz: 3b704c32857bb40b2f5a780f1d2ba12b9304cc164766592dd8ed1f5aa6ae98cbed1a74d0c16989ab16969e00c597c86750e839e000b9024089a2bd6e24dece61
7
+ data.tar.gz: 16917daf20c4d304578c823d23621c0858ec07931eccbedeb3d1d99c0f81ae9cec448f10dae07007d27fbd3af66c142b0a00c021880b565c48561b7e3ab406cb
@@ -145,7 +145,7 @@ module Azure::CDN::Mgmt::V2015_06_01
145
145
  #
146
146
  def add_telemetry
147
147
  sdk_information = 'azure_mgmt_cdn'
148
- sdk_information = "#{sdk_information}/0.17.7"
148
+ sdk_information = "#{sdk_information}/0.18.1"
149
149
  add_user_agent_information(sdk_information)
150
150
  end
151
151
  end
@@ -145,7 +145,7 @@ module Azure::CDN::Mgmt::V2016_04_02
145
145
  #
146
146
  def add_telemetry
147
147
  sdk_information = 'azure_mgmt_cdn'
148
- sdk_information = "#{sdk_information}/0.17.7"
148
+ sdk_information = "#{sdk_information}/0.18.1"
149
149
  add_user_agent_information(sdk_information)
150
150
  end
151
151
  end
@@ -757,7 +757,7 @@ module Azure::CDN::Mgmt::V2016_10_02
757
757
  #
758
758
  def add_telemetry
759
759
  sdk_information = 'azure_mgmt_cdn'
760
- sdk_information = "#{sdk_information}/0.17.7"
760
+ sdk_information = "#{sdk_information}/0.18.1"
761
761
  add_user_agent_information(sdk_information)
762
762
  end
763
763
  end
@@ -356,7 +356,7 @@ module Azure::CDN::Mgmt::V2017_04_02
356
356
  #
357
357
  def add_telemetry
358
358
  sdk_information = 'azure_mgmt_cdn'
359
- sdk_information = "#{sdk_information}/0.17.7"
359
+ sdk_information = "#{sdk_information}/0.18.1"
360
360
  add_user_agent_information(sdk_information)
361
361
  end
362
362
  end
@@ -459,7 +459,7 @@ module Azure::CDN::Mgmt::V2017_10_12
459
459
  #
460
460
  def add_telemetry
461
461
  sdk_information = 'azure_mgmt_cdn'
462
- sdk_information = "#{sdk_information}/0.17.7"
462
+ sdk_information = "#{sdk_information}/0.18.1"
463
463
  add_user_agent_information(sdk_information)
464
464
  end
465
465
  end
@@ -471,7 +471,7 @@ module Azure::CDN::Mgmt::V2020_04_15
471
471
  #
472
472
  def add_telemetry
473
473
  sdk_information = 'azure_mgmt_cdn'
474
- sdk_information = "#{sdk_information}/0.17.7"
474
+ sdk_information = "#{sdk_information}/0.18.1"
475
475
  add_user_agent_information(sdk_information)
476
476
  end
477
477
  end
@@ -0,0 +1,304 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2020-09-01/generated/azure_mgmt_cdn/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::CDN::Mgmt::V2020_09_01
23
+ autoload :Profiles, '2020-09-01/generated/azure_mgmt_cdn/profiles.rb'
24
+ autoload :Endpoints, '2020-09-01/generated/azure_mgmt_cdn/endpoints.rb'
25
+ autoload :Origins, '2020-09-01/generated/azure_mgmt_cdn/origins.rb'
26
+ autoload :OriginGroups, '2020-09-01/generated/azure_mgmt_cdn/origin_groups.rb'
27
+ autoload :CustomDomains, '2020-09-01/generated/azure_mgmt_cdn/custom_domains.rb'
28
+ autoload :ResourceUsageOperations, '2020-09-01/generated/azure_mgmt_cdn/resource_usage_operations.rb'
29
+ autoload :Operations, '2020-09-01/generated/azure_mgmt_cdn/operations.rb'
30
+ autoload :EdgeNodes, '2020-09-01/generated/azure_mgmt_cdn/edge_nodes.rb'
31
+ autoload :AFDProfiles, '2020-09-01/generated/azure_mgmt_cdn/afdprofiles.rb'
32
+ autoload :AFDCustomDomains, '2020-09-01/generated/azure_mgmt_cdn/afdcustom_domains.rb'
33
+ autoload :AFDEndpoints, '2020-09-01/generated/azure_mgmt_cdn/afdendpoints.rb'
34
+ autoload :AFDOriginGroups, '2020-09-01/generated/azure_mgmt_cdn/afdorigin_groups.rb'
35
+ autoload :AFDOrigins, '2020-09-01/generated/azure_mgmt_cdn/afdorigins.rb'
36
+ autoload :Routes, '2020-09-01/generated/azure_mgmt_cdn/routes.rb'
37
+ autoload :RuleSets, '2020-09-01/generated/azure_mgmt_cdn/rule_sets.rb'
38
+ autoload :Rules, '2020-09-01/generated/azure_mgmt_cdn/rules.rb'
39
+ autoload :SecurityPolicies, '2020-09-01/generated/azure_mgmt_cdn/security_policies.rb'
40
+ autoload :Secrets, '2020-09-01/generated/azure_mgmt_cdn/secrets.rb'
41
+ autoload :Validate, '2020-09-01/generated/azure_mgmt_cdn/validate.rb'
42
+ autoload :LogAnalytics, '2020-09-01/generated/azure_mgmt_cdn/log_analytics.rb'
43
+ autoload :Policies, '2020-09-01/generated/azure_mgmt_cdn/policies.rb'
44
+ autoload :ManagedRuleSets, '2020-09-01/generated/azure_mgmt_cdn/managed_rule_sets.rb'
45
+ autoload :CdnManagementClient, '2020-09-01/generated/azure_mgmt_cdn/cdn_management_client.rb'
46
+
47
+ module Models
48
+ autoload :CheckNameAvailabilityOutput, '2020-09-01/generated/azure_mgmt_cdn/models/check_name_availability_output.rb'
49
+ autoload :ValidateProbeInput, '2020-09-01/generated/azure_mgmt_cdn/models/validate_probe_input.rb'
50
+ autoload :MetricsResponseSeriesItemGroupsItem, '2020-09-01/generated/azure_mgmt_cdn/models/metrics_response_series_item_groups_item.rb'
51
+ autoload :OriginGroupUpdateParameters, '2020-09-01/generated/azure_mgmt_cdn/models/origin_group_update_parameters.rb'
52
+ autoload :ProfileUpdateParameters, '2020-09-01/generated/azure_mgmt_cdn/models/profile_update_parameters.rb'
53
+ autoload :OriginGroupListResult, '2020-09-01/generated/azure_mgmt_cdn/models/origin_group_list_result.rb'
54
+ autoload :SupportedOptimizationTypesListResult, '2020-09-01/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb'
55
+ autoload :AfdErrorResponse, '2020-09-01/generated/azure_mgmt_cdn/models/afd_error_response.rb'
56
+ autoload :HealthProbeParameters, '2020-09-01/generated/azure_mgmt_cdn/models/health_probe_parameters.rb'
57
+ autoload :CustomDomainParameters, '2020-09-01/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb'
58
+ autoload :HttpErrorRangeParameters, '2020-09-01/generated/azure_mgmt_cdn/models/http_error_range_parameters.rb'
59
+ autoload :CustomDomainHttpsParameters, '2020-09-01/generated/azure_mgmt_cdn/models/custom_domain_https_parameters.rb'
60
+ autoload :DeepCreatedOriginGroup, '2020-09-01/generated/azure_mgmt_cdn/models/deep_created_origin_group.rb'
61
+ autoload :CdnCertificateSourceParameters, '2020-09-01/generated/azure_mgmt_cdn/models/cdn_certificate_source_parameters.rb'
62
+ autoload :EndpointListResult, '2020-09-01/generated/azure_mgmt_cdn/models/endpoint_list_result.rb'
63
+ autoload :AFDStateProperties, '2020-09-01/generated/azure_mgmt_cdn/models/afdstate_properties.rb'
64
+ autoload :KeyVaultSigningKeyParameters, '2020-09-01/generated/azure_mgmt_cdn/models/key_vault_signing_key_parameters.rb'
65
+ autoload :KeyVaultCertificateSourceParameters, '2020-09-01/generated/azure_mgmt_cdn/models/key_vault_certificate_source_parameters.rb'
66
+ autoload :DeliveryRuleCondition, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb'
67
+ autoload :ValidationToken, '2020-09-01/generated/azure_mgmt_cdn/models/validation_token.rb'
68
+ autoload :DeliveryRule, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule.rb'
69
+ autoload :CustomDomainListResult, '2020-09-01/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb'
70
+ autoload :EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink, '2020-09-01/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_web_application_firewall_policy_link.rb'
71
+ autoload :ValidateCustomDomainInput, '2020-09-01/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb'
72
+ autoload :RemoteAddressMatchConditionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/remote_address_match_condition_parameters.rb'
73
+ autoload :ValidateCustomDomainOutput, '2020-09-01/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb'
74
+ autoload :RequestMethodMatchConditionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/request_method_match_condition_parameters.rb'
75
+ autoload :CheckNameAvailabilityInput, '2020-09-01/generated/azure_mgmt_cdn/models/check_name_availability_input.rb'
76
+ autoload :QueryStringMatchConditionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/query_string_match_condition_parameters.rb'
77
+ autoload :Sku, '2020-09-01/generated/azure_mgmt_cdn/models/sku.rb'
78
+ autoload :PostArgsMatchConditionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/post_args_match_condition_parameters.rb'
79
+ autoload :RuleUpdateParameters, '2020-09-01/generated/azure_mgmt_cdn/models/rule_update_parameters.rb'
80
+ autoload :RequestUriMatchConditionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/request_uri_match_condition_parameters.rb'
81
+ autoload :ValidateProbeOutput, '2020-09-01/generated/azure_mgmt_cdn/models/validate_probe_output.rb'
82
+ autoload :RequestHeaderMatchConditionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/request_header_match_condition_parameters.rb'
83
+ autoload :ResourceUsage, '2020-09-01/generated/azure_mgmt_cdn/models/resource_usage.rb'
84
+ autoload :RequestBodyMatchConditionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/request_body_match_condition_parameters.rb'
85
+ autoload :ResourceUsageListResult, '2020-09-01/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb'
86
+ autoload :RequestSchemeMatchConditionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/request_scheme_match_condition_parameters.rb'
87
+ autoload :OperationDisplay, '2020-09-01/generated/azure_mgmt_cdn/models/operation_display.rb'
88
+ autoload :UrlPathMatchConditionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/url_path_match_condition_parameters.rb'
89
+ autoload :Operation, '2020-09-01/generated/azure_mgmt_cdn/models/operation.rb'
90
+ autoload :UrlFileExtensionMatchConditionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/url_file_extension_match_condition_parameters.rb'
91
+ autoload :OperationsListResult, '2020-09-01/generated/azure_mgmt_cdn/models/operations_list_result.rb'
92
+ autoload :UrlFileNameMatchConditionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/url_file_name_match_condition_parameters.rb'
93
+ autoload :CidrIpAddress, '2020-09-01/generated/azure_mgmt_cdn/models/cidr_ip_address.rb'
94
+ autoload :HttpVersionMatchConditionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/http_version_match_condition_parameters.rb'
95
+ autoload :IpAddressGroup, '2020-09-01/generated/azure_mgmt_cdn/models/ip_address_group.rb'
96
+ autoload :CookiesMatchConditionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/cookies_match_condition_parameters.rb'
97
+ autoload :IsDeviceMatchConditionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/is_device_match_condition_parameters.rb'
98
+ autoload :EdgenodeResult, '2020-09-01/generated/azure_mgmt_cdn/models/edgenode_result.rb'
99
+ autoload :UrlRedirectActionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/url_redirect_action_parameters.rb'
100
+ autoload :Resource, '2020-09-01/generated/azure_mgmt_cdn/models/resource.rb'
101
+ autoload :UrlSigningParamIdentifier, '2020-09-01/generated/azure_mgmt_cdn/models/url_signing_param_identifier.rb'
102
+ autoload :SystemData, '2020-09-01/generated/azure_mgmt_cdn/models/system_data.rb'
103
+ autoload :ContinentsResponseContinentsItem, '2020-09-01/generated/azure_mgmt_cdn/models/continents_response_continents_item.rb'
104
+ autoload :ManagedRuleSetDefinitionList, '2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_set_definition_list.rb'
105
+ autoload :RankingsResponse, '2020-09-01/generated/azure_mgmt_cdn/models/rankings_response.rb'
106
+ autoload :RuleListResult, '2020-09-01/generated/azure_mgmt_cdn/models/rule_list_result.rb'
107
+ autoload :RankingsResponseTablesItem, '2020-09-01/generated/azure_mgmt_cdn/models/rankings_response_tables_item.rb'
108
+ autoload :ErrorResponse, '2020-09-01/generated/azure_mgmt_cdn/models/error_response.rb'
109
+ autoload :RankingsResponseTablesItemDataItem, '2020-09-01/generated/azure_mgmt_cdn/models/rankings_response_tables_item_data_item.rb'
110
+ autoload :AfdPurgeParameters, '2020-09-01/generated/azure_mgmt_cdn/models/afd_purge_parameters.rb'
111
+ autoload :CacheExpirationActionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb'
112
+ autoload :Certificate, '2020-09-01/generated/azure_mgmt_cdn/models/certificate.rb'
113
+ autoload :CacheKeyQueryStringActionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/cache_key_query_string_action_parameters.rb'
114
+ autoload :ManagedRuleGroupDefinition, '2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_group_definition.rb'
115
+ autoload :PurgeParameters, '2020-09-01/generated/azure_mgmt_cdn/models/purge_parameters.rb'
116
+ autoload :ManagedRuleDefinition, '2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_definition.rb'
117
+ autoload :MetricsResponseSeriesItemDataItem, '2020-09-01/generated/azure_mgmt_cdn/models/metrics_response_series_item_data_item.rb'
118
+ autoload :ValidateSecretInput, '2020-09-01/generated/azure_mgmt_cdn/models/validate_secret_input.rb'
119
+ autoload :OriginListResult, '2020-09-01/generated/azure_mgmt_cdn/models/origin_list_result.rb'
120
+ autoload :ValidateSecretOutput, '2020-09-01/generated/azure_mgmt_cdn/models/validate_secret_output.rb'
121
+ autoload :SsoUri, '2020-09-01/generated/azure_mgmt_cdn/models/sso_uri.rb'
122
+ autoload :AFDDomainHttpsParameters, '2020-09-01/generated/azure_mgmt_cdn/models/afddomain_https_parameters.rb'
123
+ autoload :ResourceReference, '2020-09-01/generated/azure_mgmt_cdn/models/resource_reference.rb'
124
+ autoload :DomainValidationProperties, '2020-09-01/generated/azure_mgmt_cdn/models/domain_validation_properties.rb'
125
+ autoload :UsagesListResult, '2020-09-01/generated/azure_mgmt_cdn/models/usages_list_result.rb'
126
+ autoload :CdnWebApplicationFirewallPolicyPatchParameters, '2020-09-01/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_patch_parameters.rb'
127
+ autoload :UrlSigningKey, '2020-09-01/generated/azure_mgmt_cdn/models/url_signing_key.rb'
128
+ autoload :AFDDomainListResult, '2020-09-01/generated/azure_mgmt_cdn/models/afddomain_list_result.rb'
129
+ autoload :EndpointPropertiesUpdateParametersDeliveryPolicy, '2020-09-01/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb'
130
+ autoload :AFDDomainUpdateParameters, '2020-09-01/generated/azure_mgmt_cdn/models/afddomain_update_parameters.rb'
131
+ autoload :Usage, '2020-09-01/generated/azure_mgmt_cdn/models/usage.rb'
132
+ autoload :SecurityPolicyWebApplicationFirewallAssociation, '2020-09-01/generated/azure_mgmt_cdn/models/security_policy_web_application_firewall_association.rb'
133
+ autoload :WafRankingsResponse, '2020-09-01/generated/azure_mgmt_cdn/models/waf_rankings_response.rb'
134
+ autoload :CdnWebApplicationFirewallPolicyList, '2020-09-01/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_list.rb'
135
+ autoload :WafRankingsResponseDataItemMetricsItem, '2020-09-01/generated/azure_mgmt_cdn/models/waf_rankings_response_data_item_metrics_item.rb'
136
+ autoload :CdnEndpoint, '2020-09-01/generated/azure_mgmt_cdn/models/cdn_endpoint.rb'
137
+ autoload :WafMetricsResponseSeriesItem, '2020-09-01/generated/azure_mgmt_cdn/models/waf_metrics_response_series_item.rb'
138
+ autoload :SecurityPolicyParameters, '2020-09-01/generated/azure_mgmt_cdn/models/security_policy_parameters.rb'
139
+ autoload :WafMetricsResponseSeriesItemGroupsItem, '2020-09-01/generated/azure_mgmt_cdn/models/waf_metrics_response_series_item_groups_item.rb'
140
+ autoload :SecurityPolicyListResult, '2020-09-01/generated/azure_mgmt_cdn/models/security_policy_list_result.rb'
141
+ autoload :ResourcesResponseCustomDomainsItem, '2020-09-01/generated/azure_mgmt_cdn/models/resources_response_custom_domains_item.rb'
142
+ autoload :ManagedRuleSetList, '2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_set_list.rb'
143
+ autoload :ResourcesResponseEndpointsItemCustomDomainsItem, '2020-09-01/generated/azure_mgmt_cdn/models/resources_response_endpoints_item_custom_domains_item.rb'
144
+ autoload :AFDEndpointListResult, '2020-09-01/generated/azure_mgmt_cdn/models/afdendpoint_list_result.rb'
145
+ autoload :ContinentsResponseCountryOrRegionsItem, '2020-09-01/generated/azure_mgmt_cdn/models/continents_response_country_or_regions_item.rb'
146
+ autoload :AFDEndpointUpdateParameters, '2020-09-01/generated/azure_mgmt_cdn/models/afdendpoint_update_parameters.rb'
147
+ autoload :OriginGroupOverrideActionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/origin_group_override_action_parameters.rb'
148
+ autoload :CompressionSettings, '2020-09-01/generated/azure_mgmt_cdn/models/compression_settings.rb'
149
+ autoload :HeaderActionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/header_action_parameters.rb'
150
+ autoload :SecretParameters, '2020-09-01/generated/azure_mgmt_cdn/models/secret_parameters.rb'
151
+ autoload :MetricsResponse, '2020-09-01/generated/azure_mgmt_cdn/models/metrics_response.rb'
152
+ autoload :ManagedRuleSet, '2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_set.rb'
153
+ autoload :LoadParameters, '2020-09-01/generated/azure_mgmt_cdn/models/load_parameters.rb'
154
+ autoload :ManagedRuleGroupOverride, '2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_group_override.rb'
155
+ autoload :ProfileListResult, '2020-09-01/generated/azure_mgmt_cdn/models/profile_list_result.rb'
156
+ autoload :SecretListResult, '2020-09-01/generated/azure_mgmt_cdn/models/secret_list_result.rb'
157
+ autoload :ResponseBasedOriginErrorDetectionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/response_based_origin_error_detection_parameters.rb'
158
+ autoload :ManagedRuleOverride, '2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_override.rb'
159
+ autoload :DeliveryRuleAction, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_action.rb'
160
+ autoload :ManagedCertificateParameters, '2020-09-01/generated/azure_mgmt_cdn/models/managed_certificate_parameters.rb'
161
+ autoload :UsageName, '2020-09-01/generated/azure_mgmt_cdn/models/usage_name.rb'
162
+ autoload :CustomerCertificateParameters, '2020-09-01/generated/azure_mgmt_cdn/models/customer_certificate_parameters.rb'
163
+ autoload :WafMetricsResponse, '2020-09-01/generated/azure_mgmt_cdn/models/waf_metrics_response.rb'
164
+ autoload :CustomRuleList, '2020-09-01/generated/azure_mgmt_cdn/models/custom_rule_list.rb'
165
+ autoload :ResourcesResponse, '2020-09-01/generated/azure_mgmt_cdn/models/resources_response.rb'
166
+ autoload :RuleSetListResult, '2020-09-01/generated/azure_mgmt_cdn/models/rule_set_list_result.rb'
167
+ autoload :ContinentsResponse, '2020-09-01/generated/azure_mgmt_cdn/models/continents_response.rb'
168
+ autoload :CustomRule, '2020-09-01/generated/azure_mgmt_cdn/models/custom_rule.rb'
169
+ autoload :UrlRewriteActionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/url_rewrite_action_parameters.rb'
170
+ autoload :AFDOriginUpdateParameters, '2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_update_parameters.rb'
171
+ autoload :MetricsResponseSeriesItem, '2020-09-01/generated/azure_mgmt_cdn/models/metrics_response_series_item.rb'
172
+ autoload :SharedPrivateLinkResourceProperties, '2020-09-01/generated/azure_mgmt_cdn/models/shared_private_link_resource_properties.rb'
173
+ autoload :DeepCreatedOrigin, '2020-09-01/generated/azure_mgmt_cdn/models/deep_created_origin.rb'
174
+ autoload :AFDOriginListResult, '2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_list_result.rb'
175
+ autoload :EndpointUpdateParameters, '2020-09-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb'
176
+ autoload :LoadBalancingSettingsParameters, '2020-09-01/generated/azure_mgmt_cdn/models/load_balancing_settings_parameters.rb'
177
+ autoload :WafMetricsResponseSeriesItemDataItem, '2020-09-01/generated/azure_mgmt_cdn/models/waf_metrics_response_series_item_data_item.rb'
178
+ autoload :MatchCondition, '2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb'
179
+ autoload :UrlSigningActionParameters, '2020-09-01/generated/azure_mgmt_cdn/models/url_signing_action_parameters.rb'
180
+ autoload :AFDOriginGroupUpdateParameters, '2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_group_update_parameters.rb'
181
+ autoload :OriginUpdateParameters, '2020-09-01/generated/azure_mgmt_cdn/models/origin_update_parameters.rb'
182
+ autoload :AFDOriginGroupListResult, '2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_group_list_result.rb'
183
+ autoload :WafRankingsResponseDataItem, '2020-09-01/generated/azure_mgmt_cdn/models/waf_rankings_response_data_item.rb'
184
+ autoload :RateLimitRuleList, '2020-09-01/generated/azure_mgmt_cdn/models/rate_limit_rule_list.rb'
185
+ autoload :RankingsResponseTablesItemDataItemMetricsItem, '2020-09-01/generated/azure_mgmt_cdn/models/rankings_response_tables_item_data_item_metrics_item.rb'
186
+ autoload :RouteListResult, '2020-09-01/generated/azure_mgmt_cdn/models/route_list_result.rb'
187
+ autoload :ResourcesResponseEndpointsItem, '2020-09-01/generated/azure_mgmt_cdn/models/resources_response_endpoints_item.rb'
188
+ autoload :RouteUpdateParameters, '2020-09-01/generated/azure_mgmt_cdn/models/route_update_parameters.rb'
189
+ autoload :GeoFilter, '2020-09-01/generated/azure_mgmt_cdn/models/geo_filter.rb'
190
+ autoload :PolicySettings, '2020-09-01/generated/azure_mgmt_cdn/models/policy_settings.rb'
191
+ autoload :Profile, '2020-09-01/generated/azure_mgmt_cdn/models/profile.rb'
192
+ autoload :Endpoint, '2020-09-01/generated/azure_mgmt_cdn/models/endpoint.rb'
193
+ autoload :DeliveryRuleRemoteAddressCondition, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_remote_address_condition.rb'
194
+ autoload :DeliveryRuleRequestMethodCondition, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_method_condition.rb'
195
+ autoload :DeliveryRuleQueryStringCondition, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_query_string_condition.rb'
196
+ autoload :DeliveryRulePostArgsCondition, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_post_args_condition.rb'
197
+ autoload :DeliveryRuleRequestUriCondition, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_uri_condition.rb'
198
+ autoload :DeliveryRuleRequestHeaderCondition, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_header_condition.rb'
199
+ autoload :DeliveryRuleRequestBodyCondition, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_body_condition.rb'
200
+ autoload :DeliveryRuleRequestSchemeCondition, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_scheme_condition.rb'
201
+ autoload :DeliveryRuleUrlPathCondition, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb'
202
+ autoload :DeliveryRuleUrlFileExtensionCondition, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb'
203
+ autoload :DeliveryRuleUrlFileNameCondition, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_url_file_name_condition.rb'
204
+ autoload :DeliveryRuleHttpVersionCondition, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_http_version_condition.rb'
205
+ autoload :DeliveryRuleCookiesCondition, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_cookies_condition.rb'
206
+ autoload :DeliveryRuleIsDeviceCondition, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_is_device_condition.rb'
207
+ autoload :UrlRedirectAction, '2020-09-01/generated/azure_mgmt_cdn/models/url_redirect_action.rb'
208
+ autoload :UrlSigningAction, '2020-09-01/generated/azure_mgmt_cdn/models/url_signing_action.rb'
209
+ autoload :OriginGroupOverrideAction, '2020-09-01/generated/azure_mgmt_cdn/models/origin_group_override_action.rb'
210
+ autoload :UrlRewriteAction, '2020-09-01/generated/azure_mgmt_cdn/models/url_rewrite_action.rb'
211
+ autoload :DeliveryRuleRequestHeaderAction, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_header_action.rb'
212
+ autoload :DeliveryRuleResponseHeaderAction, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_response_header_action.rb'
213
+ autoload :DeliveryRuleCacheExpirationAction, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb'
214
+ autoload :DeliveryRuleCacheKeyQueryStringAction, '2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_cache_key_query_string_action.rb'
215
+ autoload :ProxyResource, '2020-09-01/generated/azure_mgmt_cdn/models/proxy_resource.rb'
216
+ autoload :Origin, '2020-09-01/generated/azure_mgmt_cdn/models/origin.rb'
217
+ autoload :OriginGroup, '2020-09-01/generated/azure_mgmt_cdn/models/origin_group.rb'
218
+ autoload :CustomDomain, '2020-09-01/generated/azure_mgmt_cdn/models/custom_domain.rb'
219
+ autoload :CdnManagedHttpsParameters, '2020-09-01/generated/azure_mgmt_cdn/models/cdn_managed_https_parameters.rb'
220
+ autoload :UserManagedHttpsParameters, '2020-09-01/generated/azure_mgmt_cdn/models/user_managed_https_parameters.rb'
221
+ autoload :EdgeNode, '2020-09-01/generated/azure_mgmt_cdn/models/edge_node.rb'
222
+ autoload :TrackedResource, '2020-09-01/generated/azure_mgmt_cdn/models/tracked_resource.rb'
223
+ autoload :ManagedCertificate, '2020-09-01/generated/azure_mgmt_cdn/models/managed_certificate.rb'
224
+ autoload :CustomerCertificate, '2020-09-01/generated/azure_mgmt_cdn/models/customer_certificate.rb'
225
+ autoload :AFDDomain, '2020-09-01/generated/azure_mgmt_cdn/models/afddomain.rb'
226
+ autoload :SecurityPolicyWebApplicationFirewallParameters, '2020-09-01/generated/azure_mgmt_cdn/models/security_policy_web_application_firewall_parameters.rb'
227
+ autoload :SecurityPolicy, '2020-09-01/generated/azure_mgmt_cdn/models/security_policy.rb'
228
+ autoload :AFDEndpoint, '2020-09-01/generated/azure_mgmt_cdn/models/afdendpoint.rb'
229
+ autoload :SecretProperties, '2020-09-01/generated/azure_mgmt_cdn/models/secret_properties.rb'
230
+ autoload :Secret, '2020-09-01/generated/azure_mgmt_cdn/models/secret.rb'
231
+ autoload :UrlSigningKeyParameters, '2020-09-01/generated/azure_mgmt_cdn/models/url_signing_key_parameters.rb'
232
+ autoload :RuleSet, '2020-09-01/generated/azure_mgmt_cdn/models/rule_set.rb'
233
+ autoload :AFDOrigin, '2020-09-01/generated/azure_mgmt_cdn/models/afdorigin.rb'
234
+ autoload :AFDOriginGroup, '2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_group.rb'
235
+ autoload :Route, '2020-09-01/generated/azure_mgmt_cdn/models/route.rb'
236
+ autoload :Rule, '2020-09-01/generated/azure_mgmt_cdn/models/rule.rb'
237
+ autoload :RateLimitRule, '2020-09-01/generated/azure_mgmt_cdn/models/rate_limit_rule.rb'
238
+ autoload :CdnWebApplicationFirewallPolicy, '2020-09-01/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy.rb'
239
+ autoload :ManagedRuleSetDefinition, '2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_set_definition.rb'
240
+ autoload :SkuName, '2020-09-01/generated/azure_mgmt_cdn/models/sku_name.rb'
241
+ autoload :ProfileResourceState, '2020-09-01/generated/azure_mgmt_cdn/models/profile_resource_state.rb'
242
+ autoload :OptimizationType, '2020-09-01/generated/azure_mgmt_cdn/models/optimization_type.rb'
243
+ autoload :HealthProbeRequestType, '2020-09-01/generated/azure_mgmt_cdn/models/health_probe_request_type.rb'
244
+ autoload :ProbeProtocol, '2020-09-01/generated/azure_mgmt_cdn/models/probe_protocol.rb'
245
+ autoload :ResponseBasedDetectedErrorTypes, '2020-09-01/generated/azure_mgmt_cdn/models/response_based_detected_error_types.rb'
246
+ autoload :EndpointResourceState, '2020-09-01/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb'
247
+ autoload :QueryStringCachingBehavior, '2020-09-01/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb'
248
+ autoload :GeoFilterActions, '2020-09-01/generated/azure_mgmt_cdn/models/geo_filter_actions.rb'
249
+ autoload :RemoteAddressOperator, '2020-09-01/generated/azure_mgmt_cdn/models/remote_address_operator.rb'
250
+ autoload :Transform, '2020-09-01/generated/azure_mgmt_cdn/models/transform.rb'
251
+ autoload :QueryStringOperator, '2020-09-01/generated/azure_mgmt_cdn/models/query_string_operator.rb'
252
+ autoload :PostArgsOperator, '2020-09-01/generated/azure_mgmt_cdn/models/post_args_operator.rb'
253
+ autoload :RequestUriOperator, '2020-09-01/generated/azure_mgmt_cdn/models/request_uri_operator.rb'
254
+ autoload :RequestHeaderOperator, '2020-09-01/generated/azure_mgmt_cdn/models/request_header_operator.rb'
255
+ autoload :RequestBodyOperator, '2020-09-01/generated/azure_mgmt_cdn/models/request_body_operator.rb'
256
+ autoload :UrlPathOperator, '2020-09-01/generated/azure_mgmt_cdn/models/url_path_operator.rb'
257
+ autoload :UrlFileExtensionOperator, '2020-09-01/generated/azure_mgmt_cdn/models/url_file_extension_operator.rb'
258
+ autoload :UrlFileNameOperator, '2020-09-01/generated/azure_mgmt_cdn/models/url_file_name_operator.rb'
259
+ autoload :CookiesOperator, '2020-09-01/generated/azure_mgmt_cdn/models/cookies_operator.rb'
260
+ autoload :RedirectType, '2020-09-01/generated/azure_mgmt_cdn/models/redirect_type.rb'
261
+ autoload :DestinationProtocol, '2020-09-01/generated/azure_mgmt_cdn/models/destination_protocol.rb'
262
+ autoload :Algorithm, '2020-09-01/generated/azure_mgmt_cdn/models/algorithm.rb'
263
+ autoload :ParamIndicator, '2020-09-01/generated/azure_mgmt_cdn/models/param_indicator.rb'
264
+ autoload :HeaderAction, '2020-09-01/generated/azure_mgmt_cdn/models/header_action.rb'
265
+ autoload :CacheBehavior, '2020-09-01/generated/azure_mgmt_cdn/models/cache_behavior.rb'
266
+ autoload :QueryStringBehavior, '2020-09-01/generated/azure_mgmt_cdn/models/query_string_behavior.rb'
267
+ autoload :OriginResourceState, '2020-09-01/generated/azure_mgmt_cdn/models/origin_resource_state.rb'
268
+ autoload :PrivateEndpointStatus, '2020-09-01/generated/azure_mgmt_cdn/models/private_endpoint_status.rb'
269
+ autoload :OriginGroupResourceState, '2020-09-01/generated/azure_mgmt_cdn/models/origin_group_resource_state.rb'
270
+ autoload :CustomDomainResourceState, '2020-09-01/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb'
271
+ autoload :CustomHttpsProvisioningState, '2020-09-01/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb'
272
+ autoload :CustomHttpsProvisioningSubstate, '2020-09-01/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb'
273
+ autoload :ProtocolType, '2020-09-01/generated/azure_mgmt_cdn/models/protocol_type.rb'
274
+ autoload :MinimumTlsVersion, '2020-09-01/generated/azure_mgmt_cdn/models/minimum_tls_version.rb'
275
+ autoload :CertificateType, '2020-09-01/generated/azure_mgmt_cdn/models/certificate_type.rb'
276
+ autoload :ResourceType, '2020-09-01/generated/azure_mgmt_cdn/models/resource_type.rb'
277
+ autoload :IdentityType, '2020-09-01/generated/azure_mgmt_cdn/models/identity_type.rb'
278
+ autoload :ValidateSecretType, '2020-09-01/generated/azure_mgmt_cdn/models/validate_secret_type.rb'
279
+ autoload :Status, '2020-09-01/generated/azure_mgmt_cdn/models/status.rb'
280
+ autoload :AfdCertificateType, '2020-09-01/generated/azure_mgmt_cdn/models/afd_certificate_type.rb'
281
+ autoload :AfdMinimumTlsVersion, '2020-09-01/generated/azure_mgmt_cdn/models/afd_minimum_tls_version.rb'
282
+ autoload :AfdProvisioningState, '2020-09-01/generated/azure_mgmt_cdn/models/afd_provisioning_state.rb'
283
+ autoload :DeploymentStatus, '2020-09-01/generated/azure_mgmt_cdn/models/deployment_status.rb'
284
+ autoload :DomainValidationState, '2020-09-01/generated/azure_mgmt_cdn/models/domain_validation_state.rb'
285
+ autoload :EnabledState, '2020-09-01/generated/azure_mgmt_cdn/models/enabled_state.rb'
286
+ autoload :AFDEndpointProtocols, '2020-09-01/generated/azure_mgmt_cdn/models/afdendpoint_protocols.rb'
287
+ autoload :SecretType, '2020-09-01/generated/azure_mgmt_cdn/models/secret_type.rb'
288
+ autoload :SharedPrivateLinkResourceStatus, '2020-09-01/generated/azure_mgmt_cdn/models/shared_private_link_resource_status.rb'
289
+ autoload :ForwardingProtocol, '2020-09-01/generated/azure_mgmt_cdn/models/forwarding_protocol.rb'
290
+ autoload :LinkToDefaultDomain, '2020-09-01/generated/azure_mgmt_cdn/models/link_to_default_domain.rb'
291
+ autoload :HttpsRedirect, '2020-09-01/generated/azure_mgmt_cdn/models/https_redirect.rb'
292
+ autoload :MatchProcessingBehavior, '2020-09-01/generated/azure_mgmt_cdn/models/match_processing_behavior.rb'
293
+ autoload :PolicyEnabledState, '2020-09-01/generated/azure_mgmt_cdn/models/policy_enabled_state.rb'
294
+ autoload :PolicyMode, '2020-09-01/generated/azure_mgmt_cdn/models/policy_mode.rb'
295
+ autoload :CustomRuleEnabledState, '2020-09-01/generated/azure_mgmt_cdn/models/custom_rule_enabled_state.rb'
296
+ autoload :MatchVariable, '2020-09-01/generated/azure_mgmt_cdn/models/match_variable.rb'
297
+ autoload :Operator, '2020-09-01/generated/azure_mgmt_cdn/models/operator.rb'
298
+ autoload :TransformType, '2020-09-01/generated/azure_mgmt_cdn/models/transform_type.rb'
299
+ autoload :ActionType, '2020-09-01/generated/azure_mgmt_cdn/models/action_type.rb'
300
+ autoload :ManagedRuleEnabledState, '2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_enabled_state.rb'
301
+ autoload :ProvisioningState, '2020-09-01/generated/azure_mgmt_cdn/models/provisioning_state.rb'
302
+ autoload :PolicyResourceState, '2020-09-01/generated/azure_mgmt_cdn/models/policy_resource_state.rb'
303
+ end
304
+ end
@@ -0,0 +1,1035 @@
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::V2020_09_01
7
+ #
8
+ # Cdn Management Client
9
+ #
10
+ class AFDCustomDomains
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the AFDCustomDomains class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [CdnManagementClient] reference to the CdnManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Lists existing AzureFrontDoor domains.
26
+ #
27
+ # @param resource_group_name [String] Name of the Resource group within the
28
+ # Azure subscription.
29
+ # @param profile_name [String] Name of the CDN profile which is unique within
30
+ # the resource group.
31
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
+ # will be added to the HTTP request.
33
+ #
34
+ # @return [Array<AFDDomain>] operation results.
35
+ #
36
+ def list_by_profile(resource_group_name, profile_name, custom_headers:nil)
37
+ first_page = list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:custom_headers)
38
+ first_page.get_all_items
39
+ end
40
+
41
+ #
42
+ # Lists existing AzureFrontDoor domains.
43
+ #
44
+ # @param resource_group_name [String] Name of the Resource group within the
45
+ # Azure subscription.
46
+ # @param profile_name [String] Name of the CDN profile which is unique within
47
+ # the resource group.
48
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
49
+ # will be added to the HTTP request.
50
+ #
51
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
+ #
53
+ def list_by_profile_with_http_info(resource_group_name, profile_name, custom_headers:nil)
54
+ list_by_profile_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
55
+ end
56
+
57
+ #
58
+ # Lists existing AzureFrontDoor domains.
59
+ #
60
+ # @param resource_group_name [String] Name of the Resource group within the
61
+ # Azure subscription.
62
+ # @param profile_name [String] Name of the CDN profile which is unique within
63
+ # the resource group.
64
+ # @param [Hash{String => String}] A hash of custom headers that will be added
65
+ # to the HTTP request.
66
+ #
67
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
+ #
69
+ def list_by_profile_async(resource_group_name, profile_name, custom_headers:nil)
70
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
72
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
73
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
74
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
75
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
76
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
77
+
78
+
79
+ request_headers = {}
80
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
81
+
82
+ # Set Headers
83
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
84
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
85
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains'
86
+
87
+ request_url = @base_url || @client.base_url
88
+
89
+ options = {
90
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
91
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'subscriptionId' => @client.subscription_id},
92
+ query_params: {'api-version' => @client.api_version},
93
+ headers: request_headers.merge(custom_headers || {}),
94
+ base_url: request_url
95
+ }
96
+ promise = @client.make_request_async(:get, path_template, options)
97
+
98
+ promise = promise.then do |result|
99
+ http_response = result.response
100
+ status_code = http_response.status
101
+ response_content = http_response.body
102
+ unless status_code == 200
103
+ error_model = JSON.load(response_content)
104
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
105
+ end
106
+
107
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
108
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
109
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
110
+ # Deserialize Response
111
+ if status_code == 200
112
+ begin
113
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
114
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDDomainListResult.mapper()
115
+ result.body = @client.deserialize(result_mapper, parsed_response)
116
+ rescue Exception => e
117
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
118
+ end
119
+ end
120
+
121
+ result
122
+ end
123
+
124
+ promise.execute
125
+ end
126
+
127
+ #
128
+ # Gets an existing AzureFrontDoor domain with the specified domain name under
129
+ # the specified subscription, resource group and profile.
130
+ #
131
+ # @param resource_group_name [String] Name of the Resource group within the
132
+ # Azure subscription.
133
+ # @param profile_name [String] Name of the CDN profile which is unique within
134
+ # the resource group.
135
+ # @param custom_domain_name [String] Name of the domain under the profile which
136
+ # is unique globally.
137
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
138
+ # will be added to the HTTP request.
139
+ #
140
+ # @return [AFDDomain] operation results.
141
+ #
142
+ def get(resource_group_name, profile_name, custom_domain_name, custom_headers:nil)
143
+ response = get_async(resource_group_name, profile_name, custom_domain_name, custom_headers:custom_headers).value!
144
+ response.body unless response.nil?
145
+ end
146
+
147
+ #
148
+ # Gets an existing AzureFrontDoor domain with the specified domain name under
149
+ # the specified subscription, resource group and profile.
150
+ #
151
+ # @param resource_group_name [String] Name of the Resource group within the
152
+ # Azure subscription.
153
+ # @param profile_name [String] Name of the CDN profile which is unique within
154
+ # the resource group.
155
+ # @param custom_domain_name [String] Name of the domain under the profile which
156
+ # is unique globally.
157
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
158
+ # will be added to the HTTP request.
159
+ #
160
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
161
+ #
162
+ def get_with_http_info(resource_group_name, profile_name, custom_domain_name, custom_headers:nil)
163
+ get_async(resource_group_name, profile_name, custom_domain_name, custom_headers:custom_headers).value!
164
+ end
165
+
166
+ #
167
+ # Gets an existing AzureFrontDoor domain with the specified domain name under
168
+ # the specified subscription, resource group and profile.
169
+ #
170
+ # @param resource_group_name [String] Name of the Resource group within the
171
+ # Azure subscription.
172
+ # @param profile_name [String] Name of the CDN profile which is unique within
173
+ # the resource group.
174
+ # @param custom_domain_name [String] Name of the domain under the profile which
175
+ # is unique globally.
176
+ # @param [Hash{String => String}] A hash of custom headers that will be added
177
+ # to the HTTP request.
178
+ #
179
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
180
+ #
181
+ def get_async(resource_group_name, profile_name, custom_domain_name, custom_headers:nil)
182
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
183
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
184
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
185
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
186
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
187
+ fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
188
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
189
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
190
+
191
+
192
+ request_headers = {}
193
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
194
+
195
+ # Set Headers
196
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
197
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
198
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}'
199
+
200
+ request_url = @base_url || @client.base_url
201
+
202
+ options = {
203
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
204
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'customDomainName' => custom_domain_name,'subscriptionId' => @client.subscription_id},
205
+ query_params: {'api-version' => @client.api_version},
206
+ headers: request_headers.merge(custom_headers || {}),
207
+ base_url: request_url
208
+ }
209
+ promise = @client.make_request_async(:get, path_template, options)
210
+
211
+ promise = promise.then do |result|
212
+ http_response = result.response
213
+ status_code = http_response.status
214
+ response_content = http_response.body
215
+ unless status_code == 200
216
+ error_model = JSON.load(response_content)
217
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
218
+ end
219
+
220
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
221
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
222
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
223
+ # Deserialize Response
224
+ if status_code == 200
225
+ begin
226
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
227
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDDomain.mapper()
228
+ result.body = @client.deserialize(result_mapper, parsed_response)
229
+ rescue Exception => e
230
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
231
+ end
232
+ end
233
+
234
+ result
235
+ end
236
+
237
+ promise.execute
238
+ end
239
+
240
+ #
241
+ # Creates a new domain within the specified profile.
242
+ #
243
+ # @param resource_group_name [String] Name of the Resource group within the
244
+ # Azure subscription.
245
+ # @param profile_name [String] Name of the CDN profile which is unique within
246
+ # the resource group.
247
+ # @param custom_domain_name [String] Name of the domain under the profile which
248
+ # is unique globally
249
+ # @param custom_domain [AFDDomain] Domain properties
250
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
251
+ # will be added to the HTTP request.
252
+ #
253
+ # @return [AFDDomain] operation results.
254
+ #
255
+ def create(resource_group_name, profile_name, custom_domain_name, custom_domain, custom_headers:nil)
256
+ response = create_async(resource_group_name, profile_name, custom_domain_name, custom_domain, custom_headers:custom_headers).value!
257
+ response.body unless response.nil?
258
+ end
259
+
260
+ #
261
+ # @param resource_group_name [String] Name of the Resource group within the
262
+ # Azure subscription.
263
+ # @param profile_name [String] Name of the CDN profile which is unique within
264
+ # the resource group.
265
+ # @param custom_domain_name [String] Name of the domain under the profile which
266
+ # is unique globally
267
+ # @param custom_domain [AFDDomain] Domain properties
268
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
269
+ # will be added to the HTTP request.
270
+ #
271
+ # @return [Concurrent::Promise] promise which provides async access to http
272
+ # response.
273
+ #
274
+ def create_async(resource_group_name, profile_name, custom_domain_name, custom_domain, custom_headers:nil)
275
+ # Send request
276
+ promise = begin_create_async(resource_group_name, profile_name, custom_domain_name, custom_domain, custom_headers:custom_headers)
277
+
278
+ promise = promise.then do |response|
279
+ # Defining deserialization method.
280
+ deserialize_method = lambda do |parsed_response|
281
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDDomain.mapper()
282
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
283
+ end
284
+
285
+ # Waiting for response.
286
+ @client.get_long_running_operation_result(response, deserialize_method)
287
+ end
288
+
289
+ promise
290
+ end
291
+
292
+ #
293
+ # Updates an existing domain within a profile.
294
+ #
295
+ # @param resource_group_name [String] Name of the Resource group within the
296
+ # Azure subscription.
297
+ # @param profile_name [String] Name of the CDN profile which is unique within
298
+ # the resource group.
299
+ # @param custom_domain_name [String] Name of the domain under the profile which
300
+ # is unique globally
301
+ # @param custom_domain_update_properties [AFDDomainUpdateParameters] Domain
302
+ # properties
303
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
304
+ # will be added to the HTTP request.
305
+ #
306
+ # @return [AFDDomain] operation results.
307
+ #
308
+ def update(resource_group_name, profile_name, custom_domain_name, custom_domain_update_properties, custom_headers:nil)
309
+ response = update_async(resource_group_name, profile_name, custom_domain_name, custom_domain_update_properties, custom_headers:custom_headers).value!
310
+ response.body unless response.nil?
311
+ end
312
+
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 custom_domain_name [String] Name of the domain under the profile which
319
+ # is unique globally
320
+ # @param custom_domain_update_properties [AFDDomainUpdateParameters] Domain
321
+ # properties
322
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
323
+ # will be added to the HTTP request.
324
+ #
325
+ # @return [Concurrent::Promise] promise which provides async access to http
326
+ # response.
327
+ #
328
+ def update_async(resource_group_name, profile_name, custom_domain_name, custom_domain_update_properties, custom_headers:nil)
329
+ # Send request
330
+ promise = begin_update_async(resource_group_name, profile_name, custom_domain_name, custom_domain_update_properties, custom_headers:custom_headers)
331
+
332
+ promise = promise.then do |response|
333
+ # Defining deserialization method.
334
+ deserialize_method = lambda do |parsed_response|
335
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDDomain.mapper()
336
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
337
+ end
338
+
339
+ # Waiting for response.
340
+ @client.get_long_running_operation_result(response, deserialize_method)
341
+ end
342
+
343
+ promise
344
+ end
345
+
346
+ #
347
+ # Deletes an existing AzureFrontDoor domain with the specified domain name
348
+ # under the specified subscription, resource group and profile.
349
+ #
350
+ # @param resource_group_name [String] Name of the Resource group within the
351
+ # Azure subscription.
352
+ # @param profile_name [String] Name of the CDN profile which is unique within
353
+ # the resource group.
354
+ # @param custom_domain_name [String] Name of the domain under the profile which
355
+ # is unique globally.
356
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
357
+ # will be added to the HTTP request.
358
+ #
359
+ def delete(resource_group_name, profile_name, custom_domain_name, custom_headers:nil)
360
+ response = delete_async(resource_group_name, profile_name, custom_domain_name, custom_headers:custom_headers).value!
361
+ nil
362
+ end
363
+
364
+ #
365
+ # @param resource_group_name [String] Name of the Resource group within the
366
+ # Azure subscription.
367
+ # @param profile_name [String] Name of the CDN profile which is unique within
368
+ # the resource group.
369
+ # @param custom_domain_name [String] Name of the domain under the profile which
370
+ # is unique globally.
371
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
372
+ # will be added to the HTTP request.
373
+ #
374
+ # @return [Concurrent::Promise] promise which provides async access to http
375
+ # response.
376
+ #
377
+ def delete_async(resource_group_name, profile_name, custom_domain_name, custom_headers:nil)
378
+ # Send request
379
+ promise = begin_delete_async(resource_group_name, profile_name, custom_domain_name, custom_headers:custom_headers)
380
+
381
+ promise = promise.then do |response|
382
+ # Defining deserialization method.
383
+ deserialize_method = lambda do |parsed_response|
384
+ end
385
+
386
+ # Waiting for response.
387
+ @client.get_long_running_operation_result(response, deserialize_method)
388
+ end
389
+
390
+ promise
391
+ end
392
+
393
+ #
394
+ # Updates the domain validation token.
395
+ #
396
+ # @param resource_group_name [String] Name of the Resource group within the
397
+ # Azure subscription.
398
+ # @param profile_name [String] Name of the CDN profile which is unique within
399
+ # the resource group.
400
+ # @param custom_domain_name [String] Name of the domain under the profile which
401
+ # is unique globally.
402
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
403
+ # will be added to the HTTP request.
404
+ #
405
+ # @return [ValidationToken] operation results.
406
+ #
407
+ def refresh_validation_token(resource_group_name, profile_name, custom_domain_name, custom_headers:nil)
408
+ response = refresh_validation_token_async(resource_group_name, profile_name, custom_domain_name, custom_headers:custom_headers).value!
409
+ response.body unless response.nil?
410
+ end
411
+
412
+ #
413
+ # @param resource_group_name [String] Name of the Resource group within the
414
+ # Azure subscription.
415
+ # @param profile_name [String] Name of the CDN profile which is unique within
416
+ # the resource group.
417
+ # @param custom_domain_name [String] Name of the domain under the profile which
418
+ # is unique globally.
419
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
420
+ # will be added to the HTTP request.
421
+ #
422
+ # @return [Concurrent::Promise] promise which provides async access to http
423
+ # response.
424
+ #
425
+ def refresh_validation_token_async(resource_group_name, profile_name, custom_domain_name, custom_headers:nil)
426
+ # Send request
427
+ promise = begin_refresh_validation_token_async(resource_group_name, profile_name, custom_domain_name, custom_headers:custom_headers)
428
+
429
+ promise = promise.then do |response|
430
+ # Defining deserialization method.
431
+ deserialize_method = lambda do |parsed_response|
432
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::ValidationToken.mapper()
433
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
434
+ end
435
+
436
+ # Waiting for response.
437
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::AZURE_ASYNC_OPERATION)
438
+ end
439
+
440
+ promise
441
+ end
442
+
443
+ #
444
+ # Creates a new domain within the specified profile.
445
+ #
446
+ # @param resource_group_name [String] Name of the Resource group within the
447
+ # Azure subscription.
448
+ # @param profile_name [String] Name of the CDN profile which is unique within
449
+ # the resource group.
450
+ # @param custom_domain_name [String] Name of the domain under the profile which
451
+ # is unique globally
452
+ # @param custom_domain [AFDDomain] Domain properties
453
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
454
+ # will be added to the HTTP request.
455
+ #
456
+ # @return [AFDDomain] operation results.
457
+ #
458
+ def begin_create(resource_group_name, profile_name, custom_domain_name, custom_domain, custom_headers:nil)
459
+ response = begin_create_async(resource_group_name, profile_name, custom_domain_name, custom_domain, custom_headers:custom_headers).value!
460
+ response.body unless response.nil?
461
+ end
462
+
463
+ #
464
+ # Creates a new domain within the specified profile.
465
+ #
466
+ # @param resource_group_name [String] Name of the Resource group within the
467
+ # Azure subscription.
468
+ # @param profile_name [String] Name of the CDN profile which is unique within
469
+ # the resource group.
470
+ # @param custom_domain_name [String] Name of the domain under the profile which
471
+ # is unique globally
472
+ # @param custom_domain [AFDDomain] Domain properties
473
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
474
+ # will be added to the HTTP request.
475
+ #
476
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
477
+ #
478
+ def begin_create_with_http_info(resource_group_name, profile_name, custom_domain_name, custom_domain, custom_headers:nil)
479
+ begin_create_async(resource_group_name, profile_name, custom_domain_name, custom_domain, custom_headers:custom_headers).value!
480
+ end
481
+
482
+ #
483
+ # Creates a new domain within the specified profile.
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 custom_domain_name [String] Name of the domain under the profile which
490
+ # is unique globally
491
+ # @param custom_domain [AFDDomain] Domain properties
492
+ # @param [Hash{String => String}] A hash of custom headers that will be added
493
+ # to the HTTP request.
494
+ #
495
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
496
+ #
497
+ def begin_create_async(resource_group_name, profile_name, custom_domain_name, custom_domain, custom_headers:nil)
498
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
499
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
500
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
501
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
502
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
503
+ fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
504
+ fail ArgumentError, 'custom_domain is nil' if custom_domain.nil?
505
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
506
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
507
+
508
+
509
+ request_headers = {}
510
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
511
+
512
+ # Set Headers
513
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
514
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
515
+
516
+ # Serialize Request
517
+ request_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDDomain.mapper()
518
+ request_content = @client.serialize(request_mapper, custom_domain)
519
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
520
+
521
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}'
522
+
523
+ request_url = @base_url || @client.base_url
524
+
525
+ options = {
526
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
527
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'customDomainName' => custom_domain_name,'subscriptionId' => @client.subscription_id},
528
+ query_params: {'api-version' => @client.api_version},
529
+ body: request_content,
530
+ headers: request_headers.merge(custom_headers || {}),
531
+ base_url: request_url
532
+ }
533
+ promise = @client.make_request_async(:put, path_template, options)
534
+
535
+ promise = promise.then do |result|
536
+ http_response = result.response
537
+ status_code = http_response.status
538
+ response_content = http_response.body
539
+ unless status_code == 200 || status_code == 201
540
+ error_model = JSON.load(response_content)
541
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
542
+ end
543
+
544
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
545
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
546
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
547
+ # Deserialize Response
548
+ if status_code == 200
549
+ begin
550
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
551
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDDomain.mapper()
552
+ result.body = @client.deserialize(result_mapper, parsed_response)
553
+ rescue Exception => e
554
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
555
+ end
556
+ end
557
+ # Deserialize Response
558
+ if status_code == 201
559
+ begin
560
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
561
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDDomain.mapper()
562
+ result.body = @client.deserialize(result_mapper, parsed_response)
563
+ rescue Exception => e
564
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
565
+ end
566
+ end
567
+
568
+ result
569
+ end
570
+
571
+ promise.execute
572
+ end
573
+
574
+ #
575
+ # Updates an existing domain within a profile.
576
+ #
577
+ # @param resource_group_name [String] Name of the Resource group within the
578
+ # Azure subscription.
579
+ # @param profile_name [String] Name of the CDN profile which is unique within
580
+ # the resource group.
581
+ # @param custom_domain_name [String] Name of the domain under the profile which
582
+ # is unique globally
583
+ # @param custom_domain_update_properties [AFDDomainUpdateParameters] Domain
584
+ # properties
585
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
586
+ # will be added to the HTTP request.
587
+ #
588
+ # @return [AFDDomain] operation results.
589
+ #
590
+ def begin_update(resource_group_name, profile_name, custom_domain_name, custom_domain_update_properties, custom_headers:nil)
591
+ response = begin_update_async(resource_group_name, profile_name, custom_domain_name, custom_domain_update_properties, custom_headers:custom_headers).value!
592
+ response.body unless response.nil?
593
+ end
594
+
595
+ #
596
+ # Updates an existing domain within a profile.
597
+ #
598
+ # @param resource_group_name [String] Name of the Resource group within the
599
+ # Azure subscription.
600
+ # @param profile_name [String] Name of the CDN profile which is unique within
601
+ # the resource group.
602
+ # @param custom_domain_name [String] Name of the domain under the profile which
603
+ # is unique globally
604
+ # @param custom_domain_update_properties [AFDDomainUpdateParameters] Domain
605
+ # properties
606
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
607
+ # will be added to the HTTP request.
608
+ #
609
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
610
+ #
611
+ def begin_update_with_http_info(resource_group_name, profile_name, custom_domain_name, custom_domain_update_properties, custom_headers:nil)
612
+ begin_update_async(resource_group_name, profile_name, custom_domain_name, custom_domain_update_properties, custom_headers:custom_headers).value!
613
+ end
614
+
615
+ #
616
+ # Updates an existing domain within a profile.
617
+ #
618
+ # @param resource_group_name [String] Name of the Resource group within the
619
+ # Azure subscription.
620
+ # @param profile_name [String] Name of the CDN profile which is unique within
621
+ # the resource group.
622
+ # @param custom_domain_name [String] Name of the domain under the profile which
623
+ # is unique globally
624
+ # @param custom_domain_update_properties [AFDDomainUpdateParameters] Domain
625
+ # properties
626
+ # @param [Hash{String => String}] A hash of custom headers that will be added
627
+ # to the HTTP request.
628
+ #
629
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
630
+ #
631
+ def begin_update_async(resource_group_name, profile_name, custom_domain_name, custom_domain_update_properties, custom_headers:nil)
632
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
633
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
634
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
635
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
636
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
637
+ fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
638
+ fail ArgumentError, 'custom_domain_update_properties is nil' if custom_domain_update_properties.nil?
639
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
640
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
641
+
642
+
643
+ request_headers = {}
644
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
645
+
646
+ # Set Headers
647
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
648
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
649
+
650
+ # Serialize Request
651
+ request_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDDomainUpdateParameters.mapper()
652
+ request_content = @client.serialize(request_mapper, custom_domain_update_properties)
653
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
654
+
655
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}'
656
+
657
+ request_url = @base_url || @client.base_url
658
+
659
+ options = {
660
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
661
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'customDomainName' => custom_domain_name,'subscriptionId' => @client.subscription_id},
662
+ query_params: {'api-version' => @client.api_version},
663
+ body: request_content,
664
+ headers: request_headers.merge(custom_headers || {}),
665
+ base_url: request_url
666
+ }
667
+ promise = @client.make_request_async(:patch, path_template, options)
668
+
669
+ promise = promise.then do |result|
670
+ http_response = result.response
671
+ status_code = http_response.status
672
+ response_content = http_response.body
673
+ unless status_code == 200 || status_code == 202
674
+ error_model = JSON.load(response_content)
675
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
676
+ end
677
+
678
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
679
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
680
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
681
+ # Deserialize Response
682
+ if status_code == 200
683
+ begin
684
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
685
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDDomain.mapper()
686
+ result.body = @client.deserialize(result_mapper, parsed_response)
687
+ rescue Exception => e
688
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
689
+ end
690
+ end
691
+ # Deserialize Response
692
+ if status_code == 202
693
+ begin
694
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
695
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDDomain.mapper()
696
+ result.body = @client.deserialize(result_mapper, parsed_response)
697
+ rescue Exception => e
698
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
699
+ end
700
+ end
701
+
702
+ result
703
+ end
704
+
705
+ promise.execute
706
+ end
707
+
708
+ #
709
+ # Deletes an existing AzureFrontDoor domain with the specified domain name
710
+ # under the specified subscription, resource group and profile.
711
+ #
712
+ # @param resource_group_name [String] Name of the Resource group within the
713
+ # Azure subscription.
714
+ # @param profile_name [String] Name of the CDN profile which is unique within
715
+ # the resource group.
716
+ # @param custom_domain_name [String] Name of the domain under the profile which
717
+ # is unique globally.
718
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
719
+ # will be added to the HTTP request.
720
+ #
721
+ #
722
+ def begin_delete(resource_group_name, profile_name, custom_domain_name, custom_headers:nil)
723
+ response = begin_delete_async(resource_group_name, profile_name, custom_domain_name, custom_headers:custom_headers).value!
724
+ nil
725
+ end
726
+
727
+ #
728
+ # Deletes an existing AzureFrontDoor domain with the specified domain name
729
+ # under the specified subscription, resource group and profile.
730
+ #
731
+ # @param resource_group_name [String] Name of the Resource group within the
732
+ # Azure subscription.
733
+ # @param profile_name [String] Name of the CDN profile which is unique within
734
+ # the resource group.
735
+ # @param custom_domain_name [String] Name of the domain under the profile which
736
+ # is unique globally.
737
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
738
+ # will be added to the HTTP request.
739
+ #
740
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
741
+ #
742
+ def begin_delete_with_http_info(resource_group_name, profile_name, custom_domain_name, custom_headers:nil)
743
+ begin_delete_async(resource_group_name, profile_name, custom_domain_name, custom_headers:custom_headers).value!
744
+ end
745
+
746
+ #
747
+ # Deletes an existing AzureFrontDoor domain with the specified domain name
748
+ # under the specified subscription, resource group and profile.
749
+ #
750
+ # @param resource_group_name [String] Name of the Resource group within the
751
+ # Azure subscription.
752
+ # @param profile_name [String] Name of the CDN profile which is unique within
753
+ # the resource group.
754
+ # @param custom_domain_name [String] Name of the domain under the profile which
755
+ # is unique globally.
756
+ # @param [Hash{String => String}] A hash of custom headers that will be added
757
+ # to the HTTP request.
758
+ #
759
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
760
+ #
761
+ def begin_delete_async(resource_group_name, profile_name, custom_domain_name, custom_headers:nil)
762
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
763
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
764
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
765
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
766
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
767
+ fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
768
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
769
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
770
+
771
+
772
+ request_headers = {}
773
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
774
+
775
+ # Set Headers
776
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
777
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
778
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}'
779
+
780
+ request_url = @base_url || @client.base_url
781
+
782
+ options = {
783
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
784
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'customDomainName' => custom_domain_name,'subscriptionId' => @client.subscription_id},
785
+ query_params: {'api-version' => @client.api_version},
786
+ headers: request_headers.merge(custom_headers || {}),
787
+ base_url: request_url
788
+ }
789
+ promise = @client.make_request_async(:delete, path_template, options)
790
+
791
+ promise = promise.then do |result|
792
+ http_response = result.response
793
+ status_code = http_response.status
794
+ response_content = http_response.body
795
+ unless status_code == 200 || status_code == 204
796
+ error_model = JSON.load(response_content)
797
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
798
+ end
799
+
800
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
801
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
802
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
803
+
804
+ result
805
+ end
806
+
807
+ promise.execute
808
+ end
809
+
810
+ #
811
+ # Updates the domain validation token.
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 custom_domain_name [String] Name of the domain under the profile which
818
+ # is unique globally.
819
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
820
+ # will be added to the HTTP request.
821
+ #
822
+ # @return [ValidationToken] operation results.
823
+ #
824
+ def begin_refresh_validation_token(resource_group_name, profile_name, custom_domain_name, custom_headers:nil)
825
+ response = begin_refresh_validation_token_async(resource_group_name, profile_name, custom_domain_name, custom_headers:custom_headers).value!
826
+ response.body unless response.nil?
827
+ end
828
+
829
+ #
830
+ # Updates the domain validation token.
831
+ #
832
+ # @param resource_group_name [String] Name of the Resource group within the
833
+ # Azure subscription.
834
+ # @param profile_name [String] Name of the CDN profile which is unique within
835
+ # the resource group.
836
+ # @param custom_domain_name [String] Name of the domain under the profile which
837
+ # is unique globally.
838
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
839
+ # will be added to the HTTP request.
840
+ #
841
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
842
+ #
843
+ def begin_refresh_validation_token_with_http_info(resource_group_name, profile_name, custom_domain_name, custom_headers:nil)
844
+ begin_refresh_validation_token_async(resource_group_name, profile_name, custom_domain_name, custom_headers:custom_headers).value!
845
+ end
846
+
847
+ #
848
+ # Updates the domain validation token.
849
+ #
850
+ # @param resource_group_name [String] Name of the Resource group within the
851
+ # Azure subscription.
852
+ # @param profile_name [String] Name of the CDN profile which is unique within
853
+ # the resource group.
854
+ # @param custom_domain_name [String] Name of the domain under the profile which
855
+ # is unique globally.
856
+ # @param [Hash{String => String}] A hash of custom headers that will be added
857
+ # to the HTTP request.
858
+ #
859
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
860
+ #
861
+ def begin_refresh_validation_token_async(resource_group_name, profile_name, custom_domain_name, custom_headers:nil)
862
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
863
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
864
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
865
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
866
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
867
+ fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
868
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
869
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
870
+
871
+
872
+ request_headers = {}
873
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
874
+
875
+ # Set Headers
876
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
877
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
878
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}/refreshValidationToken'
879
+
880
+ request_url = @base_url || @client.base_url
881
+
882
+ options = {
883
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
884
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'customDomainName' => custom_domain_name,'subscriptionId' => @client.subscription_id},
885
+ query_params: {'api-version' => @client.api_version},
886
+ headers: request_headers.merge(custom_headers || {}),
887
+ base_url: request_url
888
+ }
889
+ promise = @client.make_request_async(:post, path_template, options)
890
+
891
+ promise = promise.then do |result|
892
+ http_response = result.response
893
+ status_code = http_response.status
894
+ response_content = http_response.body
895
+ unless status_code == 200
896
+ error_model = JSON.load(response_content)
897
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
898
+ end
899
+
900
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
901
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
902
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
903
+ # Deserialize Response
904
+ if status_code == 200
905
+ begin
906
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
907
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::ValidationToken.mapper()
908
+ result.body = @client.deserialize(result_mapper, parsed_response)
909
+ rescue Exception => e
910
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
911
+ end
912
+ end
913
+
914
+ result
915
+ end
916
+
917
+ promise.execute
918
+ end
919
+
920
+ #
921
+ # Lists existing AzureFrontDoor domains.
922
+ #
923
+ # @param next_page_link [String] The NextLink from the previous successful call
924
+ # to List operation.
925
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
926
+ # will be added to the HTTP request.
927
+ #
928
+ # @return [AFDDomainListResult] operation results.
929
+ #
930
+ def list_by_profile_next(next_page_link, custom_headers:nil)
931
+ response = list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value!
932
+ response.body unless response.nil?
933
+ end
934
+
935
+ #
936
+ # Lists existing AzureFrontDoor domains.
937
+ #
938
+ # @param next_page_link [String] The NextLink from the previous successful call
939
+ # to List operation.
940
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
941
+ # will be added to the HTTP request.
942
+ #
943
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
944
+ #
945
+ def list_by_profile_next_with_http_info(next_page_link, custom_headers:nil)
946
+ list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value!
947
+ end
948
+
949
+ #
950
+ # Lists existing AzureFrontDoor domains.
951
+ #
952
+ # @param next_page_link [String] The NextLink from the previous successful call
953
+ # to List operation.
954
+ # @param [Hash{String => String}] A hash of custom headers that will be added
955
+ # to the HTTP request.
956
+ #
957
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
958
+ #
959
+ def list_by_profile_next_async(next_page_link, custom_headers:nil)
960
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
961
+
962
+
963
+ request_headers = {}
964
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
965
+
966
+ # Set Headers
967
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
968
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
969
+ path_template = '{nextLink}'
970
+
971
+ request_url = @base_url || @client.base_url
972
+
973
+ options = {
974
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
975
+ skip_encoding_path_params: {'nextLink' => next_page_link},
976
+ headers: request_headers.merge(custom_headers || {}),
977
+ base_url: request_url
978
+ }
979
+ promise = @client.make_request_async(:get, path_template, options)
980
+
981
+ promise = promise.then do |result|
982
+ http_response = result.response
983
+ status_code = http_response.status
984
+ response_content = http_response.body
985
+ unless status_code == 200
986
+ error_model = JSON.load(response_content)
987
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
988
+ end
989
+
990
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
991
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
992
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
993
+ # Deserialize Response
994
+ if status_code == 200
995
+ begin
996
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
997
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDDomainListResult.mapper()
998
+ result.body = @client.deserialize(result_mapper, parsed_response)
999
+ rescue Exception => e
1000
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1001
+ end
1002
+ end
1003
+
1004
+ result
1005
+ end
1006
+
1007
+ promise.execute
1008
+ end
1009
+
1010
+ #
1011
+ # Lists existing AzureFrontDoor domains.
1012
+ #
1013
+ # @param resource_group_name [String] Name of the Resource group within the
1014
+ # Azure subscription.
1015
+ # @param profile_name [String] Name of the CDN profile which is unique within
1016
+ # the resource group.
1017
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1018
+ # will be added to the HTTP request.
1019
+ #
1020
+ # @return [AFDDomainListResult] which provide lazy access to pages of the
1021
+ # response.
1022
+ #
1023
+ def list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:nil)
1024
+ response = list_by_profile_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
1025
+ unless response.nil?
1026
+ page = response.body
1027
+ page.next_method = Proc.new do |next_page_link|
1028
+ list_by_profile_next_async(next_page_link, custom_headers:custom_headers)
1029
+ end
1030
+ page
1031
+ end
1032
+ end
1033
+
1034
+ end
1035
+ end