azure_mgmt_cdn 0.17.4 → 0.18.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (499) 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/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 +17 -3
  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/origins.rb +8 -0
  21. data/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb +24 -0
  22. data/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +5 -1
  23. data/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb +14 -0
  24. data/lib/2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb +4 -0
  25. data/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb +26 -0
  26. data/lib/2017-04-02/generated/azure_mgmt_cdn/operations.rb +4 -0
  27. data/lib/2017-04-02/generated/azure_mgmt_cdn/origins.rb +8 -0
  28. data/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb +24 -0
  29. data/lib/2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb +4 -0
  30. data/lib/2017-10-12/generated/azure_mgmt_cdn/cdn_management_client.rb +7 -1
  31. data/lib/2017-10-12/generated/azure_mgmt_cdn/custom_domains.rb +14 -0
  32. data/lib/2017-10-12/generated/azure_mgmt_cdn/edge_nodes.rb +4 -0
  33. data/lib/2017-10-12/generated/azure_mgmt_cdn/endpoints.rb +26 -0
  34. data/lib/2017-10-12/generated/azure_mgmt_cdn/operations.rb +4 -0
  35. data/lib/2017-10-12/generated/azure_mgmt_cdn/origins.rb +8 -0
  36. data/lib/2017-10-12/generated/azure_mgmt_cdn/profiles.rb +24 -0
  37. data/lib/2017-10-12/generated/azure_mgmt_cdn/resource_usage_operations.rb +4 -0
  38. data/lib/2020-04-15/generated/azure_mgmt_cdn.rb +202 -0
  39. data/lib/2020-04-15/generated/azure_mgmt_cdn/cdn_management_client.rb +478 -0
  40. data/lib/2020-04-15/generated/azure_mgmt_cdn/custom_domains.rb +1001 -0
  41. data/lib/2020-04-15/generated/azure_mgmt_cdn/edge_nodes.rb +225 -0
  42. data/lib/2020-04-15/generated/azure_mgmt_cdn/endpoints.rb +1946 -0
  43. data/lib/2020-04-15/generated/azure_mgmt_cdn/managed_rule_sets.rb +221 -0
  44. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/action_type.rb +18 -0
  45. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/algorithm.rb +15 -0
  46. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cache_behavior.rb +17 -0
  47. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb +88 -0
  48. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cache_key_query_string_action_parameters.rb +75 -0
  49. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_certificate_source_parameters.rb +62 -0
  50. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_endpoint.rb +46 -0
  51. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_managed_https_parameters.rb +82 -0
  52. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy.rb +210 -0
  53. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_list.rb +103 -0
  54. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_patch_parameters.rb +55 -0
  55. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/certificate_type.rb +16 -0
  56. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
  57. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +72 -0
  58. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +57 -0
  59. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cookies_match_condition_parameters.rb +123 -0
  60. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cookies_operator.rb +23 -0
  61. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain.rb +148 -0
  62. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_https_parameters.rb +73 -0
  63. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +102 -0
  64. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +48 -0
  65. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
  66. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb +19 -0
  67. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb +24 -0
  68. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_rule.rb +108 -0
  69. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_rule_enabled_state.rb +16 -0
  70. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_rule_list.rb +55 -0
  71. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/deep_created_origin.rb +200 -0
  72. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/deep_created_origin_group.rb +114 -0
  73. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule.rb +107 -0
  74. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_action.rb +52 -0
  75. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb +64 -0
  76. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_cache_key_query_string_action.rb +64 -0
  77. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb +59 -0
  78. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_cookies_condition.rb +64 -0
  79. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_http_version_condition.rb +64 -0
  80. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_is_device_condition.rb +64 -0
  81. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_post_args_condition.rb +64 -0
  82. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_query_string_condition.rb +64 -0
  83. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_remote_address_condition.rb +64 -0
  84. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_body_condition.rb +64 -0
  85. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_header_action.rb +63 -0
  86. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_header_condition.rb +64 -0
  87. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_method_condition.rb +64 -0
  88. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_scheme_condition.rb +64 -0
  89. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_uri_condition.rb +64 -0
  90. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_response_header_action.rb +63 -0
  91. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb +64 -0
  92. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_url_file_name_condition.rb +64 -0
  93. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb +64 -0
  94. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/destination_protocol.rb +17 -0
  95. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/edge_node.rb +83 -0
  96. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/edgenode_result.rb +101 -0
  97. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint.rb +391 -0
  98. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +101 -0
  99. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb +67 -0
  100. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_web_application_firewall_policy_link.rb +49 -0
  101. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
  102. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +274 -0
  103. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/error_response.rb +60 -0
  104. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/geo_filter.rb +80 -0
  105. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
  106. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/header_action.rb +17 -0
  107. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/header_action_parameters.rb +83 -0
  108. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/health_probe_parameters.rb +90 -0
  109. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/health_probe_request_type.rb +17 -0
  110. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/http_error_range_parameters.rb +65 -0
  111. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/http_version_match_condition_parameters.rb +95 -0
  112. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/ip_address_group.rb +86 -0
  113. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/is_device_match_condition_parameters.rb +113 -0
  114. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/key_vault_certificate_source_parameters.rb +137 -0
  115. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/key_vault_signing_key_parameters.rb +106 -0
  116. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
  117. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_definition.rb +59 -0
  118. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_enabled_state.rb +16 -0
  119. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_group_definition.rb +81 -0
  120. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_group_override.rb +68 -0
  121. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_override.rb +72 -0
  122. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set.rb +94 -0
  123. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set_definition.rb +133 -0
  124. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set_definition_list.rb +101 -0
  125. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set_list.rb +55 -0
  126. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/match_condition.rb +125 -0
  127. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/match_variable.rb +23 -0
  128. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/minimum_tls_version.rb +17 -0
  129. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/operation.rb +59 -0
  130. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/operation_display.rb +72 -0
  131. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/operations_list_result.rb +102 -0
  132. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/operator.rb +26 -0
  133. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
  134. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin.rb +256 -0
  135. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_group.rb +153 -0
  136. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_group_list_result.rb +102 -0
  137. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_group_resource_state.rb +17 -0
  138. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_group_update_parameters.rb +100 -0
  139. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_list_result.rb +101 -0
  140. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
  141. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +187 -0
  142. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/param_indicator.rb +17 -0
  143. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/policy_enabled_state.rb +16 -0
  144. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/policy_mode.rb +16 -0
  145. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/policy_resource_state.rb +20 -0
  146. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/policy_settings.rb +99 -0
  147. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/post_args_match_condition_parameters.rb +123 -0
  148. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/post_args_operator.rb +23 -0
  149. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/private_endpoint_status.rb +19 -0
  150. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/probe_protocol.rb +17 -0
  151. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/profile.rb +125 -0
  152. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/profile_list_result.rb +101 -0
  153. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
  154. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
  155. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/protocol_type.rb +16 -0
  156. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/provisioning_state.rb +17 -0
  157. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/proxy_resource.rb +63 -0
  158. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
  159. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/query_string_behavior.rb +18 -0
  160. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
  161. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/query_string_match_condition_parameters.rb +114 -0
  162. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/query_string_operator.rb +23 -0
  163. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/rate_limit_rule.rb +117 -0
  164. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/rate_limit_rule_list.rb +55 -0
  165. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/redirect_type.rb +18 -0
  166. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/remote_address_match_condition_parameters.rb +114 -0
  167. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/remote_address_operator.rb +17 -0
  168. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_body_match_condition_parameters.rb +114 -0
  169. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_body_operator.rb +23 -0
  170. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_header_match_condition_parameters.rb +125 -0
  171. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_header_operator.rb +23 -0
  172. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_method_match_condition_parameters.rb +95 -0
  173. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_scheme_match_condition_parameters.rb +95 -0
  174. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_uri_match_condition_parameters.rb +113 -0
  175. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_uri_operator.rb +23 -0
  176. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource.rb +80 -0
  177. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource_reference.rb +46 -0
  178. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
  179. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource_usage.rb +83 -0
  180. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +100 -0
  181. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/response_based_detected_error_types.rb +17 -0
  182. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/response_based_origin_error_detection_parameters.rb +89 -0
  183. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/sku.rb +50 -0
  184. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/sku_name.rb +21 -0
  185. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/sso_uri.rb +48 -0
  186. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +56 -0
  187. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
  188. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/transform.rb +16 -0
  189. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/transform_type.rb +20 -0
  190. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_file_extension_match_condition_parameters.rb +114 -0
  191. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_file_extension_operator.rb +23 -0
  192. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_file_name_match_condition_parameters.rb +114 -0
  193. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_file_name_operator.rb +23 -0
  194. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_path_match_condition_parameters.rb +114 -0
  195. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_path_operator.rb +24 -0
  196. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_redirect_action.rb +64 -0
  197. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_redirect_action_parameters.rb +127 -0
  198. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_rewrite_action.rb +64 -0
  199. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_rewrite_action_parameters.rb +86 -0
  200. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_signing_action.rb +63 -0
  201. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_signing_action_parameters.rb +112 -0
  202. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_signing_key.rb +62 -0
  203. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_signing_param_identifier.rb +58 -0
  204. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/user_managed_https_parameters.rb +82 -0
  205. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
  206. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +72 -0
  207. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/validate_probe_input.rb +46 -0
  208. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/validate_probe_output.rb +73 -0
  209. data/lib/2020-04-15/generated/azure_mgmt_cdn/module_definition.rb +9 -0
  210. data/lib/2020-04-15/generated/azure_mgmt_cdn/operations.rb +219 -0
  211. data/lib/2020-04-15/generated/azure_mgmt_cdn/origin_groups.rb +927 -0
  212. data/lib/2020-04-15/generated/azure_mgmt_cdn/origins.rb +922 -0
  213. data/lib/2020-04-15/generated/azure_mgmt_cdn/policies.rb +789 -0
  214. data/lib/2020-04-15/generated/azure_mgmt_cdn/profiles.rb +1482 -0
  215. data/lib/2020-04-15/generated/azure_mgmt_cdn/resource_usage_operations.rb +228 -0
  216. data/lib/2020-09-01/generated/azure_mgmt_cdn.rb +304 -0
  217. data/lib/2020-09-01/generated/azure_mgmt_cdn/afdcustom_domains.rb +1035 -0
  218. data/lib/2020-09-01/generated/azure_mgmt_cdn/afdendpoints.rb +1426 -0
  219. data/lib/2020-09-01/generated/azure_mgmt_cdn/afdorigin_groups.rb +1094 -0
  220. data/lib/2020-09-01/generated/azure_mgmt_cdn/afdorigins.rb +912 -0
  221. data/lib/2020-09-01/generated/azure_mgmt_cdn/afdprofiles.rb +362 -0
  222. data/lib/2020-09-01/generated/azure_mgmt_cdn/cdn_management_client.rb +533 -0
  223. data/lib/2020-09-01/generated/azure_mgmt_cdn/custom_domains.rb +1001 -0
  224. data/lib/2020-09-01/generated/azure_mgmt_cdn/edge_nodes.rb +225 -0
  225. data/lib/2020-09-01/generated/azure_mgmt_cdn/endpoints.rb +1946 -0
  226. data/lib/2020-09-01/generated/azure_mgmt_cdn/log_analytics.rb +748 -0
  227. data/lib/2020-09-01/generated/azure_mgmt_cdn/managed_rule_sets.rb +221 -0
  228. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/action_type.rb +18 -0
  229. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afd_certificate_type.rb +16 -0
  230. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afd_error_response.rb +51 -0
  231. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afd_minimum_tls_version.rb +16 -0
  232. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afd_provisioning_state.rb +19 -0
  233. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afd_purge_parameters.rb +74 -0
  234. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afddomain.rb +166 -0
  235. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afddomain_https_parameters.rb +73 -0
  236. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afddomain_list_result.rb +102 -0
  237. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afddomain_update_parameters.rb +62 -0
  238. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdendpoint.rb +166 -0
  239. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdendpoint_list_result.rb +102 -0
  240. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdendpoint_protocols.rb +16 -0
  241. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdendpoint_update_parameters.rb +82 -0
  242. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin.rb +232 -0
  243. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_group.rb +169 -0
  244. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_group_list_result.rb +102 -0
  245. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_group_update_parameters.rb +105 -0
  246. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_list_result.rb +101 -0
  247. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdorigin_update_parameters.rb +166 -0
  248. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/afdstate_properties.rb +61 -0
  249. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/algorithm.rb +15 -0
  250. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cache_behavior.rb +17 -0
  251. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb +88 -0
  252. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cache_key_query_string_action_parameters.rb +75 -0
  253. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_certificate_source_parameters.rb +62 -0
  254. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_endpoint.rb +46 -0
  255. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_managed_https_parameters.rb +82 -0
  256. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy.rb +220 -0
  257. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_list.rb +103 -0
  258. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_patch_parameters.rb +55 -0
  259. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/certificate.rb +68 -0
  260. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/certificate_type.rb +16 -0
  261. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
  262. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +72 -0
  263. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +57 -0
  264. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/compression_settings.rb +70 -0
  265. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/continents_response.rb +75 -0
  266. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/continents_response_continents_item.rb +47 -0
  267. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/continents_response_country_or_regions_item.rb +58 -0
  268. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cookies_match_condition_parameters.rb +124 -0
  269. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/cookies_operator.rb +24 -0
  270. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_domain.rb +158 -0
  271. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_domain_https_parameters.rb +73 -0
  272. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +102 -0
  273. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +48 -0
  274. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
  275. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb +19 -0
  276. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb +24 -0
  277. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_rule.rb +108 -0
  278. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_rule_enabled_state.rb +16 -0
  279. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/custom_rule_list.rb +55 -0
  280. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/customer_certificate.rb +122 -0
  281. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/customer_certificate_parameters.rb +144 -0
  282. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/deep_created_origin.rb +200 -0
  283. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/deep_created_origin_group.rb +114 -0
  284. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule.rb +107 -0
  285. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_action.rb +53 -0
  286. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb +64 -0
  287. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_cache_key_query_string_action.rb +64 -0
  288. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb +59 -0
  289. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_cookies_condition.rb +64 -0
  290. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_http_version_condition.rb +64 -0
  291. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_is_device_condition.rb +64 -0
  292. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_post_args_condition.rb +64 -0
  293. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_query_string_condition.rb +64 -0
  294. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_remote_address_condition.rb +64 -0
  295. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_body_condition.rb +64 -0
  296. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_header_action.rb +63 -0
  297. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_header_condition.rb +64 -0
  298. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_method_condition.rb +64 -0
  299. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_scheme_condition.rb +64 -0
  300. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_request_uri_condition.rb +64 -0
  301. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_response_header_action.rb +63 -0
  302. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb +64 -0
  303. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_url_file_name_condition.rb +64 -0
  304. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb +64 -0
  305. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/deployment_status.rb +18 -0
  306. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/destination_protocol.rb +17 -0
  307. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/domain_validation_properties.rb +60 -0
  308. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/domain_validation_state.rb +20 -0
  309. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/edge_node.rb +93 -0
  310. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/edgenode_result.rb +101 -0
  311. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/enabled_state.rb +16 -0
  312. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint.rb +401 -0
  313. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +101 -0
  314. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb +67 -0
  315. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_web_application_firewall_policy_link.rb +49 -0
  316. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
  317. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +274 -0
  318. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/error_response.rb +60 -0
  319. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/forwarding_protocol.rb +17 -0
  320. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/geo_filter.rb +80 -0
  321. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
  322. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/header_action.rb +17 -0
  323. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/header_action_parameters.rb +83 -0
  324. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/health_probe_parameters.rb +90 -0
  325. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/health_probe_request_type.rb +17 -0
  326. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/http_error_range_parameters.rb +65 -0
  327. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/http_version_match_condition_parameters.rb +95 -0
  328. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/https_redirect.rb +16 -0
  329. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/identity_type.rb +18 -0
  330. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/ip_address_group.rb +86 -0
  331. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/is_device_match_condition_parameters.rb +113 -0
  332. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/key_vault_certificate_source_parameters.rb +137 -0
  333. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/key_vault_signing_key_parameters.rb +106 -0
  334. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/link_to_default_domain.rb +16 -0
  335. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/load_balancing_settings_parameters.rb +71 -0
  336. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
  337. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_certificate.rb +59 -0
  338. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_certificate_parameters.rb +80 -0
  339. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_definition.rb +59 -0
  340. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_enabled_state.rb +16 -0
  341. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_group_definition.rb +81 -0
  342. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_group_override.rb +68 -0
  343. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_override.rb +72 -0
  344. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_set.rb +94 -0
  345. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_set_definition.rb +133 -0
  346. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_set_definition_list.rb +101 -0
  347. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/managed_rule_set_list.rb +55 -0
  348. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb +125 -0
  349. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/match_processing_behavior.rb +16 -0
  350. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/match_variable.rb +23 -0
  351. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/metrics_response.rb +88 -0
  352. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/metrics_response_series_item.rb +99 -0
  353. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/metrics_response_series_item_data_item.rb +58 -0
  354. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/metrics_response_series_item_groups_item.rb +58 -0
  355. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/minimum_tls_version.rb +17 -0
  356. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/operation.rb +59 -0
  357. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/operation_display.rb +72 -0
  358. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/operations_list_result.rb +102 -0
  359. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/operator.rb +26 -0
  360. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
  361. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin.rb +266 -0
  362. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group.rb +163 -0
  363. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group_list_result.rb +102 -0
  364. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group_override_action.rb +64 -0
  365. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group_override_action_parameters.rb +63 -0
  366. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group_resource_state.rb +17 -0
  367. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_group_update_parameters.rb +100 -0
  368. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_list_result.rb +101 -0
  369. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
  370. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +187 -0
  371. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/param_indicator.rb +17 -0
  372. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/policy_enabled_state.rb +16 -0
  373. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/policy_mode.rb +16 -0
  374. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/policy_resource_state.rb +20 -0
  375. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/policy_settings.rb +99 -0
  376. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/post_args_match_condition_parameters.rb +124 -0
  377. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/post_args_operator.rb +24 -0
  378. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/private_endpoint_status.rb +19 -0
  379. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/probe_protocol.rb +17 -0
  380. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/profile.rb +147 -0
  381. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/profile_list_result.rb +101 -0
  382. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
  383. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
  384. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/protocol_type.rb +16 -0
  385. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/provisioning_state.rb +17 -0
  386. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/proxy_resource.rb +76 -0
  387. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
  388. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/query_string_behavior.rb +18 -0
  389. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
  390. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/query_string_match_condition_parameters.rb +114 -0
  391. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/query_string_operator.rb +24 -0
  392. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rankings_response.rb +77 -0
  393. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rankings_response_tables_item.rb +67 -0
  394. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rankings_response_tables_item_data_item.rb +67 -0
  395. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rankings_response_tables_item_data_item_metrics_item.rb +70 -0
  396. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rate_limit_rule.rb +117 -0
  397. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rate_limit_rule_list.rb +55 -0
  398. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/redirect_type.rb +18 -0
  399. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/remote_address_match_condition_parameters.rb +114 -0
  400. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/remote_address_operator.rb +17 -0
  401. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_body_match_condition_parameters.rb +114 -0
  402. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_body_operator.rb +24 -0
  403. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_header_match_condition_parameters.rb +125 -0
  404. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_header_operator.rb +24 -0
  405. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_method_match_condition_parameters.rb +95 -0
  406. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_scheme_match_condition_parameters.rb +95 -0
  407. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_uri_match_condition_parameters.rb +114 -0
  408. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/request_uri_operator.rb +24 -0
  409. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resource.rb +80 -0
  410. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resource_reference.rb +46 -0
  411. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
  412. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resource_usage.rb +83 -0
  413. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +100 -0
  414. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resources_response.rb +75 -0
  415. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resources_response_custom_domains_item.rb +80 -0
  416. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resources_response_endpoints_item.rb +89 -0
  417. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/resources_response_endpoints_item_custom_domains_item.rb +81 -0
  418. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/response_based_detected_error_types.rb +17 -0
  419. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/response_based_origin_error_detection_parameters.rb +89 -0
  420. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/route.rb +299 -0
  421. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/route_list_result.rb +101 -0
  422. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/route_update_parameters.rb +235 -0
  423. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rule.rb +174 -0
  424. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rule_list_result.rb +101 -0
  425. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rule_set.rb +99 -0
  426. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rule_set_list_result.rb +102 -0
  427. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/rule_update_parameters.rb +110 -0
  428. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/secret.rb +113 -0
  429. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/secret_list_result.rb +102 -0
  430. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/secret_parameters.rb +46 -0
  431. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/secret_properties.rb +67 -0
  432. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/secret_type.rb +17 -0
  433. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/security_policy.rb +111 -0
  434. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/security_policy_list_result.rb +102 -0
  435. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/security_policy_parameters.rb +46 -0
  436. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/security_policy_web_application_firewall_association.rb +75 -0
  437. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/security_policy_web_application_firewall_parameters.rb +84 -0
  438. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/shared_private_link_resource_properties.rb +99 -0
  439. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/shared_private_link_resource_status.rb +19 -0
  440. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/sku.rb +54 -0
  441. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/sku_name.rb +28 -0
  442. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/sso_uri.rb +48 -0
  443. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/status.rb +18 -0
  444. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +56 -0
  445. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/system_data.rb +107 -0
  446. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/tracked_resource.rb +105 -0
  447. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/transform.rb +16 -0
  448. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/transform_type.rb +20 -0
  449. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_file_extension_match_condition_parameters.rb +114 -0
  450. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_file_extension_operator.rb +24 -0
  451. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_file_name_match_condition_parameters.rb +114 -0
  452. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_file_name_operator.rb +24 -0
  453. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_path_match_condition_parameters.rb +114 -0
  454. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_path_operator.rb +25 -0
  455. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_redirect_action.rb +64 -0
  456. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_redirect_action_parameters.rb +127 -0
  457. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_rewrite_action.rb +64 -0
  458. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_rewrite_action_parameters.rb +86 -0
  459. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_signing_action.rb +64 -0
  460. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_signing_action_parameters.rb +82 -0
  461. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_signing_key.rb +62 -0
  462. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_signing_key_parameters.rb +86 -0
  463. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/url_signing_param_identifier.rb +58 -0
  464. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/usage.rb +95 -0
  465. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/usage_name.rb +57 -0
  466. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/usages_list_result.rb +98 -0
  467. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/user_managed_https_parameters.rb +82 -0
  468. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
  469. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +72 -0
  470. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_probe_input.rb +46 -0
  471. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_probe_output.rb +73 -0
  472. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_secret_input.rb +59 -0
  473. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_secret_output.rb +58 -0
  474. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validate_secret_type.rb +17 -0
  475. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/validation_token.rb +47 -0
  476. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_metrics_response.rb +88 -0
  477. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_metrics_response_series_item.rb +98 -0
  478. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_metrics_response_series_item_data_item.rb +58 -0
  479. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_metrics_response_series_item_groups_item.rb +58 -0
  480. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_rankings_response.rb +96 -0
  481. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_rankings_response_data_item.rb +75 -0
  482. data/lib/2020-09-01/generated/azure_mgmt_cdn/models/waf_rankings_response_data_item_metrics_item.rb +69 -0
  483. data/lib/2020-09-01/generated/azure_mgmt_cdn/module_definition.rb +9 -0
  484. data/lib/2020-09-01/generated/azure_mgmt_cdn/operations.rb +219 -0
  485. data/lib/2020-09-01/generated/azure_mgmt_cdn/origin_groups.rb +927 -0
  486. data/lib/2020-09-01/generated/azure_mgmt_cdn/origins.rb +922 -0
  487. data/lib/2020-09-01/generated/azure_mgmt_cdn/policies.rb +789 -0
  488. data/lib/2020-09-01/generated/azure_mgmt_cdn/profiles.rb +1482 -0
  489. data/lib/2020-09-01/generated/azure_mgmt_cdn/resource_usage_operations.rb +228 -0
  490. data/lib/2020-09-01/generated/azure_mgmt_cdn/routes.rb +913 -0
  491. data/lib/2020-09-01/generated/azure_mgmt_cdn/rule_sets.rb +908 -0
  492. data/lib/2020-09-01/generated/azure_mgmt_cdn/rules.rb +889 -0
  493. data/lib/2020-09-01/generated/azure_mgmt_cdn/secrets.rb +845 -0
  494. data/lib/2020-09-01/generated/azure_mgmt_cdn/security_policies.rb +868 -0
  495. data/lib/2020-09-01/generated/azure_mgmt_cdn/validate.rb +122 -0
  496. data/lib/azure_mgmt_cdn.rb +5 -3
  497. data/lib/profiles/latest/modules/cdn_profile_module.rb +960 -174
  498. data/lib/version.rb +1 -1
  499. metadata +461 -3
