azure_mgmt_cdn 0.17.2 → 0.17.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (240) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2015-06-01/generated/azure_mgmt_cdn/cdn_management_client.rb +1 -1
  3. data/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb +10 -0
  4. data/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb +20 -0
  5. data/lib/2015-06-01/generated/azure_mgmt_cdn/name_availability.rb +2 -0
  6. data/lib/2015-06-01/generated/azure_mgmt_cdn/operations.rb +2 -0
  7. data/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb +10 -0
  8. data/lib/2015-06-01/generated/azure_mgmt_cdn/profiles.rb +14 -0
  9. data/lib/2016-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +1 -1
  10. data/lib/2016-04-02/generated/azure_mgmt_cdn/custom_domains.rb +10 -0
  11. data/lib/2016-04-02/generated/azure_mgmt_cdn/endpoints.rb +20 -0
  12. data/lib/2016-04-02/generated/azure_mgmt_cdn/name_availability.rb +2 -0
  13. data/lib/2016-04-02/generated/azure_mgmt_cdn/operations.rb +2 -0
  14. data/lib/2016-04-02/generated/azure_mgmt_cdn/origins.rb +10 -0
  15. data/lib/2016-04-02/generated/azure_mgmt_cdn/profiles.rb +14 -0
  16. data/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb +15 -1
  17. data/lib/2016-10-02/generated/azure_mgmt_cdn/custom_domains.rb +14 -0
  18. data/lib/2016-10-02/generated/azure_mgmt_cdn/edge_nodes.rb +4 -0
  19. data/lib/2016-10-02/generated/azure_mgmt_cdn/endpoints.rb +26 -0
  20. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +1 -1
  21. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/edgenode_result.rb +1 -1
  22. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +1 -1
  23. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation_list_result.rb +1 -1
  24. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin_list_result.rb +1 -1
  25. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile_list_result.rb +1 -1
  26. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +1 -1
  27. data/lib/2016-10-02/generated/azure_mgmt_cdn/origins.rb +8 -0
  28. data/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb +24 -0
  29. data/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +5 -1
  30. data/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb +14 -0
  31. data/lib/2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb +4 -0
  32. data/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb +26 -0
  33. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +1 -1
  34. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/edgenode_result.rb +1 -1
  35. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +1 -1
  36. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/operations_list_result.rb +1 -1
  37. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb +1 -1
  38. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb +1 -1
  39. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +1 -1
  40. data/lib/2017-04-02/generated/azure_mgmt_cdn/operations.rb +4 -0
  41. data/lib/2017-04-02/generated/azure_mgmt_cdn/origins.rb +8 -0
  42. data/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb +24 -0
  43. data/lib/2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb +4 -0
  44. data/lib/2017-10-12/generated/azure_mgmt_cdn/cdn_management_client.rb +7 -1
  45. data/lib/2017-10-12/generated/azure_mgmt_cdn/custom_domains.rb +14 -0
  46. data/lib/2017-10-12/generated/azure_mgmt_cdn/edge_nodes.rb +4 -0
  47. data/lib/2017-10-12/generated/azure_mgmt_cdn/endpoints.rb +26 -0
  48. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +1 -1
  49. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/edgenode_result.rb +1 -1
  50. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +1 -1
  51. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operations_list_result.rb +1 -1
  52. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_list_result.rb +1 -1
  53. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_list_result.rb +1 -1
  54. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +1 -1
  55. data/lib/2017-10-12/generated/azure_mgmt_cdn/operations.rb +4 -0
  56. data/lib/2017-10-12/generated/azure_mgmt_cdn/origins.rb +8 -0
  57. data/lib/2017-10-12/generated/azure_mgmt_cdn/profiles.rb +24 -0
  58. data/lib/2017-10-12/generated/azure_mgmt_cdn/resource_usage_operations.rb +4 -0
  59. data/lib/2020-04-15/generated/azure_mgmt_cdn.rb +202 -0
  60. data/lib/2020-04-15/generated/azure_mgmt_cdn/cdn_management_client.rb +478 -0
  61. data/lib/2020-04-15/generated/azure_mgmt_cdn/custom_domains.rb +1001 -0
  62. data/lib/2020-04-15/generated/azure_mgmt_cdn/edge_nodes.rb +225 -0
  63. data/lib/2020-04-15/generated/azure_mgmt_cdn/endpoints.rb +1946 -0
  64. data/lib/2020-04-15/generated/azure_mgmt_cdn/managed_rule_sets.rb +221 -0
  65. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/action_type.rb +18 -0
  66. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/algorithm.rb +15 -0
  67. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cache_behavior.rb +17 -0
  68. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb +88 -0
  69. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cache_key_query_string_action_parameters.rb +75 -0
  70. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_certificate_source_parameters.rb +62 -0
  71. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_endpoint.rb +46 -0
  72. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_managed_https_parameters.rb +82 -0
  73. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy.rb +210 -0
  74. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_list.rb +103 -0
  75. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_patch_parameters.rb +55 -0
  76. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/certificate_type.rb +16 -0
  77. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
  78. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +72 -0
  79. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +57 -0
  80. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cookies_match_condition_parameters.rb +123 -0
  81. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cookies_operator.rb +23 -0
  82. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain.rb +148 -0
  83. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_https_parameters.rb +73 -0
  84. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +102 -0
  85. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +48 -0
  86. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
  87. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb +19 -0
  88. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb +24 -0
  89. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_rule.rb +108 -0
  90. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_rule_enabled_state.rb +16 -0
  91. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_rule_list.rb +55 -0
  92. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/deep_created_origin.rb +200 -0
  93. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/deep_created_origin_group.rb +114 -0
  94. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule.rb +107 -0
  95. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_action.rb +52 -0
  96. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb +64 -0
  97. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_cache_key_query_string_action.rb +64 -0
  98. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb +59 -0
  99. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_cookies_condition.rb +64 -0
  100. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_http_version_condition.rb +64 -0
  101. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_is_device_condition.rb +64 -0
  102. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_post_args_condition.rb +64 -0
  103. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_query_string_condition.rb +64 -0
  104. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_remote_address_condition.rb +64 -0
  105. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_body_condition.rb +64 -0
  106. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_header_action.rb +63 -0
  107. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_header_condition.rb +64 -0
  108. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_method_condition.rb +64 -0
  109. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_scheme_condition.rb +64 -0
  110. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_uri_condition.rb +64 -0
  111. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_response_header_action.rb +63 -0
  112. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb +64 -0
  113. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_url_file_name_condition.rb +64 -0
  114. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb +64 -0
  115. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/destination_protocol.rb +17 -0
  116. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/edge_node.rb +83 -0
  117. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/edgenode_result.rb +101 -0
  118. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint.rb +391 -0
  119. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +101 -0
  120. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb +67 -0
  121. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_web_application_firewall_policy_link.rb +49 -0
  122. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
  123. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +274 -0
  124. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/error_response.rb +60 -0
  125. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/geo_filter.rb +80 -0
  126. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
  127. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/header_action.rb +17 -0
  128. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/header_action_parameters.rb +83 -0
  129. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/health_probe_parameters.rb +90 -0
  130. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/health_probe_request_type.rb +17 -0
  131. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/http_error_range_parameters.rb +65 -0
  132. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/http_version_match_condition_parameters.rb +95 -0
  133. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/ip_address_group.rb +86 -0
  134. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/is_device_match_condition_parameters.rb +113 -0
  135. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/key_vault_certificate_source_parameters.rb +137 -0
  136. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/key_vault_signing_key_parameters.rb +106 -0
  137. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
  138. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_definition.rb +59 -0
  139. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_enabled_state.rb +16 -0
  140. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_group_definition.rb +81 -0
  141. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_group_override.rb +68 -0
  142. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_override.rb +72 -0
  143. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set.rb +94 -0
  144. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set_definition.rb +133 -0
  145. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set_definition_list.rb +101 -0
  146. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set_list.rb +55 -0
  147. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/match_condition.rb +125 -0
  148. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/match_variable.rb +23 -0
  149. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/minimum_tls_version.rb +17 -0
  150. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/operation.rb +59 -0
  151. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/operation_display.rb +72 -0
  152. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/operations_list_result.rb +102 -0
  153. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/operator.rb +26 -0
  154. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
  155. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin.rb +256 -0
  156. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_group.rb +153 -0
  157. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_group_list_result.rb +102 -0
  158. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_group_resource_state.rb +17 -0
  159. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_group_update_parameters.rb +100 -0
  160. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_list_result.rb +101 -0
  161. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
  162. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +187 -0
  163. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/param_indicator.rb +17 -0
  164. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/policy_enabled_state.rb +16 -0
  165. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/policy_mode.rb +16 -0
  166. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/policy_resource_state.rb +20 -0
  167. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/policy_settings.rb +99 -0
  168. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/post_args_match_condition_parameters.rb +123 -0
  169. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/post_args_operator.rb +23 -0
  170. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/private_endpoint_status.rb +19 -0
  171. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/probe_protocol.rb +17 -0
  172. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/profile.rb +125 -0
  173. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/profile_list_result.rb +101 -0
  174. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
  175. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
  176. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/protocol_type.rb +16 -0
  177. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/provisioning_state.rb +17 -0
  178. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/proxy_resource.rb +63 -0
  179. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
  180. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/query_string_behavior.rb +18 -0
  181. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
  182. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/query_string_match_condition_parameters.rb +114 -0
  183. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/query_string_operator.rb +23 -0
  184. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/rate_limit_rule.rb +117 -0
  185. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/rate_limit_rule_list.rb +55 -0
  186. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/redirect_type.rb +18 -0
  187. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/remote_address_match_condition_parameters.rb +114 -0
  188. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/remote_address_operator.rb +17 -0
  189. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_body_match_condition_parameters.rb +114 -0
  190. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_body_operator.rb +23 -0
  191. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_header_match_condition_parameters.rb +125 -0
  192. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_header_operator.rb +23 -0
  193. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_method_match_condition_parameters.rb +95 -0
  194. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_scheme_match_condition_parameters.rb +95 -0
  195. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_uri_match_condition_parameters.rb +113 -0
  196. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_uri_operator.rb +23 -0
  197. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource.rb +80 -0
  198. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource_reference.rb +46 -0
  199. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
  200. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource_usage.rb +83 -0
  201. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +100 -0
  202. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/response_based_detected_error_types.rb +17 -0
  203. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/response_based_origin_error_detection_parameters.rb +89 -0
  204. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/sku.rb +50 -0
  205. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/sku_name.rb +21 -0
  206. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/sso_uri.rb +48 -0
  207. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +56 -0
  208. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
  209. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/transform.rb +16 -0
  210. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/transform_type.rb +20 -0
  211. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_file_extension_match_condition_parameters.rb +114 -0
  212. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_file_extension_operator.rb +23 -0
  213. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_file_name_match_condition_parameters.rb +114 -0
  214. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_file_name_operator.rb +23 -0
  215. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_path_match_condition_parameters.rb +114 -0
  216. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_path_operator.rb +24 -0
  217. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_redirect_action.rb +64 -0
  218. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_redirect_action_parameters.rb +127 -0
  219. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_rewrite_action.rb +64 -0
  220. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_rewrite_action_parameters.rb +86 -0
  221. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_signing_action.rb +63 -0
  222. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_signing_action_parameters.rb +112 -0
  223. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_signing_key.rb +62 -0
  224. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_signing_param_identifier.rb +58 -0
  225. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/user_managed_https_parameters.rb +82 -0
  226. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
  227. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +72 -0
  228. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/validate_probe_input.rb +46 -0
  229. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/validate_probe_output.rb +73 -0
  230. data/lib/2020-04-15/generated/azure_mgmt_cdn/module_definition.rb +9 -0
  231. data/lib/2020-04-15/generated/azure_mgmt_cdn/operations.rb +219 -0
  232. data/lib/2020-04-15/generated/azure_mgmt_cdn/origin_groups.rb +927 -0
  233. data/lib/2020-04-15/generated/azure_mgmt_cdn/origins.rb +922 -0
  234. data/lib/2020-04-15/generated/azure_mgmt_cdn/policies.rb +789 -0
  235. data/lib/2020-04-15/generated/azure_mgmt_cdn/profiles.rb +1482 -0
  236. data/lib/2020-04-15/generated/azure_mgmt_cdn/resource_usage_operations.rb +228 -0
  237. data/lib/azure_mgmt_cdn.rb +4 -3
  238. data/lib/profiles/latest/modules/cdn_profile_module.rb +576 -174
  239. data/lib/version.rb +1 -1
  240. metadata +183 -5