@@ -0,0 +1,1094 @@
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 AFDOriginGroups
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the AFDOriginGroups 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 all of the existing origin groups within a profile.
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<AFDOriginGroup>] 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 all of the existing origin groups within a profile.
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 all of the existing origin groups within a profile.
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}/originGroups'
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::AFDOriginGroupListResult.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 origin group within a profile.
129
+ #
130
+ # @param resource_group_name [String] Name of the Resource group within the
131
+ # Azure subscription.
132
+ # @param profile_name [String] Name of the CDN profile which is unique within
133
+ # the resource group.
134
+ # @param origin_group_name [String] Name of the origin group which is unique
135
+ # within the endpoint.
136
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
137
+ # will be added to the HTTP request.
138
+ #
139
+ # @return [AFDOriginGroup] operation results.
140
+ #
141
+ def get(resource_group_name, profile_name, origin_group_name, custom_headers:nil)
142
+ response = get_async(resource_group_name, profile_name, origin_group_name, custom_headers:custom_headers).value!
143
+ response.body unless response.nil?
144
+ end
145
+
146
+ #
147
+ # Gets an existing origin group within a profile.
148
+ #
149
+ # @param resource_group_name [String] Name of the Resource group within the
150
+ # Azure subscription.
151
+ # @param profile_name [String] Name of the CDN profile which is unique within
152
+ # the resource group.
153
+ # @param origin_group_name [String] Name of the origin group which is unique
154
+ # within the endpoint.
155
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
156
+ # will be added to the HTTP request.
157
+ #
158
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
159
+ #
160
+ def get_with_http_info(resource_group_name, profile_name, origin_group_name, custom_headers:nil)
161
+ get_async(resource_group_name, profile_name, origin_group_name, custom_headers:custom_headers).value!
162
+ end
163
+
164
+ #
165
+ # Gets an existing origin group within a profile.
166
+ #
167
+ # @param resource_group_name [String] Name of the Resource group within the
168
+ # Azure subscription.
169
+ # @param profile_name [String] Name of the CDN profile which is unique within
170
+ # the resource group.
171
+ # @param origin_group_name [String] Name of the origin group which is unique
172
+ # within the endpoint.
173
+ # @param [Hash{String => String}] A hash of custom headers that will be added
174
+ # to the HTTP request.
175
+ #
176
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
177
+ #
178
+ def get_async(resource_group_name, profile_name, origin_group_name, custom_headers:nil)
179
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
180
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
181
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
182
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
183
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
184
+ fail ArgumentError, 'origin_group_name is nil' if origin_group_name.nil?
185
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
186
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
187
+
188
+
189
+ request_headers = {}
190
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
191
+
192
+ # Set Headers
193
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
194
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
195
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}'
196
+
197
+ request_url = @base_url || @client.base_url
198
+
199
+ options = {
200
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
201
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'originGroupName' => origin_group_name,'subscriptionId' => @client.subscription_id},
202
+ query_params: {'api-version' => @client.api_version},
203
+ headers: request_headers.merge(custom_headers || {}),
204
+ base_url: request_url
205
+ }
206
+ promise = @client.make_request_async(:get, path_template, options)
207
+
208
+ promise = promise.then do |result|
209
+ http_response = result.response
210
+ status_code = http_response.status
211
+ response_content = http_response.body
212
+ unless status_code == 200
213
+ error_model = JSON.load(response_content)
214
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
215
+ end
216
+
217
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
218
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
219
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
220
+ # Deserialize Response
221
+ if status_code == 200
222
+ begin
223
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
224
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDOriginGroup.mapper()
225
+ result.body = @client.deserialize(result_mapper, parsed_response)
226
+ rescue Exception => e
227
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
228
+ end
229
+ end
230
+
231
+ result
232
+ end
233
+
234
+ promise.execute
235
+ end
236
+
237
+ #
238
+ # Creates a new origin group within the specified profile.
239
+ #
240
+ # @param resource_group_name [String] Name of the Resource group within the
241
+ # Azure subscription.
242
+ # @param profile_name [String] Name of the CDN profile which is unique within
243
+ # the resource group.
244
+ # @param origin_group_name [String] Name of the origin group which is unique
245
+ # within the endpoint.
246
+ # @param origin_group [AFDOriginGroup] Origin group properties
247
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
248
+ # will be added to the HTTP request.
249
+ #
250
+ # @return [AFDOriginGroup] operation results.
251
+ #
252
+ def create(resource_group_name, profile_name, origin_group_name, origin_group, custom_headers:nil)
253
+ response = create_async(resource_group_name, profile_name, origin_group_name, origin_group, custom_headers:custom_headers).value!
254
+ response.body unless response.nil?
255
+ end
256
+
257
+ #
258
+ # @param resource_group_name [String] Name of the Resource group within the
259
+ # Azure subscription.
260
+ # @param profile_name [String] Name of the CDN profile which is unique within
261
+ # the resource group.
262
+ # @param origin_group_name [String] Name of the origin group which is unique
263
+ # within the endpoint.
264
+ # @param origin_group [AFDOriginGroup] Origin group properties
265
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
266
+ # will be added to the HTTP request.
267
+ #
268
+ # @return [Concurrent::Promise] promise which provides async access to http
269
+ # response.
270
+ #
271
+ def create_async(resource_group_name, profile_name, origin_group_name, origin_group, custom_headers:nil)
272
+ # Send request
273
+ promise = begin_create_async(resource_group_name, profile_name, origin_group_name, origin_group, custom_headers:custom_headers)
274
+
275
+ promise = promise.then do |response|
276
+ # Defining deserialization method.
277
+ deserialize_method = lambda do |parsed_response|
278
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDOriginGroup.mapper()
279
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
280
+ end
281
+
282
+ # Waiting for response.
283
+ @client.get_long_running_operation_result(response, deserialize_method)
284
+ end
285
+
286
+ promise
287
+ end
288
+
289
+ #
290
+ # Updates an existing origin group within a profile.
291
+ #
292
+ # @param resource_group_name [String] Name of the Resource group within the
293
+ # Azure subscription.
294
+ # @param profile_name [String] Name of the CDN profile which is unique within
295
+ # the resource group.
296
+ # @param origin_group_name [String] Name of the origin group which is unique
297
+ # within the profile.
298
+ # @param origin_group_update_properties [AFDOriginGroupUpdateParameters] Origin
299
+ # group properties
300
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
301
+ # will be added to the HTTP request.
302
+ #
303
+ # @return [AFDOriginGroup] operation results.
304
+ #
305
+ def update(resource_group_name, profile_name, origin_group_name, origin_group_update_properties, custom_headers:nil)
306
+ response = update_async(resource_group_name, profile_name, origin_group_name, origin_group_update_properties, custom_headers:custom_headers).value!
307
+ response.body unless response.nil?
308
+ end
309
+
310
+ #
311
+ # @param resource_group_name [String] Name of the Resource group within the
312
+ # Azure subscription.
313
+ # @param profile_name [String] Name of the CDN profile which is unique within
314
+ # the resource group.
315
+ # @param origin_group_name [String] Name of the origin group which is unique
316
+ # within the profile.
317
+ # @param origin_group_update_properties [AFDOriginGroupUpdateParameters] Origin
318
+ # group properties
319
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
320
+ # will be added to the HTTP request.
321
+ #
322
+ # @return [Concurrent::Promise] promise which provides async access to http
323
+ # response.
324
+ #
325
+ def update_async(resource_group_name, profile_name, origin_group_name, origin_group_update_properties, custom_headers:nil)
326
+ # Send request
327
+ promise = begin_update_async(resource_group_name, profile_name, origin_group_name, origin_group_update_properties, custom_headers:custom_headers)
328
+
329
+ promise = promise.then do |response|
330
+ # Defining deserialization method.
331
+ deserialize_method = lambda do |parsed_response|
332
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDOriginGroup.mapper()
333
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
334
+ end
335
+
336
+ # Waiting for response.
337
+ @client.get_long_running_operation_result(response, deserialize_method)
338
+ end
339
+
340
+ promise
341
+ end
342
+
343
+ #
344
+ # Deletes an existing origin group within a profile.
345
+ #
346
+ # @param resource_group_name [String] Name of the Resource group within the
347
+ # Azure subscription.
348
+ # @param profile_name [String] Name of the CDN profile which is unique within
349
+ # the resource group.
350
+ # @param origin_group_name [String] Name of the origin group which is unique
351
+ # within the profile.
352
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
353
+ # will be added to the HTTP request.
354
+ #
355
+ def delete(resource_group_name, profile_name, origin_group_name, custom_headers:nil)
356
+ response = delete_async(resource_group_name, profile_name, origin_group_name, custom_headers:custom_headers).value!
357
+ nil
358
+ end
359
+
360
+ #
361
+ # @param resource_group_name [String] Name of the Resource group within the
362
+ # Azure subscription.
363
+ # @param profile_name [String] Name of the CDN profile which is unique within
364
+ # the resource group.
365
+ # @param origin_group_name [String] Name of the origin group which is unique
366
+ # within the profile.
367
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
368
+ # will be added to the HTTP request.
369
+ #
370
+ # @return [Concurrent::Promise] promise which provides async access to http
371
+ # response.
372
+ #
373
+ def delete_async(resource_group_name, profile_name, origin_group_name, custom_headers:nil)
374
+ # Send request
375
+ promise = begin_delete_async(resource_group_name, profile_name, origin_group_name, custom_headers:custom_headers)
376
+
377
+ promise = promise.then do |response|
378
+ # Defining deserialization method.
379
+ deserialize_method = lambda do |parsed_response|
380
+ end
381
+
382
+ # Waiting for response.
383
+ @client.get_long_running_operation_result(response, deserialize_method)
384
+ end
385
+
386
+ promise
387
+ end
388
+
389
+ #
390
+ # Checks the quota and actual usage of endpoints under the given CDN profile.
391
+ #
392
+ # @param resource_group_name [String] Name of the Resource group within the
393
+ # Azure subscription.
394
+ # @param profile_name [String] Name of the CDN profile which is unique within
395
+ # the resource group.
396
+ # @param origin_group_name [String] Name of the origin group which is unique
397
+ # within the endpoint.
398
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
399
+ # will be added to the HTTP request.
400
+ #
401
+ # @return [Array<Usage>] operation results.
402
+ #
403
+ def list_resource_usage(resource_group_name, profile_name, origin_group_name, custom_headers:nil)
404
+ first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, origin_group_name, custom_headers:custom_headers)
405
+ first_page.get_all_items
406
+ end
407
+
408
+ #
409
+ # Checks the quota and actual usage of endpoints under the given CDN profile.
410
+ #
411
+ # @param resource_group_name [String] Name of the Resource group within the
412
+ # Azure subscription.
413
+ # @param profile_name [String] Name of the CDN profile which is unique within
414
+ # the resource group.
415
+ # @param origin_group_name [String] Name of the origin group which is unique
416
+ # within the endpoint.
417
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
418
+ # will be added to the HTTP request.
419
+ #
420
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
421
+ #
422
+ def list_resource_usage_with_http_info(resource_group_name, profile_name, origin_group_name, custom_headers:nil)
423
+ list_resource_usage_async(resource_group_name, profile_name, origin_group_name, custom_headers:custom_headers).value!
424
+ end
425
+
426
+ #
427
+ # Checks the quota and actual usage of endpoints under the given CDN profile.
428
+ #
429
+ # @param resource_group_name [String] Name of the Resource group within the
430
+ # Azure subscription.
431
+ # @param profile_name [String] Name of the CDN profile which is unique within
432
+ # the resource group.
433
+ # @param origin_group_name [String] Name of the origin group which is unique
434
+ # within the endpoint.
435
+ # @param [Hash{String => String}] A hash of custom headers that will be added
436
+ # to the HTTP request.
437
+ #
438
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
439
+ #
440
+ def list_resource_usage_async(resource_group_name, profile_name, origin_group_name, custom_headers:nil)
441
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
442
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
443
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
444
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
445
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
446
+ fail ArgumentError, 'origin_group_name is nil' if origin_group_name.nil?
447
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
448
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
449
+
450
+
451
+ request_headers = {}
452
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
453
+
454
+ # Set Headers
455
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
456
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
457
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/usages'
458
+
459
+ request_url = @base_url || @client.base_url
460
+
461
+ options = {
462
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
463
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'originGroupName' => origin_group_name,'subscriptionId' => @client.subscription_id},
464
+ query_params: {'api-version' => @client.api_version},
465
+ headers: request_headers.merge(custom_headers || {}),
466
+ base_url: request_url
467
+ }
468
+ promise = @client.make_request_async(:post, path_template, options)
469
+
470
+ promise = promise.then do |result|
471
+ http_response = result.response
472
+ status_code = http_response.status
473
+ response_content = http_response.body
474
+ unless status_code == 200
475
+ error_model = JSON.load(response_content)
476
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
477
+ end
478
+
479
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
480
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
481
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
482
+ # Deserialize Response
483
+ if status_code == 200
484
+ begin
485
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
486
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::UsagesListResult.mapper()
487
+ result.body = @client.deserialize(result_mapper, parsed_response)
488
+ rescue Exception => e
489
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
490
+ end
491
+ end
492
+
493
+ result
494
+ end
495
+
496
+ promise.execute
497
+ end
498
+
499
+ #
500
+ # Creates a new origin group within the specified profile.
501
+ #
502
+ # @param resource_group_name [String] Name of the Resource group within the
503
+ # Azure subscription.
504
+ # @param profile_name [String] Name of the CDN profile which is unique within
505
+ # the resource group.
506
+ # @param origin_group_name [String] Name of the origin group which is unique
507
+ # within the endpoint.
508
+ # @param origin_group [AFDOriginGroup] Origin group properties
509
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
510
+ # will be added to the HTTP request.
511
+ #
512
+ # @return [AFDOriginGroup] operation results.
513
+ #
514
+ def begin_create(resource_group_name, profile_name, origin_group_name, origin_group, custom_headers:nil)
515
+ response = begin_create_async(resource_group_name, profile_name, origin_group_name, origin_group, custom_headers:custom_headers).value!
516
+ response.body unless response.nil?
517
+ end
518
+
519
+ #
520
+ # Creates a new origin group within the specified profile.
521
+ #
522
+ # @param resource_group_name [String] Name of the Resource group within the
523
+ # Azure subscription.
524
+ # @param profile_name [String] Name of the CDN profile which is unique within
525
+ # the resource group.
526
+ # @param origin_group_name [String] Name of the origin group which is unique
527
+ # within the endpoint.
528
+ # @param origin_group [AFDOriginGroup] Origin group properties
529
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
530
+ # will be added to the HTTP request.
531
+ #
532
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
533
+ #
534
+ def begin_create_with_http_info(resource_group_name, profile_name, origin_group_name, origin_group, custom_headers:nil)
535
+ begin_create_async(resource_group_name, profile_name, origin_group_name, origin_group, custom_headers:custom_headers).value!
536
+ end
537
+
538
+ #
539
+ # Creates a new origin group within the specified profile.
540
+ #
541
+ # @param resource_group_name [String] Name of the Resource group within the
542
+ # Azure subscription.
543
+ # @param profile_name [String] Name of the CDN profile which is unique within
544
+ # the resource group.
545
+ # @param origin_group_name [String] Name of the origin group which is unique
546
+ # within the endpoint.
547
+ # @param origin_group [AFDOriginGroup] Origin group properties
548
+ # @param [Hash{String => String}] A hash of custom headers that will be added
549
+ # to the HTTP request.
550
+ #
551
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
552
+ #
553
+ def begin_create_async(resource_group_name, profile_name, origin_group_name, origin_group, custom_headers:nil)
554
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
555
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
556
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
557
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
558
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
559
+ fail ArgumentError, 'origin_group_name is nil' if origin_group_name.nil?
560
+ fail ArgumentError, 'origin_group is nil' if origin_group.nil?
561
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
562
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
563
+
564
+
565
+ request_headers = {}
566
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
567
+
568
+ # Set Headers
569
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
570
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
571
+
572
+ # Serialize Request
573
+ request_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDOriginGroup.mapper()
574
+ request_content = @client.serialize(request_mapper, origin_group)
575
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
576
+
577
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}'
578
+
579
+ request_url = @base_url || @client.base_url
580
+
581
+ options = {
582
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
583
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'originGroupName' => origin_group_name,'subscriptionId' => @client.subscription_id},
584
+ query_params: {'api-version' => @client.api_version},
585
+ body: request_content,
586
+ headers: request_headers.merge(custom_headers || {}),
587
+ base_url: request_url
588
+ }
589
+ promise = @client.make_request_async(:put, path_template, options)
590
+
591
+ promise = promise.then do |result|
592
+ http_response = result.response
593
+ status_code = http_response.status
594
+ response_content = http_response.body
595
+ unless status_code == 200 || status_code == 201
596
+ error_model = JSON.load(response_content)
597
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
598
+ end
599
+
600
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
601
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
602
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
603
+ # Deserialize Response
604
+ if status_code == 200
605
+ begin
606
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
607
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDOriginGroup.mapper()
608
+ result.body = @client.deserialize(result_mapper, parsed_response)
609
+ rescue Exception => e
610
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
611
+ end
612
+ end
613
+ # Deserialize Response
614
+ if status_code == 201
615
+ begin
616
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
617
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDOriginGroup.mapper()
618
+ result.body = @client.deserialize(result_mapper, parsed_response)
619
+ rescue Exception => e
620
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
621
+ end
622
+ end
623
+
624
+ result
625
+ end
626
+
627
+ promise.execute
628
+ end
629
+
630
+ #
631
+ # Updates an existing origin group within a profile.
632
+ #
633
+ # @param resource_group_name [String] Name of the Resource group within the
634
+ # Azure subscription.
635
+ # @param profile_name [String] Name of the CDN profile which is unique within
636
+ # the resource group.
637
+ # @param origin_group_name [String] Name of the origin group which is unique
638
+ # within the profile.
639
+ # @param origin_group_update_properties [AFDOriginGroupUpdateParameters] Origin
640
+ # group properties
641
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
642
+ # will be added to the HTTP request.
643
+ #
644
+ # @return [AFDOriginGroup] operation results.
645
+ #
646
+ def begin_update(resource_group_name, profile_name, origin_group_name, origin_group_update_properties, custom_headers:nil)
647
+ response = begin_update_async(resource_group_name, profile_name, origin_group_name, origin_group_update_properties, custom_headers:custom_headers).value!
648
+ response.body unless response.nil?
649
+ end
650
+
651
+ #
652
+ # Updates an existing origin group within a profile.
653
+ #
654
+ # @param resource_group_name [String] Name of the Resource group within the
655
+ # Azure subscription.
656
+ # @param profile_name [String] Name of the CDN profile which is unique within
657
+ # the resource group.
658
+ # @param origin_group_name [String] Name of the origin group which is unique
659
+ # within the profile.
660
+ # @param origin_group_update_properties [AFDOriginGroupUpdateParameters] Origin
661
+ # group properties
662
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
663
+ # will be added to the HTTP request.
664
+ #
665
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
666
+ #
667
+ def begin_update_with_http_info(resource_group_name, profile_name, origin_group_name, origin_group_update_properties, custom_headers:nil)
668
+ begin_update_async(resource_group_name, profile_name, origin_group_name, origin_group_update_properties, custom_headers:custom_headers).value!
669
+ end
670
+
671
+ #
672
+ # Updates an existing origin group within a profile.
673
+ #
674
+ # @param resource_group_name [String] Name of the Resource group within the
675
+ # Azure subscription.
676
+ # @param profile_name [String] Name of the CDN profile which is unique within
677
+ # the resource group.
678
+ # @param origin_group_name [String] Name of the origin group which is unique
679
+ # within the profile.
680
+ # @param origin_group_update_properties [AFDOriginGroupUpdateParameters] Origin
681
+ # group properties
682
+ # @param [Hash{String => String}] A hash of custom headers that will be added
683
+ # to the HTTP request.
684
+ #
685
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
686
+ #
687
+ def begin_update_async(resource_group_name, profile_name, origin_group_name, origin_group_update_properties, custom_headers:nil)
688
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
689
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
690
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
691
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
692
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
693
+ fail ArgumentError, 'origin_group_name is nil' if origin_group_name.nil?
694
+ fail ArgumentError, 'origin_group_update_properties is nil' if origin_group_update_properties.nil?
695
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
696
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
697
+
698
+
699
+ request_headers = {}
700
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
701
+
702
+ # Set Headers
703
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
704
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
705
+
706
+ # Serialize Request
707
+ request_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDOriginGroupUpdateParameters.mapper()
708
+ request_content = @client.serialize(request_mapper, origin_group_update_properties)
709
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
710
+
711
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}'
712
+
713
+ request_url = @base_url || @client.base_url
714
+
715
+ options = {
716
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
717
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'originGroupName' => origin_group_name,'subscriptionId' => @client.subscription_id},
718
+ query_params: {'api-version' => @client.api_version},
719
+ body: request_content,
720
+ headers: request_headers.merge(custom_headers || {}),
721
+ base_url: request_url
722
+ }
723
+ promise = @client.make_request_async(:patch, path_template, options)
724
+
725
+ promise = promise.then do |result|
726
+ http_response = result.response
727
+ status_code = http_response.status
728
+ response_content = http_response.body
729
+ unless status_code == 200 || status_code == 202
730
+ error_model = JSON.load(response_content)
731
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
732
+ end
733
+
734
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
735
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
736
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
737
+ # Deserialize Response
738
+ if status_code == 200
739
+ begin
740
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
741
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDOriginGroup.mapper()
742
+ result.body = @client.deserialize(result_mapper, parsed_response)
743
+ rescue Exception => e
744
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
745
+ end
746
+ end
747
+ # Deserialize Response
748
+ if status_code == 202
749
+ begin
750
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
751
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDOriginGroup.mapper()
752
+ result.body = @client.deserialize(result_mapper, parsed_response)
753
+ rescue Exception => e
754
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
755
+ end
756
+ end
757
+
758
+ result
759
+ end
760
+
761
+ promise.execute
762
+ end
763
+
764
+ #
765
+ # Deletes an existing origin group within a profile.
766
+ #
767
+ # @param resource_group_name [String] Name of the Resource group within the
768
+ # Azure subscription.
769
+ # @param profile_name [String] Name of the CDN profile which is unique within
770
+ # the resource group.
771
+ # @param origin_group_name [String] Name of the origin group which is unique
772
+ # within the profile.
773
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
774
+ # will be added to the HTTP request.
775
+ #
776
+ #
777
+ def begin_delete(resource_group_name, profile_name, origin_group_name, custom_headers:nil)
778
+ response = begin_delete_async(resource_group_name, profile_name, origin_group_name, custom_headers:custom_headers).value!
779
+ nil
780
+ end
781
+
782
+ #
783
+ # Deletes an existing origin group within a profile.
784
+ #
785
+ # @param resource_group_name [String] Name of the Resource group within the
786
+ # Azure subscription.
787
+ # @param profile_name [String] Name of the CDN profile which is unique within
788
+ # the resource group.
789
+ # @param origin_group_name [String] Name of the origin group which is unique
790
+ # within the profile.
791
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
792
+ # will be added to the HTTP request.
793
+ #
794
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
795
+ #
796
+ def begin_delete_with_http_info(resource_group_name, profile_name, origin_group_name, custom_headers:nil)
797
+ begin_delete_async(resource_group_name, profile_name, origin_group_name, custom_headers:custom_headers).value!
798
+ end
799
+
800
+ #
801
+ # Deletes an existing origin group within a profile.
802
+ #
803
+ # @param resource_group_name [String] Name of the Resource group within the
804
+ # Azure subscription.
805
+ # @param profile_name [String] Name of the CDN profile which is unique within
806
+ # the resource group.
807
+ # @param origin_group_name [String] Name of the origin group which is unique
808
+ # within the profile.
809
+ # @param [Hash{String => String}] A hash of custom headers that will be added
810
+ # to the HTTP request.
811
+ #
812
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
813
+ #
814
+ def begin_delete_async(resource_group_name, profile_name, origin_group_name, custom_headers:nil)
815
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
816
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
817
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
818
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
819
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
820
+ fail ArgumentError, 'origin_group_name is nil' if origin_group_name.nil?
821
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
822
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
823
+
824
+
825
+ request_headers = {}
826
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
827
+
828
+ # Set Headers
829
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
830
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
831
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}'
832
+
833
+ request_url = @base_url || @client.base_url
834
+
835
+ options = {
836
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
837
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'originGroupName' => origin_group_name,'subscriptionId' => @client.subscription_id},
838
+ query_params: {'api-version' => @client.api_version},
839
+ headers: request_headers.merge(custom_headers || {}),
840
+ base_url: request_url
841
+ }
842
+ promise = @client.make_request_async(:delete, path_template, options)
843
+
844
+ promise = promise.then do |result|
845
+ http_response = result.response
846
+ status_code = http_response.status
847
+ response_content = http_response.body
848
+ unless status_code == 200 || status_code == 204
849
+ error_model = JSON.load(response_content)
850
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
851
+ end
852
+
853
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
854
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
855
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
856
+
857
+ result
858
+ end
859
+
860
+ promise.execute
861
+ end
862
+
863
+ #
864
+ # Lists all of the existing origin groups within a profile.
865
+ #
866
+ # @param next_page_link [String] The NextLink from the previous successful call
867
+ # to List operation.
868
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
869
+ # will be added to the HTTP request.
870
+ #
871
+ # @return [AFDOriginGroupListResult] operation results.
872
+ #
873
+ def list_by_profile_next(next_page_link, custom_headers:nil)
874
+ response = list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value!
875
+ response.body unless response.nil?
876
+ end
877
+
878
+ #
879
+ # Lists all of the existing origin groups within a profile.
880
+ #
881
+ # @param next_page_link [String] The NextLink from the previous successful call
882
+ # to List operation.
883
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
884
+ # will be added to the HTTP request.
885
+ #
886
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
887
+ #
888
+ def list_by_profile_next_with_http_info(next_page_link, custom_headers:nil)
889
+ list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value!
890
+ end
891
+
892
+ #
893
+ # Lists all of the existing origin groups within a profile.
894
+ #
895
+ # @param next_page_link [String] The NextLink from the previous successful call
896
+ # to List operation.
897
+ # @param [Hash{String => String}] A hash of custom headers that will be added
898
+ # to the HTTP request.
899
+ #
900
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
901
+ #
902
+ def list_by_profile_next_async(next_page_link, custom_headers:nil)
903
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
904
+
905
+
906
+ request_headers = {}
907
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
908
+
909
+ # Set Headers
910
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
911
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
912
+ path_template = '{nextLink}'
913
+
914
+ request_url = @base_url || @client.base_url
915
+
916
+ options = {
917
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
918
+ skip_encoding_path_params: {'nextLink' => next_page_link},
919
+ headers: request_headers.merge(custom_headers || {}),
920
+ base_url: request_url
921
+ }
922
+ promise = @client.make_request_async(:get, path_template, options)
923
+
924
+ promise = promise.then do |result|
925
+ http_response = result.response
926
+ status_code = http_response.status
927
+ response_content = http_response.body
928
+ unless status_code == 200
929
+ error_model = JSON.load(response_content)
930
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
931
+ end
932
+
933
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
934
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
935
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
936
+ # Deserialize Response
937
+ if status_code == 200
938
+ begin
939
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
940
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::AFDOriginGroupListResult.mapper()
941
+ result.body = @client.deserialize(result_mapper, parsed_response)
942
+ rescue Exception => e
943
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
944
+ end
945
+ end
946
+
947
+ result
948
+ end
949
+
950
+ promise.execute
951
+ end
952
+
953
+ #
954
+ # Checks the quota and actual usage of endpoints under the given CDN profile.
955
+ #
956
+ # @param next_page_link [String] The NextLink from the previous successful call
957
+ # to List operation.
958
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
959
+ # will be added to the HTTP request.
960
+ #
961
+ # @return [UsagesListResult] operation results.
962
+ #
963
+ def list_resource_usage_next(next_page_link, custom_headers:nil)
964
+ response = list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value!
965
+ response.body unless response.nil?
966
+ end
967
+
968
+ #
969
+ # Checks the quota and actual usage of endpoints under the given CDN profile.
970
+ #
971
+ # @param next_page_link [String] The NextLink from the previous successful call
972
+ # to List operation.
973
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
974
+ # will be added to the HTTP request.
975
+ #
976
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
977
+ #
978
+ def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil)
979
+ list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value!
980
+ end
981
+
982
+ #
983
+ # Checks the quota and actual usage of endpoints under the given CDN profile.
984
+ #
985
+ # @param next_page_link [String] The NextLink from the previous successful call
986
+ # to List operation.
987
+ # @param [Hash{String => String}] A hash of custom headers that will be added
988
+ # to the HTTP request.
989
+ #
990
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
991
+ #
992
+ def list_resource_usage_next_async(next_page_link, custom_headers:nil)
993
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
994
+
995
+
996
+ request_headers = {}
997
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
998
+
999
+ # Set Headers
1000
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1001
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1002
+ path_template = '{nextLink}'
1003
+
1004
+ request_url = @base_url || @client.base_url
1005
+
1006
+ options = {
1007
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1008
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1009
+ headers: request_headers.merge(custom_headers || {}),
1010
+ base_url: request_url
1011
+ }
1012
+ promise = @client.make_request_async(:post, path_template, options)
1013
+
1014
+ promise = promise.then do |result|
1015
+ http_response = result.response
1016
+ status_code = http_response.status
1017
+ response_content = http_response.body
1018
+ unless status_code == 200
1019
+ error_model = JSON.load(response_content)
1020
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1021
+ end
1022
+
1023
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1024
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1025
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1026
+ # Deserialize Response
1027
+ if status_code == 200
1028
+ begin
1029
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1030
+ result_mapper = Azure::CDN::Mgmt::V2020_09_01::Models::UsagesListResult.mapper()
1031
+ result.body = @client.deserialize(result_mapper, parsed_response)
1032
+ rescue Exception => e
1033
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1034
+ end
1035
+ end
1036
+
1037
+ result
1038
+ end
1039
+
1040
+ promise.execute
1041
+ end
1042
+
1043
+ #
1044
+ # Lists all of the existing origin groups within a profile.
1045
+ #
1046
+ # @param resource_group_name [String] Name of the Resource group within the
1047
+ # Azure subscription.
1048
+ # @param profile_name [String] Name of the CDN profile which is unique within
1049
+ # the resource group.
1050
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1051
+ # will be added to the HTTP request.
1052
+ #
1053
+ # @return [AFDOriginGroupListResult] which provide lazy access to pages of the
1054
+ # response.
1055
+ #
1056
+ def list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:nil)
1057
+ response = list_by_profile_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
1058
+ unless response.nil?
1059
+ page = response.body
1060
+ page.next_method = Proc.new do |next_page_link|
1061
+ list_by_profile_next_async(next_page_link, custom_headers:custom_headers)
1062
+ end
1063
+ page
1064
+ end
1065
+ end
1066
+
1067
+ #
1068
+ # Checks the quota and actual usage of endpoints under the given CDN profile.
1069
+ #
1070
+ # @param resource_group_name [String] Name of the Resource group within the
1071
+ # Azure subscription.
1072
+ # @param profile_name [String] Name of the CDN profile which is unique within
1073
+ # the resource group.
1074
+ # @param origin_group_name [String] Name of the origin group which is unique
1075
+ # within the endpoint.
1076
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1077
+ # will be added to the HTTP request.
1078
+ #
1079
+ # @return [UsagesListResult] which provide lazy access to pages of the
1080
+ # response.
1081
+ #
1082
+ def list_resource_usage_as_lazy(resource_group_name, profile_name, origin_group_name, custom_headers:nil)
1083
+ response = list_resource_usage_async(resource_group_name, profile_name, origin_group_name, custom_headers:custom_headers).value!
1084
+ unless response.nil?
1085
+ page = response.body
1086
+ page.next_method = Proc.new do |next_page_link|
1087
+ list_resource_usage_next_async(next_page_link, custom_headers:custom_headers)
1088
+ end
1089
+ page
1090
+ end
1091
+ end
1092
+
1093
+ end
1094
+ end