@@ -93,6 +93,8 @@ module Azure::CDN::Mgmt::V2017_10_12
93
93
  end
94
94
 
95
95
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
96
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
97
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
96
98
  # Deserialize Response
97
99
  if status_code == 200
98
100
  begin
@@ -184,6 +186,8 @@ module Azure::CDN::Mgmt::V2017_10_12
184
186
  end
185
187
 
186
188
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
189
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
190
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
187
191
  # Deserialize Response
188
192
  if status_code == 200
189
193
  begin
@@ -0,0 +1,202 @@
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-04-15/generated/azure_mgmt_cdn/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::CDN::Mgmt::V2020_04_15
23
+ autoload :Profiles, '2020-04-15/generated/azure_mgmt_cdn/profiles.rb'
24
+ autoload :Endpoints, '2020-04-15/generated/azure_mgmt_cdn/endpoints.rb'
25
+ autoload :Origins, '2020-04-15/generated/azure_mgmt_cdn/origins.rb'
26
+ autoload :OriginGroups, '2020-04-15/generated/azure_mgmt_cdn/origin_groups.rb'
27
+ autoload :CustomDomains, '2020-04-15/generated/azure_mgmt_cdn/custom_domains.rb'
28
+ autoload :ResourceUsageOperations, '2020-04-15/generated/azure_mgmt_cdn/resource_usage_operations.rb'
29
+ autoload :Operations, '2020-04-15/generated/azure_mgmt_cdn/operations.rb'
30
+ autoload :EdgeNodes, '2020-04-15/generated/azure_mgmt_cdn/edge_nodes.rb'
31
+ autoload :Policies, '2020-04-15/generated/azure_mgmt_cdn/policies.rb'
32
+ autoload :ManagedRuleSets, '2020-04-15/generated/azure_mgmt_cdn/managed_rule_sets.rb'
33
+ autoload :CdnManagementClient, '2020-04-15/generated/azure_mgmt_cdn/cdn_management_client.rb'
34
+
35
+ module Models
36
+ autoload :UrlRedirectActionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/url_redirect_action_parameters.rb'
37
+ autoload :PolicySettings, '2020-04-15/generated/azure_mgmt_cdn/models/policy_settings.rb'
38
+ autoload :UrlFileNameMatchConditionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/url_file_name_match_condition_parameters.rb'
39
+ autoload :ProfileListResult, '2020-04-15/generated/azure_mgmt_cdn/models/profile_list_result.rb'
40
+ autoload :ResourceUsageListResult, '2020-04-15/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb'
41
+ autoload :SsoUri, '2020-04-15/generated/azure_mgmt_cdn/models/sso_uri.rb'
42
+ autoload :HttpVersionMatchConditionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/http_version_match_condition_parameters.rb'
43
+ autoload :DeepCreatedOrigin, '2020-04-15/generated/azure_mgmt_cdn/models/deep_created_origin.rb'
44
+ autoload :ResourceUsage, '2020-04-15/generated/azure_mgmt_cdn/models/resource_usage.rb'
45
+ autoload :ResourceReference, '2020-04-15/generated/azure_mgmt_cdn/models/resource_reference.rb'
46
+ autoload :CookiesMatchConditionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/cookies_match_condition_parameters.rb'
47
+ autoload :ResponseBasedOriginErrorDetectionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/response_based_origin_error_detection_parameters.rb'
48
+ autoload :ValidateProbeOutput, '2020-04-15/generated/azure_mgmt_cdn/models/validate_probe_output.rb'
49
+ autoload :ErrorResponse, '2020-04-15/generated/azure_mgmt_cdn/models/error_response.rb'
50
+ autoload :IsDeviceMatchConditionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/is_device_match_condition_parameters.rb'
51
+ autoload :GeoFilter, '2020-04-15/generated/azure_mgmt_cdn/models/geo_filter.rb'
52
+ autoload :ValidateProbeInput, '2020-04-15/generated/azure_mgmt_cdn/models/validate_probe_input.rb'
53
+ autoload :UrlSigningKey, '2020-04-15/generated/azure_mgmt_cdn/models/url_signing_key.rb'
54
+ autoload :Sku, '2020-04-15/generated/azure_mgmt_cdn/models/sku.rb'
55
+ autoload :DeliveryRuleAction, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_action.rb'
56
+ autoload :MatchCondition, '2020-04-15/generated/azure_mgmt_cdn/models/match_condition.rb'
57
+ autoload :EndpointPropertiesUpdateParametersDeliveryPolicy, '2020-04-15/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb'
58
+ autoload :UrlSigningParamIdentifier, '2020-04-15/generated/azure_mgmt_cdn/models/url_signing_param_identifier.rb'
59
+ autoload :EndpointUpdateParameters, '2020-04-15/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb'
60
+ autoload :UrlSigningActionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/url_signing_action_parameters.rb'
61
+ autoload :CustomRuleList, '2020-04-15/generated/azure_mgmt_cdn/models/custom_rule_list.rb'
62
+ autoload :RateLimitRuleList, '2020-04-15/generated/azure_mgmt_cdn/models/rate_limit_rule_list.rb'
63
+ autoload :ManagedRuleOverride, '2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_override.rb'
64
+ autoload :UrlRewriteActionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/url_rewrite_action_parameters.rb'
65
+ autoload :Resource, '2020-04-15/generated/azure_mgmt_cdn/models/resource.rb'
66
+ autoload :CustomRule, '2020-04-15/generated/azure_mgmt_cdn/models/custom_rule.rb'
67
+ autoload :EdgenodeResult, '2020-04-15/generated/azure_mgmt_cdn/models/edgenode_result.rb'
68
+ autoload :HeaderActionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/header_action_parameters.rb'
69
+ autoload :ManagedRuleGroupOverride, '2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_group_override.rb'
70
+ autoload :IpAddressGroup, '2020-04-15/generated/azure_mgmt_cdn/models/ip_address_group.rb'
71
+ autoload :ManagedRuleSetDefinitionList, '2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set_definition_list.rb'
72
+ autoload :CidrIpAddress, '2020-04-15/generated/azure_mgmt_cdn/models/cidr_ip_address.rb'
73
+ autoload :CacheExpirationActionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb'
74
+ autoload :OperationsListResult, '2020-04-15/generated/azure_mgmt_cdn/models/operations_list_result.rb'
75
+ autoload :ManagedRuleGroupDefinition, '2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_group_definition.rb'
76
+ autoload :Operation, '2020-04-15/generated/azure_mgmt_cdn/models/operation.rb'
77
+ autoload :CacheKeyQueryStringActionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/cache_key_query_string_action_parameters.rb'
78
+ autoload :OperationDisplay, '2020-04-15/generated/azure_mgmt_cdn/models/operation_display.rb'
79
+ autoload :ManagedRuleDefinition, '2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_definition.rb'
80
+ autoload :SupportedOptimizationTypesListResult, '2020-04-15/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb'
81
+ autoload :PurgeParameters, '2020-04-15/generated/azure_mgmt_cdn/models/purge_parameters.rb'
82
+ autoload :HttpErrorRangeParameters, '2020-04-15/generated/azure_mgmt_cdn/models/http_error_range_parameters.rb'
83
+ autoload :LoadParameters, '2020-04-15/generated/azure_mgmt_cdn/models/load_parameters.rb'
84
+ autoload :EndpointListResult, '2020-04-15/generated/azure_mgmt_cdn/models/endpoint_list_result.rb'
85
+ autoload :CdnWebApplicationFirewallPolicyPatchParameters, '2020-04-15/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_patch_parameters.rb'
86
+ autoload :DeliveryRuleCondition, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb'
87
+ autoload :OriginUpdateParameters, '2020-04-15/generated/azure_mgmt_cdn/models/origin_update_parameters.rb'
88
+ autoload :EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink, '2020-04-15/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_web_application_firewall_policy_link.rb'
89
+ autoload :OriginListResult, '2020-04-15/generated/azure_mgmt_cdn/models/origin_list_result.rb'
90
+ autoload :RequestMethodMatchConditionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/request_method_match_condition_parameters.rb'
91
+ autoload :CdnWebApplicationFirewallPolicyList, '2020-04-15/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_list.rb'
92
+ autoload :PostArgsMatchConditionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/post_args_match_condition_parameters.rb'
93
+ autoload :OriginGroupUpdateParameters, '2020-04-15/generated/azure_mgmt_cdn/models/origin_group_update_parameters.rb'
94
+ autoload :RequestHeaderMatchConditionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/request_header_match_condition_parameters.rb'
95
+ autoload :OriginGroupListResult, '2020-04-15/generated/azure_mgmt_cdn/models/origin_group_list_result.rb'
96
+ autoload :RequestSchemeMatchConditionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/request_scheme_match_condition_parameters.rb'
97
+ autoload :CdnEndpoint, '2020-04-15/generated/azure_mgmt_cdn/models/cdn_endpoint.rb'
98
+ autoload :UrlFileExtensionMatchConditionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/url_file_extension_match_condition_parameters.rb'
99
+ autoload :CustomDomainParameters, '2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb'
100
+ autoload :HealthProbeParameters, '2020-04-15/generated/azure_mgmt_cdn/models/health_probe_parameters.rb'
101
+ autoload :CustomDomainHttpsParameters, '2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_https_parameters.rb'
102
+ autoload :KeyVaultSigningKeyParameters, '2020-04-15/generated/azure_mgmt_cdn/models/key_vault_signing_key_parameters.rb'
103
+ autoload :CdnCertificateSourceParameters, '2020-04-15/generated/azure_mgmt_cdn/models/cdn_certificate_source_parameters.rb'
104
+ autoload :RemoteAddressMatchConditionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/remote_address_match_condition_parameters.rb'
105
+ autoload :ManagedRuleSetList, '2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set_list.rb'
106
+ autoload :RequestUriMatchConditionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/request_uri_match_condition_parameters.rb'
107
+ autoload :KeyVaultCertificateSourceParameters, '2020-04-15/generated/azure_mgmt_cdn/models/key_vault_certificate_source_parameters.rb'
108
+ autoload :UrlPathMatchConditionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/url_path_match_condition_parameters.rb'
109
+ autoload :ManagedRuleSet, '2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set.rb'
110
+ autoload :DeepCreatedOriginGroup, '2020-04-15/generated/azure_mgmt_cdn/models/deep_created_origin_group.rb'
111
+ autoload :CustomDomainListResult, '2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb'
112
+ autoload :QueryStringMatchConditionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/query_string_match_condition_parameters.rb'
113
+ autoload :ValidateCustomDomainInput, '2020-04-15/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb'
114
+ autoload :ProfileUpdateParameters, '2020-04-15/generated/azure_mgmt_cdn/models/profile_update_parameters.rb'
115
+ autoload :ValidateCustomDomainOutput, '2020-04-15/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb'
116
+ autoload :RequestBodyMatchConditionParameters, '2020-04-15/generated/azure_mgmt_cdn/models/request_body_match_condition_parameters.rb'
117
+ autoload :CheckNameAvailabilityInput, '2020-04-15/generated/azure_mgmt_cdn/models/check_name_availability_input.rb'
118
+ autoload :DeliveryRule, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule.rb'
119
+ autoload :CheckNameAvailabilityOutput, '2020-04-15/generated/azure_mgmt_cdn/models/check_name_availability_output.rb'
120
+ autoload :Profile, '2020-04-15/generated/azure_mgmt_cdn/models/profile.rb'
121
+ autoload :Endpoint, '2020-04-15/generated/azure_mgmt_cdn/models/endpoint.rb'
122
+ autoload :DeliveryRuleRemoteAddressCondition, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_remote_address_condition.rb'
123
+ autoload :DeliveryRuleRequestMethodCondition, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_method_condition.rb'
124
+ autoload :DeliveryRuleQueryStringCondition, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_query_string_condition.rb'
125
+ autoload :DeliveryRulePostArgsCondition, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_post_args_condition.rb'
126
+ autoload :DeliveryRuleRequestUriCondition, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_uri_condition.rb'
127
+ autoload :DeliveryRuleRequestHeaderCondition, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_header_condition.rb'
128
+ autoload :DeliveryRuleRequestBodyCondition, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_body_condition.rb'
129
+ autoload :DeliveryRuleRequestSchemeCondition, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_scheme_condition.rb'
130
+ autoload :DeliveryRuleUrlPathCondition, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb'
131
+ autoload :DeliveryRuleUrlFileExtensionCondition, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb'
132
+ autoload :DeliveryRuleUrlFileNameCondition, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_url_file_name_condition.rb'
133
+ autoload :DeliveryRuleHttpVersionCondition, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_http_version_condition.rb'
134
+ autoload :DeliveryRuleCookiesCondition, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_cookies_condition.rb'
135
+ autoload :DeliveryRuleIsDeviceCondition, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_is_device_condition.rb'
136
+ autoload :UrlRedirectAction, '2020-04-15/generated/azure_mgmt_cdn/models/url_redirect_action.rb'
137
+ autoload :UrlSigningAction, '2020-04-15/generated/azure_mgmt_cdn/models/url_signing_action.rb'
138
+ autoload :UrlRewriteAction, '2020-04-15/generated/azure_mgmt_cdn/models/url_rewrite_action.rb'
139
+ autoload :DeliveryRuleRequestHeaderAction, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_header_action.rb'
140
+ autoload :DeliveryRuleResponseHeaderAction, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_response_header_action.rb'
141
+ autoload :DeliveryRuleCacheExpirationAction, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb'
142
+ autoload :DeliveryRuleCacheKeyQueryStringAction, '2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_cache_key_query_string_action.rb'
143
+ autoload :ProxyResource, '2020-04-15/generated/azure_mgmt_cdn/models/proxy_resource.rb'
144
+ autoload :Origin, '2020-04-15/generated/azure_mgmt_cdn/models/origin.rb'
145
+ autoload :OriginGroup, '2020-04-15/generated/azure_mgmt_cdn/models/origin_group.rb'
146
+ autoload :CustomDomain, '2020-04-15/generated/azure_mgmt_cdn/models/custom_domain.rb'
147
+ autoload :CdnManagedHttpsParameters, '2020-04-15/generated/azure_mgmt_cdn/models/cdn_managed_https_parameters.rb'
148
+ autoload :UserManagedHttpsParameters, '2020-04-15/generated/azure_mgmt_cdn/models/user_managed_https_parameters.rb'
149
+ autoload :EdgeNode, '2020-04-15/generated/azure_mgmt_cdn/models/edge_node.rb'
150
+ autoload :TrackedResource, '2020-04-15/generated/azure_mgmt_cdn/models/tracked_resource.rb'
151
+ autoload :RateLimitRule, '2020-04-15/generated/azure_mgmt_cdn/models/rate_limit_rule.rb'
152
+ autoload :CdnWebApplicationFirewallPolicy, '2020-04-15/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy.rb'
153
+ autoload :ManagedRuleSetDefinition, '2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set_definition.rb'
154
+ autoload :SkuName, '2020-04-15/generated/azure_mgmt_cdn/models/sku_name.rb'
155
+ autoload :ProfileResourceState, '2020-04-15/generated/azure_mgmt_cdn/models/profile_resource_state.rb'
156
+ autoload :OptimizationType, '2020-04-15/generated/azure_mgmt_cdn/models/optimization_type.rb'
157
+ autoload :HealthProbeRequestType, '2020-04-15/generated/azure_mgmt_cdn/models/health_probe_request_type.rb'
158
+ autoload :ProbeProtocol, '2020-04-15/generated/azure_mgmt_cdn/models/probe_protocol.rb'
159
+ autoload :ResponseBasedDetectedErrorTypes, '2020-04-15/generated/azure_mgmt_cdn/models/response_based_detected_error_types.rb'
160
+ autoload :EndpointResourceState, '2020-04-15/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb'
161
+ autoload :QueryStringCachingBehavior, '2020-04-15/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb'
162
+ autoload :GeoFilterActions, '2020-04-15/generated/azure_mgmt_cdn/models/geo_filter_actions.rb'
163
+ autoload :RemoteAddressOperator, '2020-04-15/generated/azure_mgmt_cdn/models/remote_address_operator.rb'
164
+ autoload :Transform, '2020-04-15/generated/azure_mgmt_cdn/models/transform.rb'
165
+ autoload :QueryStringOperator, '2020-04-15/generated/azure_mgmt_cdn/models/query_string_operator.rb'
166
+ autoload :PostArgsOperator, '2020-04-15/generated/azure_mgmt_cdn/models/post_args_operator.rb'
167
+ autoload :RequestUriOperator, '2020-04-15/generated/azure_mgmt_cdn/models/request_uri_operator.rb'
168
+ autoload :RequestHeaderOperator, '2020-04-15/generated/azure_mgmt_cdn/models/request_header_operator.rb'
169
+ autoload :RequestBodyOperator, '2020-04-15/generated/azure_mgmt_cdn/models/request_body_operator.rb'
170
+ autoload :UrlPathOperator, '2020-04-15/generated/azure_mgmt_cdn/models/url_path_operator.rb'
171
+ autoload :UrlFileExtensionOperator, '2020-04-15/generated/azure_mgmt_cdn/models/url_file_extension_operator.rb'
172
+ autoload :UrlFileNameOperator, '2020-04-15/generated/azure_mgmt_cdn/models/url_file_name_operator.rb'
173
+ autoload :CookiesOperator, '2020-04-15/generated/azure_mgmt_cdn/models/cookies_operator.rb'
174
+ autoload :RedirectType, '2020-04-15/generated/azure_mgmt_cdn/models/redirect_type.rb'
175
+ autoload :DestinationProtocol, '2020-04-15/generated/azure_mgmt_cdn/models/destination_protocol.rb'
176
+ autoload :Algorithm, '2020-04-15/generated/azure_mgmt_cdn/models/algorithm.rb'
177
+ autoload :ParamIndicator, '2020-04-15/generated/azure_mgmt_cdn/models/param_indicator.rb'
178
+ autoload :HeaderAction, '2020-04-15/generated/azure_mgmt_cdn/models/header_action.rb'
179
+ autoload :CacheBehavior, '2020-04-15/generated/azure_mgmt_cdn/models/cache_behavior.rb'
180
+ autoload :QueryStringBehavior, '2020-04-15/generated/azure_mgmt_cdn/models/query_string_behavior.rb'
181
+ autoload :OriginResourceState, '2020-04-15/generated/azure_mgmt_cdn/models/origin_resource_state.rb'
182
+ autoload :PrivateEndpointStatus, '2020-04-15/generated/azure_mgmt_cdn/models/private_endpoint_status.rb'
183
+ autoload :OriginGroupResourceState, '2020-04-15/generated/azure_mgmt_cdn/models/origin_group_resource_state.rb'
184
+ autoload :CustomDomainResourceState, '2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb'
185
+ autoload :CustomHttpsProvisioningState, '2020-04-15/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb'
186
+ autoload :CustomHttpsProvisioningSubstate, '2020-04-15/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb'
187
+ autoload :ProtocolType, '2020-04-15/generated/azure_mgmt_cdn/models/protocol_type.rb'
188
+ autoload :MinimumTlsVersion, '2020-04-15/generated/azure_mgmt_cdn/models/minimum_tls_version.rb'
189
+ autoload :CertificateType, '2020-04-15/generated/azure_mgmt_cdn/models/certificate_type.rb'
190
+ autoload :ResourceType, '2020-04-15/generated/azure_mgmt_cdn/models/resource_type.rb'
191
+ autoload :PolicyEnabledState, '2020-04-15/generated/azure_mgmt_cdn/models/policy_enabled_state.rb'
192
+ autoload :PolicyMode, '2020-04-15/generated/azure_mgmt_cdn/models/policy_mode.rb'
193
+ autoload :CustomRuleEnabledState, '2020-04-15/generated/azure_mgmt_cdn/models/custom_rule_enabled_state.rb'
194
+ autoload :MatchVariable, '2020-04-15/generated/azure_mgmt_cdn/models/match_variable.rb'
195
+ autoload :Operator, '2020-04-15/generated/azure_mgmt_cdn/models/operator.rb'
196
+ autoload :TransformType, '2020-04-15/generated/azure_mgmt_cdn/models/transform_type.rb'
197
+ autoload :ActionType, '2020-04-15/generated/azure_mgmt_cdn/models/action_type.rb'
198
+ autoload :ManagedRuleEnabledState, '2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_enabled_state.rb'
199
+ autoload :ProvisioningState, '2020-04-15/generated/azure_mgmt_cdn/models/provisioning_state.rb'
200
+ autoload :PolicyResourceState, '2020-04-15/generated/azure_mgmt_cdn/models/policy_resource_state.rb'
201
+ end
202
+ end
@@ -0,0 +1,478 @@
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_04_15
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class CdnManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] Azure Subscription ID.
21
+ attr_accessor :subscription_id
22
+
23
+ # @return [String] Version of the API to be used with the client request.
24
+ # Current version is 2017-04-02.
25
+ attr_reader :api_version
26
+
27
+ # @return [String] The preferred language for the response.
28
+ attr_accessor :accept_language
29
+
30
+ # @return [Integer] The retry timeout in seconds for Long Running
31
+ # Operations. Default value is 30.
32
+ attr_accessor :long_running_operation_retry_timeout
33
+
34
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
35
+ # generated. When set to true a unique x-ms-client-request-id value is
36
+ # generated and included in each request. Default is true.
37
+ attr_accessor :generate_client_request_id
38
+
39
+ # @return [Profiles] profiles
40
+ attr_reader :profiles
41
+
42
+ # @return [Endpoints] endpoints
43
+ attr_reader :endpoints
44
+
45
+ # @return [Origins] origins
46
+ attr_reader :origins
47
+
48
+ # @return [OriginGroups] origin_groups
49
+ attr_reader :origin_groups
50
+
51
+ # @return [CustomDomains] custom_domains
52
+ attr_reader :custom_domains
53
+
54
+ # @return [ResourceUsageOperations] resource_usage_operations
55
+ attr_reader :resource_usage_operations
56
+
57
+ # @return [Operations] operations
58
+ attr_reader :operations
59
+
60
+ # @return [EdgeNodes] edge_nodes
61
+ attr_reader :edge_nodes
62
+
63
+ # @return [Policies] policies
64
+ attr_reader :policies
65
+
66
+ # @return [ManagedRuleSets] managed_rule_sets
67
+ attr_reader :managed_rule_sets
68
+
69
+ #
70
+ # Creates initializes a new instance of the CdnManagementClient class.
71
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
72
+ # @param base_url [String] the base URI of the service.
73
+ # @param options [Array] filters to be applied to the HTTP requests.
74
+ #
75
+ def initialize(credentials = nil, base_url = nil, options = nil)
76
+ super(credentials, options)
77
+ @base_url = base_url || 'https://management.azure.com'
78
+
79
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
80
+ @credentials = credentials
81
+
82
+ @profiles = Profiles.new(self)
83
+ @endpoints = Endpoints.new(self)
84
+ @origins = Origins.new(self)
85
+ @origin_groups = OriginGroups.new(self)
86
+ @custom_domains = CustomDomains.new(self)
87
+ @resource_usage_operations = ResourceUsageOperations.new(self)
88
+ @operations = Operations.new(self)
89
+ @edge_nodes = EdgeNodes.new(self)
90
+ @policies = Policies.new(self)
91
+ @managed_rule_sets = ManagedRuleSets.new(self)
92
+ @api_version = '2020-04-15'
93
+ @accept_language = 'en-US'
94
+ @long_running_operation_retry_timeout = 30
95
+ @generate_client_request_id = true
96
+ add_telemetry
97
+ end
98
+
99
+ #
100
+ # Makes a request and returns the body of the response.
101
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
102
+ # @param path [String] the path, relative to {base_url}.
103
+ # @param options [Hash{String=>String}] specifying any request options like :body.
104
+ # @return [Hash{String=>String}] containing the body of the response.
105
+ # Example:
106
+ #
107
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
108
+ # path = "/path"
109
+ # options = {
110
+ # body: request_content,
111
+ # query_params: {'api-version' => '2016-02-01'}
112
+ # }
113
+ # result = @client.make_request(:put, path, options)
114
+ #
115
+ def make_request(method, path, options = {})
116
+ result = make_request_with_http_info(method, path, options)
117
+ result.body unless result.nil?
118
+ end
119
+
120
+ #
121
+ # Makes a request and returns the operation response.
122
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
123
+ # @param path [String] the path, relative to {base_url}.
124
+ # @param options [Hash{String=>String}] specifying any request options like :body.
125
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
126
+ #
127
+ def make_request_with_http_info(method, path, options = {})
128
+ result = make_request_async(method, path, options).value!
129
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
130
+ result
131
+ end
132
+
133
+ #
134
+ # Makes a request asynchronously.
135
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
136
+ # @param path [String] the path, relative to {base_url}.
137
+ # @param options [Hash{String=>String}] specifying any request options like :body.
138
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
139
+ #
140
+ def make_request_async(method, path, options = {})
141
+ fail ArgumentError, 'method is nil' if method.nil?
142
+ fail ArgumentError, 'path is nil' if path.nil?
143
+
144
+ request_url = options[:base_url] || @base_url
145
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
146
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
147
+ end
148
+
149
+ request_headers = @request_headers
150
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
151
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
152
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
153
+
154
+ super(request_url, method, path, options)
155
+ end
156
+
157
+ #
158
+ # Check the availability of a resource name. This is needed for resources where
159
+ # name is globally unique, such as a CDN endpoint.
160
+ #
161
+ # @param check_name_availability_input [CheckNameAvailabilityInput] Input to
162
+ # check.
163
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
164
+ # will be added to the HTTP request.
165
+ #
166
+ # @return [CheckNameAvailabilityOutput] operation results.
167
+ #
168
+ def check_name_availability(check_name_availability_input, custom_headers:nil)
169
+ response = check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value!
170
+ response.body unless response.nil?
171
+ end
172
+
173
+ #
174
+ # Check the availability of a resource name. This is needed for resources where
175
+ # name is globally unique, such as a CDN endpoint.
176
+ #
177
+ # @param check_name_availability_input [CheckNameAvailabilityInput] Input to
178
+ # check.
179
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
180
+ # will be added to the HTTP request.
181
+ #
182
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
183
+ #
184
+ def check_name_availability_with_http_info(check_name_availability_input, custom_headers:nil)
185
+ check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value!
186
+ end
187
+
188
+ #
189
+ # Check the availability of a resource name. This is needed for resources where
190
+ # name is globally unique, such as a CDN endpoint.
191
+ #
192
+ # @param check_name_availability_input [CheckNameAvailabilityInput] Input to
193
+ # check.
194
+ # @param [Hash{String => String}] A hash of custom headers that will be added
195
+ # to the HTTP request.
196
+ #
197
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
198
+ #
199
+ def check_name_availability_async(check_name_availability_input, custom_headers:nil)
200
+ fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.nil?
201
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
202
+
203
+
204
+ request_headers = {}
205
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
206
+
207
+ # Set Headers
208
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
209
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
210
+
211
+ # Serialize Request
212
+ request_mapper = Azure::CDN::Mgmt::V2020_04_15::Models::CheckNameAvailabilityInput.mapper()
213
+ request_content = self.serialize(request_mapper, check_name_availability_input)
214
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
215
+
216
+ path_template = 'providers/Microsoft.Cdn/checkNameAvailability'
217
+
218
+ request_url = @base_url || self.base_url
219
+
220
+ options = {
221
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
222
+ query_params: {'api-version' => api_version},
223
+ body: request_content,
224
+ headers: request_headers.merge(custom_headers || {}),
225
+ base_url: request_url
226
+ }
227
+ promise = self.make_request_async(:post, path_template, options)
228
+
229
+ promise = promise.then do |result|
230
+ http_response = result.response
231
+ status_code = http_response.status
232
+ response_content = http_response.body
233
+ unless status_code == 200
234
+ error_model = JSON.load(response_content)
235
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
236
+ end
237
+
238
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
239
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
240
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
241
+ # Deserialize Response
242
+ if status_code == 200
243
+ begin
244
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
245
+ result_mapper = Azure::CDN::Mgmt::V2020_04_15::Models::CheckNameAvailabilityOutput.mapper()
246
+ result.body = self.deserialize(result_mapper, parsed_response)
247
+ rescue Exception => e
248
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
249
+ end
250
+ end
251
+
252
+ result
253
+ end
254
+
255
+ promise.execute
256
+ end
257
+
258
+ #
259
+ # Check the availability of a resource name. This is needed for resources where
260
+ # name is globally unique, such as a CDN endpoint.
261
+ #
262
+ # @param check_name_availability_input [CheckNameAvailabilityInput] Input to
263
+ # check.
264
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
265
+ # will be added to the HTTP request.
266
+ #
267
+ # @return [CheckNameAvailabilityOutput] operation results.
268
+ #
269
+ def check_name_availability_with_subscription(check_name_availability_input, custom_headers:nil)
270
+ response = check_name_availability_with_subscription_async(check_name_availability_input, custom_headers:custom_headers).value!
271
+ response.body unless response.nil?
272
+ end
273
+
274
+ #
275
+ # Check the availability of a resource name. This is needed for resources where
276
+ # name is globally unique, such as a CDN endpoint.
277
+ #
278
+ # @param check_name_availability_input [CheckNameAvailabilityInput] Input to
279
+ # check.
280
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
281
+ # will be added to the HTTP request.
282
+ #
283
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
284
+ #
285
+ def check_name_availability_with_subscription_with_http_info(check_name_availability_input, custom_headers:nil)
286
+ check_name_availability_with_subscription_async(check_name_availability_input, custom_headers:custom_headers).value!
287
+ end
288
+
289
+ #
290
+ # Check the availability of a resource name. This is needed for resources where
291
+ # name is globally unique, such as a CDN endpoint.
292
+ #
293
+ # @param check_name_availability_input [CheckNameAvailabilityInput] Input to
294
+ # check.
295
+ # @param [Hash{String => String}] A hash of custom headers that will be added
296
+ # to the HTTP request.
297
+ #
298
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
299
+ #
300
+ def check_name_availability_with_subscription_async(check_name_availability_input, custom_headers:nil)
301
+ fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.nil?
302
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
303
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
304
+
305
+
306
+ request_headers = {}
307
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
308
+
309
+ # Set Headers
310
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
311
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
312
+
313
+ # Serialize Request
314
+ request_mapper = Azure::CDN::Mgmt::V2020_04_15::Models::CheckNameAvailabilityInput.mapper()
315
+ request_content = self.serialize(request_mapper, check_name_availability_input)
316
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
317
+
318
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkNameAvailability'
319
+
320
+ request_url = @base_url || self.base_url
321
+
322
+ options = {
323
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
324
+ path_params: {'subscriptionId' => subscription_id},
325
+ query_params: {'api-version' => api_version},
326
+ body: request_content,
327
+ headers: request_headers.merge(custom_headers || {}),
328
+ base_url: request_url
329
+ }
330
+ promise = self.make_request_async(:post, path_template, options)
331
+
332
+ promise = promise.then do |result|
333
+ http_response = result.response
334
+ status_code = http_response.status
335
+ response_content = http_response.body
336
+ unless status_code == 200
337
+ error_model = JSON.load(response_content)
338
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
339
+ end
340
+
341
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
342
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
343
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
344
+ # Deserialize Response
345
+ if status_code == 200
346
+ begin
347
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
348
+ result_mapper = Azure::CDN::Mgmt::V2020_04_15::Models::CheckNameAvailabilityOutput.mapper()
349
+ result.body = self.deserialize(result_mapper, parsed_response)
350
+ rescue Exception => e
351
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
352
+ end
353
+ end
354
+
355
+ result
356
+ end
357
+
358
+ promise.execute
359
+ end
360
+
361
+ #
362
+ # Check if the probe path is a valid path and the file can be accessed. Probe
363
+ # path is the path to a file hosted on the origin server to help accelerate the
364
+ # delivery of dynamic content via the CDN endpoint. This path is relative to
365
+ # the origin path specified in the endpoint configuration.
366
+ #
367
+ # @param validate_probe_input [ValidateProbeInput] Input to check.
368
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
369
+ # will be added to the HTTP request.
370
+ #
371
+ # @return [ValidateProbeOutput] operation results.
372
+ #
373
+ def validate_probe(validate_probe_input, custom_headers:nil)
374
+ response = validate_probe_async(validate_probe_input, custom_headers:custom_headers).value!
375
+ response.body unless response.nil?
376
+ end
377
+
378
+ #
379
+ # Check if the probe path is a valid path and the file can be accessed. Probe
380
+ # path is the path to a file hosted on the origin server to help accelerate the
381
+ # delivery of dynamic content via the CDN endpoint. This path is relative to
382
+ # the origin path specified in the endpoint configuration.
383
+ #
384
+ # @param validate_probe_input [ValidateProbeInput] Input to check.
385
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
386
+ # will be added to the HTTP request.
387
+ #
388
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
389
+ #
390
+ def validate_probe_with_http_info(validate_probe_input, custom_headers:nil)
391
+ validate_probe_async(validate_probe_input, custom_headers:custom_headers).value!
392
+ end
393
+
394
+ #
395
+ # Check if the probe path is a valid path and the file can be accessed. Probe
396
+ # path is the path to a file hosted on the origin server to help accelerate the
397
+ # delivery of dynamic content via the CDN endpoint. This path is relative to
398
+ # the origin path specified in the endpoint configuration.
399
+ #
400
+ # @param validate_probe_input [ValidateProbeInput] Input to check.
401
+ # @param [Hash{String => String}] A hash of custom headers that will be added
402
+ # to the HTTP request.
403
+ #
404
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
405
+ #
406
+ def validate_probe_async(validate_probe_input, custom_headers:nil)
407
+ fail ArgumentError, 'validate_probe_input is nil' if validate_probe_input.nil?
408
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
409
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
410
+
411
+
412
+ request_headers = {}
413
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
414
+
415
+ # Set Headers
416
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
417
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
418
+
419
+ # Serialize Request
420
+ request_mapper = Azure::CDN::Mgmt::V2020_04_15::Models::ValidateProbeInput.mapper()
421
+ request_content = self.serialize(request_mapper, validate_probe_input)
422
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
423
+
424
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/validateProbe'
425
+
426
+ request_url = @base_url || self.base_url
427
+
428
+ options = {
429
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
430
+ path_params: {'subscriptionId' => subscription_id},
431
+ query_params: {'api-version' => api_version},
432
+ body: request_content,
433
+ headers: request_headers.merge(custom_headers || {}),
434
+ base_url: request_url
435
+ }
436
+ promise = self.make_request_async(:post, path_template, options)
437
+
438
+ promise = promise.then do |result|
439
+ http_response = result.response
440
+ status_code = http_response.status
441
+ response_content = http_response.body
442
+ unless status_code == 200
443
+ error_model = JSON.load(response_content)
444
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
445
+ end
446
+
447
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
448
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
449
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
450
+ # Deserialize Response
451
+ if status_code == 200
452
+ begin
453
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
454
+ result_mapper = Azure::CDN::Mgmt::V2020_04_15::Models::ValidateProbeOutput.mapper()
455
+ result.body = self.deserialize(result_mapper, parsed_response)
456
+ rescue Exception => e
457
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
458
+ end
459
+ end
460
+
461
+ result
462
+ end
463
+
464
+ promise.execute
465
+ end
466
+
467
+
468
+ private
469
+ #
470
+ # Adds telemetry information.
471
+ #
472
+ def add_telemetry
473
+ sdk_information = 'azure_mgmt_cdn'
474
+ sdk_information = "#{sdk_information}/0.17.7"
475
+ add_user_agent_information(sdk_information)
476
+ end
477
+ end
478
+ end