azure_mgmt_cdn 0.17.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (465) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2015-06-01/generated/azure_mgmt_cdn.rb +70 -0
  4. data/lib/2015-06-01/generated/azure_mgmt_cdn/cdn_management_client.rb +152 -0
  5. data/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb +729 -0
  6. data/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb +1476 -0
  7. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
  8. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +69 -0
  9. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain.rb +103 -0
  10. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +57 -0
  11. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +47 -0
  12. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
  13. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/deep_created_origin.rb +82 -0
  14. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint.rb +249 -0
  15. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb +185 -0
  16. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +56 -0
  17. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
  18. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +152 -0
  19. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/error_response.rb +58 -0
  20. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
  21. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/operation.rb +58 -0
  22. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/operation_display.rb +70 -0
  23. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/operation_list_result.rb +57 -0
  24. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin.rb +128 -0
  25. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin_list_result.rb +56 -0
  26. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin_parameters.rb +71 -0
  27. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
  28. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile.rb +128 -0
  29. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_create_parameters.rb +77 -0
  30. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_list_result.rb +56 -0
  31. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
  32. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
  33. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/provisioning_state.rb +17 -0
  34. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
  35. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
  36. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/resource.rb +81 -0
  37. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
  38. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/sku.rb +48 -0
  39. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/sku_name.rb +16 -0
  40. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/sso_uri.rb +46 -0
  41. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
  42. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
  43. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +70 -0
  44. data/lib/2015-06-01/generated/azure_mgmt_cdn/module_definition.rb +9 -0
  45. data/lib/2015-06-01/generated/azure_mgmt_cdn/name_availability.rb +132 -0
  46. data/lib/2015-06-01/generated/azure_mgmt_cdn/operations.rb +112 -0
  47. data/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb +788 -0
  48. data/lib/2015-06-01/generated/azure_mgmt_cdn/profiles.rb +913 -0
  49. data/lib/2016-04-02/generated/azure_mgmt_cdn.rb +70 -0
  50. data/lib/2016-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +152 -0
  51. data/lib/2016-04-02/generated/azure_mgmt_cdn/custom_domains.rb +729 -0
  52. data/lib/2016-04-02/generated/azure_mgmt_cdn/endpoints.rb +1476 -0
  53. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
  54. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +69 -0
  55. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb +103 -0
  56. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +57 -0
  57. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +47 -0
  58. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
  59. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb +82 -0
  60. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint.rb +249 -0
  61. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb +185 -0
  62. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +56 -0
  63. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
  64. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +152 -0
  65. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/error_response.rb +58 -0
  66. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
  67. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation.rb +58 -0
  68. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_display.rb +70 -0
  69. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_list_result.rb +57 -0
  70. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin.rb +128 -0
  71. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb +56 -0
  72. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_parameters.rb +71 -0
  73. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
  74. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile.rb +128 -0
  75. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_create_parameters.rb +77 -0
  76. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb +56 -0
  77. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
  78. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
  79. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/provisioning_state.rb +17 -0
  80. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
  81. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
  82. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/resource.rb +81 -0
  83. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
  84. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sku.rb +49 -0
  85. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sku_name.rb +18 -0
  86. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb +46 -0
  87. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
  88. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
  89. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +70 -0
  90. data/lib/2016-04-02/generated/azure_mgmt_cdn/module_definition.rb +9 -0
  91. data/lib/2016-04-02/generated/azure_mgmt_cdn/name_availability.rb +132 -0
  92. data/lib/2016-04-02/generated/azure_mgmt_cdn/operations.rb +112 -0
  93. data/lib/2016-04-02/generated/azure_mgmt_cdn/origins.rb +788 -0
  94. data/lib/2016-04-02/generated/azure_mgmt_cdn/profiles.rb +913 -0
  95. data/lib/2016-10-02/generated/azure_mgmt_cdn.rb +76 -0
  96. data/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb +764 -0
  97. data/lib/2016-10-02/generated/azure_mgmt_cdn/custom_domains.rb +984 -0
  98. data/lib/2016-10-02/generated/azure_mgmt_cdn/edge_nodes.rb +220 -0
  99. data/lib/2016-10-02/generated/azure_mgmt_cdn/endpoints.rb +1928 -0
  100. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
  101. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +69 -0
  102. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +57 -0
  103. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain.rb +151 -0
  104. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +101 -0
  105. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +48 -0
  106. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
  107. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb +19 -0
  108. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb +90 -0
  109. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/edge_node.rb +106 -0
  110. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/edgenode_result.rb +100 -0
  111. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint.rb +285 -0
  112. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +100 -0
  113. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
  114. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +190 -0
  115. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/error_response.rb +58 -0
  116. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/geo_filter.rb +80 -0
  117. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
  118. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/ip_address_group.rb +86 -0
  119. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
  120. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation.rb +58 -0
  121. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation_display.rb +69 -0
  122. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation_list_result.rb +101 -0
  123. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
  124. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin.rb +158 -0
  125. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin_list_result.rb +100 -0
  126. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
  127. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +79 -0
  128. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile.rb +127 -0
  129. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile_list_result.rb +100 -0
  130. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
  131. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
  132. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
  133. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
  134. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource.rb +110 -0
  135. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
  136. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource_usage.rb +79 -0
  137. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +99 -0
  138. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/sku.rb +49 -0
  139. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/sku_name.rb +19 -0
  140. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/sso_uri.rb +46 -0
  141. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/supported_optimization_types_result.rb +55 -0
  142. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
  143. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +70 -0
  144. data/lib/2016-10-02/generated/azure_mgmt_cdn/module_definition.rb +9 -0
  145. data/lib/2016-10-02/generated/azure_mgmt_cdn/origins.rb +564 -0
  146. data/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb +1484 -0
  147. data/lib/2017-04-02/generated/azure_mgmt_cdn.rb +83 -0
  148. data/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +363 -0
  149. data/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb +984 -0
  150. data/lib/2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb +227 -0
  151. data/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb +1948 -0
  152. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
  153. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +72 -0
  154. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +57 -0
  155. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb +148 -0
  156. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +102 -0
  157. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +48 -0
  158. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
  159. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb +19 -0
  160. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb +24 -0
  161. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb +91 -0
  162. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/edge_node.rb +83 -0
  163. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/edgenode_result.rb +101 -0
  164. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint.rb +305 -0
  165. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +101 -0
  166. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
  167. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +210 -0
  168. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/error_response.rb +60 -0
  169. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/geo_filter.rb +80 -0
  170. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
  171. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/ip_address_group.rb +86 -0
  172. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
  173. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/operation.rb +59 -0
  174. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/operation_display.rb +72 -0
  175. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/operations_list_result.rb +102 -0
  176. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
  177. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin.rb +158 -0
  178. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb +101 -0
  179. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
  180. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +79 -0
  181. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile.rb +125 -0
  182. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb +101 -0
  183. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
  184. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
  185. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/proxy_resource.rb +63 -0
  186. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
  187. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
  188. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource.rb +80 -0
  189. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
  190. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage.rb +83 -0
  191. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +100 -0
  192. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/sku.rb +49 -0
  193. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/sku_name.rb +19 -0
  194. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb +48 -0
  195. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +56 -0
  196. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
  197. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
  198. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +72 -0
  199. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_probe_input.rb +46 -0
  200. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_probe_output.rb +73 -0
  201. data/lib/2017-04-02/generated/azure_mgmt_cdn/module_definition.rb +9 -0
  202. data/lib/2017-04-02/generated/azure_mgmt_cdn/operations.rb +221 -0
  203. data/lib/2017-04-02/generated/azure_mgmt_cdn/origins.rb +564 -0
  204. data/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb +1484 -0
  205. data/lib/2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb +230 -0
  206. data/lib/2017-10-12/generated/azure_mgmt_cdn.rb +100 -0
  207. data/lib/2017-10-12/generated/azure_mgmt_cdn/cdn_management_client.rb +466 -0
  208. data/lib/2017-10-12/generated/azure_mgmt_cdn/custom_domains.rb +1003 -0
  209. data/lib/2017-10-12/generated/azure_mgmt_cdn/edge_nodes.rb +227 -0
  210. data/lib/2017-10-12/generated/azure_mgmt_cdn/endpoints.rb +1948 -0
  211. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb +89 -0
  212. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cdn_certificate_source_parameters.rb +62 -0
  213. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cdn_managed_https_parameters.rb +73 -0
  214. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/certificate_type.rb +16 -0
  215. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
  216. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +72 -0
  217. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +57 -0
  218. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain.rb +148 -0
  219. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_https_parameters.rb +60 -0
  220. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +102 -0
  221. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +48 -0
  222. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
  223. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb +19 -0
  224. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb +24 -0
  225. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/deep_created_origin.rb +91 -0
  226. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule.rb +96 -0
  227. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_action.rb +46 -0
  228. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb +64 -0
  229. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb +47 -0
  230. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb +64 -0
  231. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb +64 -0
  232. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/edge_node.rb +83 -0
  233. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/edgenode_result.rb +101 -0
  234. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint.rb +318 -0
  235. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +101 -0
  236. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb +67 -0
  237. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
  238. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +223 -0
  239. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/error_response.rb +60 -0
  240. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/geo_filter.rb +80 -0
  241. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
  242. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/ip_address_group.rb +86 -0
  243. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/key_vault_certificate_source_parameters.rb +137 -0
  244. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
  245. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation.rb +59 -0
  246. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation_display.rb +72 -0
  247. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operations_list_result.rb +102 -0
  248. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
  249. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin.rb +158 -0
  250. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_list_result.rb +101 -0
  251. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
  252. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +79 -0
  253. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile.rb +125 -0
  254. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_list_result.rb +101 -0
  255. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
  256. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
  257. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/protocol_type.rb +16 -0
  258. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/proxy_resource.rb +63 -0
  259. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
  260. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
  261. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource.rb +80 -0
  262. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
  263. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage.rb +83 -0
  264. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +100 -0
  265. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku.rb +49 -0
  266. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku_name.rb +20 -0
  267. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sso_uri.rb +48 -0
  268. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +56 -0
  269. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
  270. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_file_extension_condition_parameters.rb +70 -0
  271. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_path_condition_parameters.rb +72 -0
  272. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/user_managed_https_parameters.rb +73 -0
  273. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
  274. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +72 -0
  275. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_input.rb +46 -0
  276. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_output.rb +73 -0
  277. data/lib/2017-10-12/generated/azure_mgmt_cdn/module_definition.rb +9 -0
  278. data/lib/2017-10-12/generated/azure_mgmt_cdn/operations.rb +221 -0
  279. data/lib/2017-10-12/generated/azure_mgmt_cdn/origins.rb +564 -0
  280. data/lib/2017-10-12/generated/azure_mgmt_cdn/profiles.rb +1484 -0
  281. data/lib/2017-10-12/generated/azure_mgmt_cdn/resource_usage_operations.rb +230 -0
  282. data/lib/2020-04-15/generated/azure_mgmt_cdn.rb +201 -0
  283. data/lib/2020-04-15/generated/azure_mgmt_cdn/cdn_management_client.rb +478 -0
  284. data/lib/2020-04-15/generated/azure_mgmt_cdn/custom_domains.rb +1001 -0
  285. data/lib/2020-04-15/generated/azure_mgmt_cdn/edge_nodes.rb +225 -0
  286. data/lib/2020-04-15/generated/azure_mgmt_cdn/endpoints.rb +1946 -0
  287. data/lib/2020-04-15/generated/azure_mgmt_cdn/managed_rule_sets.rb +221 -0
  288. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/action_type.rb +18 -0
  289. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/algorithm.rb +15 -0
  290. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cache_behavior.rb +17 -0
  291. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb +88 -0
  292. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cache_key_query_string_action_parameters.rb +75 -0
  293. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_certificate_source_parameters.rb +62 -0
  294. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_endpoint.rb +46 -0
  295. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_managed_https_parameters.rb +82 -0
  296. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy.rb +210 -0
  297. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_list.rb +103 -0
  298. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cdn_web_application_firewall_policy_patch_parameters.rb +55 -0
  299. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/certificate_type.rb +16 -0
  300. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
  301. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +72 -0
  302. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +57 -0
  303. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cookies_match_condition_parameters.rb +123 -0
  304. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/cookies_operator.rb +23 -0
  305. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain.rb +148 -0
  306. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_https_parameters.rb +73 -0
  307. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +102 -0
  308. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +48 -0
  309. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
  310. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb +19 -0
  311. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb +24 -0
  312. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_rule.rb +108 -0
  313. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_rule_enabled_state.rb +16 -0
  314. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/custom_rule_list.rb +55 -0
  315. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/deep_created_origin.rb +200 -0
  316. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/deep_created_origin_group.rb +114 -0
  317. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule.rb +107 -0
  318. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_action.rb +51 -0
  319. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb +64 -0
  320. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_cache_key_query_string_action.rb +64 -0
  321. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb +59 -0
  322. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_cookies_condition.rb +64 -0
  323. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_http_version_condition.rb +64 -0
  324. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_is_device_condition.rb +64 -0
  325. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_post_args_condition.rb +64 -0
  326. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_query_string_condition.rb +64 -0
  327. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_remote_address_condition.rb +64 -0
  328. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_body_condition.rb +64 -0
  329. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_header_action.rb +63 -0
  330. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_header_condition.rb +64 -0
  331. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_method_condition.rb +64 -0
  332. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_scheme_condition.rb +64 -0
  333. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_request_uri_condition.rb +64 -0
  334. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_response_header_action.rb +63 -0
  335. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb +64 -0
  336. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_url_file_name_condition.rb +64 -0
  337. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb +64 -0
  338. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/destination_protocol.rb +17 -0
  339. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/edge_node.rb +83 -0
  340. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/edgenode_result.rb +101 -0
  341. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint.rb +391 -0
  342. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +101 -0
  343. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb +67 -0
  344. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_web_application_firewall_policy_link.rb +49 -0
  345. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
  346. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +274 -0
  347. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/error_response.rb +60 -0
  348. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/geo_filter.rb +80 -0
  349. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
  350. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/header_action.rb +17 -0
  351. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/header_action_parameters.rb +83 -0
  352. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/health_probe_parameters.rb +90 -0
  353. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/health_probe_request_type.rb +17 -0
  354. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/http_error_range_parameters.rb +65 -0
  355. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/http_version_match_condition_parameters.rb +95 -0
  356. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/ip_address_group.rb +86 -0
  357. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/is_device_match_condition_parameters.rb +113 -0
  358. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/key_vault_certificate_source_parameters.rb +137 -0
  359. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/key_vault_signing_key_parameters.rb +106 -0
  360. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
  361. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_definition.rb +59 -0
  362. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_enabled_state.rb +16 -0
  363. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_group_definition.rb +81 -0
  364. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_group_override.rb +68 -0
  365. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_override.rb +72 -0
  366. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set.rb +94 -0
  367. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set_definition.rb +133 -0
  368. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set_definition_list.rb +101 -0
  369. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/managed_rule_set_list.rb +55 -0
  370. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/match_condition.rb +125 -0
  371. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/match_variable.rb +23 -0
  372. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/minimum_tls_version.rb +17 -0
  373. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/operation.rb +59 -0
  374. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/operation_display.rb +72 -0
  375. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/operations_list_result.rb +102 -0
  376. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/operator.rb +26 -0
  377. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
  378. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin.rb +256 -0
  379. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_group.rb +153 -0
  380. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_group_list_result.rb +102 -0
  381. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_group_resource_state.rb +17 -0
  382. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_group_update_parameters.rb +100 -0
  383. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_list_result.rb +101 -0
  384. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
  385. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +187 -0
  386. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/param_indicator.rb +17 -0
  387. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/policy_enabled_state.rb +16 -0
  388. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/policy_mode.rb +16 -0
  389. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/policy_resource_state.rb +20 -0
  390. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/policy_settings.rb +99 -0
  391. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/post_args_match_condition_parameters.rb +123 -0
  392. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/post_args_operator.rb +23 -0
  393. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/private_endpoint_status.rb +19 -0
  394. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/probe_protocol.rb +17 -0
  395. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/profile.rb +125 -0
  396. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/profile_list_result.rb +101 -0
  397. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
  398. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
  399. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/protocol_type.rb +16 -0
  400. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/provisioning_state.rb +17 -0
  401. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/proxy_resource.rb +63 -0
  402. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
  403. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/query_string_behavior.rb +18 -0
  404. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
  405. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/query_string_match_condition_parameters.rb +114 -0
  406. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/query_string_operator.rb +23 -0
  407. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/rate_limit_rule.rb +117 -0
  408. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/rate_limit_rule_list.rb +55 -0
  409. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/redirect_type.rb +18 -0
  410. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/remote_address_match_condition_parameters.rb +114 -0
  411. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/remote_address_operator.rb +17 -0
  412. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_body_match_condition_parameters.rb +114 -0
  413. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_body_operator.rb +23 -0
  414. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_header_match_condition_parameters.rb +125 -0
  415. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_header_operator.rb +23 -0
  416. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_method_match_condition_parameters.rb +95 -0
  417. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_scheme_match_condition_parameters.rb +95 -0
  418. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_uri_match_condition_parameters.rb +113 -0
  419. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/request_uri_operator.rb +23 -0
  420. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource.rb +80 -0
  421. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource_reference.rb +46 -0
  422. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
  423. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource_usage.rb +83 -0
  424. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +100 -0
  425. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/response_based_detected_error_types.rb +17 -0
  426. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/response_based_origin_error_detection_parameters.rb +89 -0
  427. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/sku.rb +50 -0
  428. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/sku_name.rb +21 -0
  429. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/sso_uri.rb +48 -0
  430. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +56 -0
  431. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
  432. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/transform.rb +16 -0
  433. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/transform_type.rb +20 -0
  434. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_file_extension_match_condition_parameters.rb +114 -0
  435. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_file_extension_operator.rb +23 -0
  436. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_file_name_match_condition_parameters.rb +114 -0
  437. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_file_name_operator.rb +23 -0
  438. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_path_match_condition_parameters.rb +114 -0
  439. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_path_operator.rb +24 -0
  440. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_redirect_action.rb +64 -0
  441. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_redirect_action_parameters.rb +127 -0
  442. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_rewrite_action.rb +64 -0
  443. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_rewrite_action_parameters.rb +86 -0
  444. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_signing_action_parameters.rb +112 -0
  445. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_signing_key.rb +62 -0
  446. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/url_signing_param_identifier.rb +58 -0
  447. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/user_managed_https_parameters.rb +82 -0
  448. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
  449. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +72 -0
  450. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/validate_probe_input.rb +46 -0
  451. data/lib/2020-04-15/generated/azure_mgmt_cdn/models/validate_probe_output.rb +73 -0
  452. data/lib/2020-04-15/generated/azure_mgmt_cdn/module_definition.rb +9 -0
  453. data/lib/2020-04-15/generated/azure_mgmt_cdn/operations.rb +219 -0
  454. data/lib/2020-04-15/generated/azure_mgmt_cdn/origin_groups.rb +927 -0
  455. data/lib/2020-04-15/generated/azure_mgmt_cdn/origins.rb +922 -0
  456. data/lib/2020-04-15/generated/azure_mgmt_cdn/policies.rb +789 -0
  457. data/lib/2020-04-15/generated/azure_mgmt_cdn/profiles.rb +1482 -0
  458. data/lib/2020-04-15/generated/azure_mgmt_cdn/resource_usage_operations.rb +228 -0
  459. data/lib/azure_mgmt_cdn.rb +11 -0
  460. data/lib/module_definition.rb +7 -0
  461. data/lib/profiles/latest/cdn_latest_profile_client.rb +40 -0
  462. data/lib/profiles/latest/cdn_module_definition.rb +8 -0
  463. data/lib/profiles/latest/modules/cdn_profile_module.rb +735 -0
  464. data/lib/version.rb +7 -0
  465. metadata +581 -0
@@ -0,0 +1,1476 @@
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::V2016_04_02
7
+ #
8
+ # Use these APIs to manage Azure CDN resources through the Azure Resource
9
+ # Manager. You must make sure that requests made to these resources are
10
+ # secure. For more information, see
11
+ # https://msdn.microsoft.com/en-us/library/azure/dn790557.aspx.
12
+ #
13
+ class Endpoints
14
+ include MsRestAzure
15
+
16
+ #
17
+ # Creates and initializes a new instance of the Endpoints class.
18
+ # @param client service class for accessing basic functionality.
19
+ #
20
+ def initialize(client)
21
+ @client = client
22
+ end
23
+
24
+ # @return [CdnManagementClient] reference to the CdnManagementClient
25
+ attr_reader :client
26
+
27
+ #
28
+ # Lists existing CDN endpoints within a profile.
29
+ #
30
+ # @param profile_name [String] Name of the CDN profile within the resource
31
+ # group.
32
+ # @param resource_group_name [String] Name of the resource group within the
33
+ # Azure subscription.
34
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
35
+ # will be added to the HTTP request.
36
+ #
37
+ # @return [EndpointListResult] operation results.
38
+ #
39
+ def list_by_profile(profile_name, resource_group_name, custom_headers:nil)
40
+ response = list_by_profile_async(profile_name, resource_group_name, custom_headers:custom_headers).value!
41
+ response.body unless response.nil?
42
+ end
43
+
44
+ #
45
+ # Lists existing CDN endpoints within a profile.
46
+ #
47
+ # @param profile_name [String] Name of the CDN profile within the resource
48
+ # group.
49
+ # @param resource_group_name [String] Name of the resource group within the
50
+ # Azure subscription.
51
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
52
+ # will be added to the HTTP request.
53
+ #
54
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
55
+ #
56
+ def list_by_profile_with_http_info(profile_name, resource_group_name, custom_headers:nil)
57
+ list_by_profile_async(profile_name, resource_group_name, custom_headers:custom_headers).value!
58
+ end
59
+
60
+ #
61
+ # Lists existing CDN endpoints within a profile.
62
+ #
63
+ # @param profile_name [String] Name of the CDN profile within the resource
64
+ # group.
65
+ # @param resource_group_name [String] Name of the resource group within the
66
+ # Azure subscription.
67
+ # @param [Hash{String => String}] A hash of custom headers that will be added
68
+ # to the HTTP request.
69
+ #
70
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
+ #
72
+ def list_by_profile_async(profile_name, resource_group_name, custom_headers:nil)
73
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
74
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_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}/endpoints'
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: {'profileName' => profile_name,'resourceGroupName' => resource_group_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::V2016_04_02::Models::EndpointListResult.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 CDN endpoint with the specified parameters.
129
+ #
130
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
131
+ # @param profile_name [String] Name of the CDN profile within the resource
132
+ # group.
133
+ # @param resource_group_name [String] Name of the resource group within the
134
+ # Azure subscription.
135
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
136
+ # will be added to the HTTP request.
137
+ #
138
+ # @return [Endpoint] operation results.
139
+ #
140
+ def get(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
141
+ response = get_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
142
+ response.body unless response.nil?
143
+ end
144
+
145
+ #
146
+ # Gets an existing CDN endpoint with the specified parameters.
147
+ #
148
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
149
+ # @param profile_name [String] Name of the CDN profile within the resource
150
+ # group.
151
+ # @param resource_group_name [String] Name of the resource group within the
152
+ # Azure subscription.
153
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
154
+ # will be added to the HTTP request.
155
+ #
156
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
157
+ #
158
+ def get_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
159
+ get_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
160
+ end
161
+
162
+ #
163
+ # Gets an existing CDN endpoint with the specified parameters.
164
+ #
165
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
166
+ # @param profile_name [String] Name of the CDN profile within the resource
167
+ # group.
168
+ # @param resource_group_name [String] Name of the resource group within the
169
+ # Azure subscription.
170
+ # @param [Hash{String => String}] A hash of custom headers that will be added
171
+ # to the HTTP request.
172
+ #
173
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
174
+ #
175
+ def get_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
176
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
177
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
178
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
179
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
180
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
181
+
182
+
183
+ request_headers = {}
184
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
185
+
186
+ # Set Headers
187
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
188
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
189
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}'
190
+
191
+ request_url = @base_url || @client.base_url
192
+
193
+ options = {
194
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
195
+ path_params: {'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
196
+ query_params: {'api-version' => @client.api_version},
197
+ headers: request_headers.merge(custom_headers || {}),
198
+ base_url: request_url
199
+ }
200
+ promise = @client.make_request_async(:get, path_template, options)
201
+
202
+ promise = promise.then do |result|
203
+ http_response = result.response
204
+ status_code = http_response.status
205
+ response_content = http_response.body
206
+ unless status_code == 200
207
+ error_model = JSON.load(response_content)
208
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
209
+ end
210
+
211
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
212
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
213
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
214
+ # Deserialize Response
215
+ if status_code == 200
216
+ begin
217
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
218
+ result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::Endpoint.mapper()
219
+ result.body = @client.deserialize(result_mapper, parsed_response)
220
+ rescue Exception => e
221
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
222
+ end
223
+ end
224
+
225
+ result
226
+ end
227
+
228
+ promise.execute
229
+ end
230
+
231
+ #
232
+ # Creates a new CDN endpoint with the specified parameters.
233
+ #
234
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
235
+ # @param endpoint_properties [EndpointCreateParameters] Endpoint properties
236
+ # @param profile_name [String] Name of the CDN profile within the resource
237
+ # group.
238
+ # @param resource_group_name [String] Name of the resource group within the
239
+ # Azure subscription.
240
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
241
+ # will be added to the HTTP request.
242
+ #
243
+ # @return [Endpoint] operation results.
244
+ #
245
+ def create(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil)
246
+ response = create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value!
247
+ response.body unless response.nil?
248
+ end
249
+
250
+ #
251
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
252
+ # @param endpoint_properties [EndpointCreateParameters] Endpoint properties
253
+ # @param profile_name [String] Name of the CDN profile within the resource
254
+ # group.
255
+ # @param resource_group_name [String] Name of the resource group within the
256
+ # Azure subscription.
257
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
258
+ # will be added to the HTTP request.
259
+ #
260
+ # @return [Concurrent::Promise] promise which provides async access to http
261
+ # response.
262
+ #
263
+ def create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil)
264
+ # Send request
265
+ promise = begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers)
266
+
267
+ promise = promise.then do |response|
268
+ # Defining deserialization method.
269
+ deserialize_method = lambda do |parsed_response|
270
+ result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::Endpoint.mapper()
271
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
272
+ end
273
+
274
+ # Waiting for response.
275
+ @client.get_long_running_operation_result(response, deserialize_method)
276
+ end
277
+
278
+ promise
279
+ end
280
+
281
+ #
282
+ # Updates an existing CDN endpoint with the specified parameters. Only tags and
283
+ # OriginHostHeader can be updated after creating an endpoint. To update
284
+ # origins, use the Update Origin operation. To update custom domains, use the
285
+ # Update Custom Domain operation.
286
+ #
287
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
288
+ # @param endpoint_properties [EndpointUpdateParameters] Endpoint properties
289
+ # @param profile_name [String] Name of the CDN profile within the resource
290
+ # group.
291
+ # @param resource_group_name [String] Name of the resource group within the
292
+ # Azure subscription.
293
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
294
+ # will be added to the HTTP request.
295
+ #
296
+ # @return [Endpoint] operation results.
297
+ #
298
+ def update(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil)
299
+ response = update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value!
300
+ response.body unless response.nil?
301
+ end
302
+
303
+ #
304
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
305
+ # @param endpoint_properties [EndpointUpdateParameters] Endpoint properties
306
+ # @param profile_name [String] Name of the CDN profile within the resource
307
+ # group.
308
+ # @param resource_group_name [String] Name of the resource group within the
309
+ # Azure subscription.
310
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
311
+ # will be added to the HTTP request.
312
+ #
313
+ # @return [Concurrent::Promise] promise which provides async access to http
314
+ # response.
315
+ #
316
+ def update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil)
317
+ # Send request
318
+ promise = begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers)
319
+
320
+ promise = promise.then do |response|
321
+ # Defining deserialization method.
322
+ deserialize_method = lambda do |parsed_response|
323
+ result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::Endpoint.mapper()
324
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
325
+ end
326
+
327
+ # Waiting for response.
328
+ @client.get_long_running_operation_result(response, deserialize_method)
329
+ end
330
+
331
+ promise
332
+ end
333
+
334
+ #
335
+ # Deletes an existing CDN endpoint with the specified parameters.
336
+ #
337
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
338
+ # @param profile_name [String] Name of the CDN profile within the resource
339
+ # group.
340
+ # @param resource_group_name [String] Name of the resource group within the
341
+ # Azure subscription.
342
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
343
+ # will be added to the HTTP request.
344
+ #
345
+ def delete_if_exists(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
346
+ response = delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
347
+ nil
348
+ end
349
+
350
+ #
351
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
352
+ # @param profile_name [String] Name of the CDN profile within the resource
353
+ # group.
354
+ # @param resource_group_name [String] Name of the resource group within the
355
+ # Azure subscription.
356
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
357
+ # will be added to the HTTP request.
358
+ #
359
+ # @return [Concurrent::Promise] promise which provides async access to http
360
+ # response.
361
+ #
362
+ def delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
363
+ # Send request
364
+ promise = begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers)
365
+
366
+ promise = promise.then do |response|
367
+ # Defining deserialization method.
368
+ deserialize_method = lambda do |parsed_response|
369
+ end
370
+
371
+ # Waiting for response.
372
+ @client.get_long_running_operation_result(response, deserialize_method)
373
+ end
374
+
375
+ promise
376
+ end
377
+
378
+ #
379
+ # Starts an existing stopped CDN endpoint.
380
+ #
381
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
382
+ # @param profile_name [String] Name of the CDN profile within the resource
383
+ # group.
384
+ # @param resource_group_name [String] Name of the resource group within the
385
+ # Azure subscription.
386
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
387
+ # will be added to the HTTP request.
388
+ #
389
+ # @return [Endpoint] operation results.
390
+ #
391
+ def start(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
392
+ response = start_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
393
+ response.body unless response.nil?
394
+ end
395
+
396
+ #
397
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
398
+ # @param profile_name [String] Name of the CDN profile within the resource
399
+ # group.
400
+ # @param resource_group_name [String] Name of the resource group within the
401
+ # Azure subscription.
402
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
403
+ # will be added to the HTTP request.
404
+ #
405
+ # @return [Concurrent::Promise] promise which provides async access to http
406
+ # response.
407
+ #
408
+ def start_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
409
+ # Send request
410
+ promise = begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers)
411
+
412
+ promise = promise.then do |response|
413
+ # Defining deserialization method.
414
+ deserialize_method = lambda do |parsed_response|
415
+ result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::Endpoint.mapper()
416
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
417
+ end
418
+
419
+ # Waiting for response.
420
+ @client.get_long_running_operation_result(response, deserialize_method)
421
+ end
422
+
423
+ promise
424
+ end
425
+
426
+ #
427
+ # Stops an existing running CDN endpoint.
428
+ #
429
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
430
+ # @param profile_name [String] Name of the CDN profile within the resource
431
+ # group.
432
+ # @param resource_group_name [String] Name of the resource group within the
433
+ # Azure subscription.
434
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
435
+ # will be added to the HTTP request.
436
+ #
437
+ # @return [Endpoint] operation results.
438
+ #
439
+ def stop(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
440
+ response = stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
441
+ response.body unless response.nil?
442
+ end
443
+
444
+ #
445
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
446
+ # @param profile_name [String] Name of the CDN profile within the resource
447
+ # group.
448
+ # @param resource_group_name [String] Name of the resource group within the
449
+ # Azure subscription.
450
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
451
+ # will be added to the HTTP request.
452
+ #
453
+ # @return [Concurrent::Promise] promise which provides async access to http
454
+ # response.
455
+ #
456
+ def stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
457
+ # Send request
458
+ promise = begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers)
459
+
460
+ promise = promise.then do |response|
461
+ # Defining deserialization method.
462
+ deserialize_method = lambda do |parsed_response|
463
+ result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::Endpoint.mapper()
464
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
465
+ end
466
+
467
+ # Waiting for response.
468
+ @client.get_long_running_operation_result(response, deserialize_method)
469
+ end
470
+
471
+ promise
472
+ end
473
+
474
+ #
475
+ # Forcibly purges CDN endpoint content.
476
+ #
477
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
478
+ # @param content_file_paths [PurgeParameters] The path to the content to be
479
+ # purged. Path can describe a file or directory.
480
+ # @param profile_name [String] Name of the CDN profile within the resource
481
+ # group.
482
+ # @param resource_group_name [String] Name of the resource group within the
483
+ # Azure subscription.
484
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
485
+ # will be added to the HTTP request.
486
+ #
487
+ def purge_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil)
488
+ response = purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value!
489
+ nil
490
+ end
491
+
492
+ #
493
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
494
+ # @param content_file_paths [PurgeParameters] The path to the content to be
495
+ # purged. Path can describe a file or directory.
496
+ # @param profile_name [String] Name of the CDN profile within the resource
497
+ # group.
498
+ # @param resource_group_name [String] Name of the resource group within the
499
+ # Azure subscription.
500
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
501
+ # will be added to the HTTP request.
502
+ #
503
+ # @return [Concurrent::Promise] promise which provides async access to http
504
+ # response.
505
+ #
506
+ def purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil)
507
+ # Send request
508
+ promise = begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers)
509
+
510
+ promise = promise.then do |response|
511
+ # Defining deserialization method.
512
+ deserialize_method = lambda do |parsed_response|
513
+ end
514
+
515
+ # Waiting for response.
516
+ @client.get_long_running_operation_result(response, deserialize_method)
517
+ end
518
+
519
+ promise
520
+ end
521
+
522
+ #
523
+ # Forcibly pre-loads CDN endpoint content.
524
+ #
525
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
526
+ # @param content_file_paths [LoadParameters] The path to the content to be
527
+ # loaded. Path should describe a file.
528
+ # @param profile_name [String] Name of the CDN profile within the resource
529
+ # group.
530
+ # @param resource_group_name [String] Name of the resource group within the
531
+ # Azure subscription.
532
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
533
+ # will be added to the HTTP request.
534
+ #
535
+ def load_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil)
536
+ response = load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value!
537
+ nil
538
+ end
539
+
540
+ #
541
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
542
+ # @param content_file_paths [LoadParameters] The path to the content to be
543
+ # loaded. Path should describe a file.
544
+ # @param profile_name [String] Name of the CDN profile within the resource
545
+ # group.
546
+ # @param resource_group_name [String] Name of the resource group within the
547
+ # Azure subscription.
548
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
549
+ # will be added to the HTTP request.
550
+ #
551
+ # @return [Concurrent::Promise] promise which provides async access to http
552
+ # response.
553
+ #
554
+ def load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil)
555
+ # Send request
556
+ promise = begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers)
557
+
558
+ promise = promise.then do |response|
559
+ # Defining deserialization method.
560
+ deserialize_method = lambda do |parsed_response|
561
+ end
562
+
563
+ # Waiting for response.
564
+ @client.get_long_running_operation_result(response, deserialize_method)
565
+ end
566
+
567
+ promise
568
+ end
569
+
570
+ #
571
+ # Validates a custom domain mapping to ensure it maps to the correct CNAME in
572
+ # DNS.
573
+ #
574
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
575
+ # @param custom_domain_properties [ValidateCustomDomainInput] Custom domain to
576
+ # validate.
577
+ # @param profile_name [String] Name of the CDN profile within the resource
578
+ # group.
579
+ # @param resource_group_name [String] Name of the resource group within the
580
+ # Azure subscription.
581
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
582
+ # will be added to the HTTP request.
583
+ #
584
+ # @return [ValidateCustomDomainOutput] operation results.
585
+ #
586
+ def validate_custom_domain(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:nil)
587
+ response = validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:custom_headers).value!
588
+ response.body unless response.nil?
589
+ end
590
+
591
+ #
592
+ # Validates a custom domain mapping to ensure it maps to the correct CNAME in
593
+ # DNS.
594
+ #
595
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
596
+ # @param custom_domain_properties [ValidateCustomDomainInput] Custom domain to
597
+ # validate.
598
+ # @param profile_name [String] Name of the CDN profile within the resource
599
+ # group.
600
+ # @param resource_group_name [String] Name of the resource group within the
601
+ # Azure subscription.
602
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
603
+ # will be added to the HTTP request.
604
+ #
605
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
606
+ #
607
+ def validate_custom_domain_with_http_info(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:nil)
608
+ validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:custom_headers).value!
609
+ end
610
+
611
+ #
612
+ # Validates a custom domain mapping to ensure it maps to the correct CNAME in
613
+ # DNS.
614
+ #
615
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
616
+ # @param custom_domain_properties [ValidateCustomDomainInput] Custom domain to
617
+ # validate.
618
+ # @param profile_name [String] Name of the CDN profile within the resource
619
+ # group.
620
+ # @param resource_group_name [String] Name of the resource group within the
621
+ # Azure subscription.
622
+ # @param [Hash{String => String}] A hash of custom headers that will be added
623
+ # to the HTTP request.
624
+ #
625
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
626
+ #
627
+ def validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:nil)
628
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
629
+ fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil?
630
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
631
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
632
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
633
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
634
+
635
+
636
+ request_headers = {}
637
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
638
+
639
+ # Set Headers
640
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
641
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
642
+
643
+ # Serialize Request
644
+ request_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::ValidateCustomDomainInput.mapper()
645
+ request_content = @client.serialize(request_mapper, custom_domain_properties)
646
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
647
+
648
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/validateCustomDomain'
649
+
650
+ request_url = @base_url || @client.base_url
651
+
652
+ options = {
653
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
654
+ path_params: {'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
655
+ query_params: {'api-version' => @client.api_version},
656
+ body: request_content,
657
+ headers: request_headers.merge(custom_headers || {}),
658
+ base_url: request_url
659
+ }
660
+ promise = @client.make_request_async(:post, path_template, options)
661
+
662
+ promise = promise.then do |result|
663
+ http_response = result.response
664
+ status_code = http_response.status
665
+ response_content = http_response.body
666
+ unless status_code == 200
667
+ error_model = JSON.load(response_content)
668
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
669
+ end
670
+
671
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
672
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
673
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
674
+ # Deserialize Response
675
+ if status_code == 200
676
+ begin
677
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
678
+ result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::ValidateCustomDomainOutput.mapper()
679
+ result.body = @client.deserialize(result_mapper, parsed_response)
680
+ rescue Exception => e
681
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
682
+ end
683
+ end
684
+
685
+ result
686
+ end
687
+
688
+ promise.execute
689
+ end
690
+
691
+ #
692
+ # Creates a new CDN endpoint with the specified parameters.
693
+ #
694
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
695
+ # @param endpoint_properties [EndpointCreateParameters] Endpoint properties
696
+ # @param profile_name [String] Name of the CDN profile within the resource
697
+ # group.
698
+ # @param resource_group_name [String] Name of the resource group within the
699
+ # Azure subscription.
700
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
701
+ # will be added to the HTTP request.
702
+ #
703
+ # @return [Endpoint] operation results.
704
+ #
705
+ def begin_create(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil)
706
+ response = begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value!
707
+ response.body unless response.nil?
708
+ end
709
+
710
+ #
711
+ # Creates a new CDN endpoint with the specified parameters.
712
+ #
713
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
714
+ # @param endpoint_properties [EndpointCreateParameters] Endpoint properties
715
+ # @param profile_name [String] Name of the CDN profile within the resource
716
+ # group.
717
+ # @param resource_group_name [String] Name of the resource group within the
718
+ # Azure subscription.
719
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
720
+ # will be added to the HTTP request.
721
+ #
722
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
723
+ #
724
+ def begin_create_with_http_info(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil)
725
+ begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value!
726
+ end
727
+
728
+ #
729
+ # Creates a new CDN endpoint with the specified parameters.
730
+ #
731
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
732
+ # @param endpoint_properties [EndpointCreateParameters] Endpoint properties
733
+ # @param profile_name [String] Name of the CDN profile within the resource
734
+ # group.
735
+ # @param resource_group_name [String] Name of the resource group within the
736
+ # Azure subscription.
737
+ # @param [Hash{String => String}] A hash of custom headers that will be added
738
+ # to the HTTP request.
739
+ #
740
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
741
+ #
742
+ def begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil)
743
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
744
+ fail ArgumentError, 'endpoint_properties is nil' if endpoint_properties.nil?
745
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
746
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
747
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
748
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
749
+
750
+
751
+ request_headers = {}
752
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
753
+
754
+ # Set Headers
755
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
756
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
757
+
758
+ # Serialize Request
759
+ request_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::EndpointCreateParameters.mapper()
760
+ request_content = @client.serialize(request_mapper, endpoint_properties)
761
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
762
+
763
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}'
764
+
765
+ request_url = @base_url || @client.base_url
766
+
767
+ options = {
768
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
769
+ path_params: {'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
770
+ query_params: {'api-version' => @client.api_version},
771
+ body: request_content,
772
+ headers: request_headers.merge(custom_headers || {}),
773
+ base_url: request_url
774
+ }
775
+ promise = @client.make_request_async(:put, path_template, options)
776
+
777
+ promise = promise.then do |result|
778
+ http_response = result.response
779
+ status_code = http_response.status
780
+ response_content = http_response.body
781
+ unless status_code == 200 || status_code == 201 || status_code == 202
782
+ error_model = JSON.load(response_content)
783
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
784
+ end
785
+
786
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
787
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
788
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
789
+ # Deserialize Response
790
+ if status_code == 200
791
+ begin
792
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
793
+ result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::Endpoint.mapper()
794
+ result.body = @client.deserialize(result_mapper, parsed_response)
795
+ rescue Exception => e
796
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
797
+ end
798
+ end
799
+ # Deserialize Response
800
+ if status_code == 201
801
+ begin
802
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
803
+ result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::Endpoint.mapper()
804
+ result.body = @client.deserialize(result_mapper, parsed_response)
805
+ rescue Exception => e
806
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
807
+ end
808
+ end
809
+ # Deserialize Response
810
+ if status_code == 202
811
+ begin
812
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
813
+ result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::Endpoint.mapper()
814
+ result.body = @client.deserialize(result_mapper, parsed_response)
815
+ rescue Exception => e
816
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
817
+ end
818
+ end
819
+
820
+ result
821
+ end
822
+
823
+ promise.execute
824
+ end
825
+
826
+ #
827
+ # Updates an existing CDN endpoint with the specified parameters. Only tags and
828
+ # OriginHostHeader can be updated after creating an endpoint. To update
829
+ # origins, use the Update Origin operation. To update custom domains, use the
830
+ # Update Custom Domain operation.
831
+ #
832
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
833
+ # @param endpoint_properties [EndpointUpdateParameters] Endpoint properties
834
+ # @param profile_name [String] Name of the CDN profile within the resource
835
+ # group.
836
+ # @param resource_group_name [String] Name of the resource group within the
837
+ # Azure subscription.
838
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
839
+ # will be added to the HTTP request.
840
+ #
841
+ # @return [Endpoint] operation results.
842
+ #
843
+ def begin_update(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil)
844
+ response = begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value!
845
+ response.body unless response.nil?
846
+ end
847
+
848
+ #
849
+ # Updates an existing CDN endpoint with the specified parameters. Only tags and
850
+ # OriginHostHeader can be updated after creating an endpoint. To update
851
+ # origins, use the Update Origin operation. To update custom domains, use the
852
+ # Update Custom Domain operation.
853
+ #
854
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
855
+ # @param endpoint_properties [EndpointUpdateParameters] Endpoint properties
856
+ # @param profile_name [String] Name of the CDN profile within the resource
857
+ # group.
858
+ # @param resource_group_name [String] Name of the resource group within the
859
+ # Azure subscription.
860
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
861
+ # will be added to the HTTP request.
862
+ #
863
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
864
+ #
865
+ def begin_update_with_http_info(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil)
866
+ begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value!
867
+ end
868
+
869
+ #
870
+ # Updates an existing CDN endpoint with the specified parameters. Only tags and
871
+ # OriginHostHeader can be updated after creating an endpoint. To update
872
+ # origins, use the Update Origin operation. To update custom domains, use the
873
+ # Update Custom Domain operation.
874
+ #
875
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
876
+ # @param endpoint_properties [EndpointUpdateParameters] Endpoint properties
877
+ # @param profile_name [String] Name of the CDN profile within the resource
878
+ # group.
879
+ # @param resource_group_name [String] Name of the resource group within the
880
+ # Azure subscription.
881
+ # @param [Hash{String => String}] A hash of custom headers that will be added
882
+ # to the HTTP request.
883
+ #
884
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
885
+ #
886
+ def begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil)
887
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
888
+ fail ArgumentError, 'endpoint_properties is nil' if endpoint_properties.nil?
889
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
890
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
891
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
892
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
893
+
894
+
895
+ request_headers = {}
896
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
897
+
898
+ # Set Headers
899
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
900
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
901
+
902
+ # Serialize Request
903
+ request_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::EndpointUpdateParameters.mapper()
904
+ request_content = @client.serialize(request_mapper, endpoint_properties)
905
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
906
+
907
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}'
908
+
909
+ request_url = @base_url || @client.base_url
910
+
911
+ options = {
912
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
913
+ path_params: {'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
914
+ query_params: {'api-version' => @client.api_version},
915
+ body: request_content,
916
+ headers: request_headers.merge(custom_headers || {}),
917
+ base_url: request_url
918
+ }
919
+ promise = @client.make_request_async(:patch, path_template, options)
920
+
921
+ promise = promise.then do |result|
922
+ http_response = result.response
923
+ status_code = http_response.status
924
+ response_content = http_response.body
925
+ unless status_code == 200 || status_code == 202
926
+ error_model = JSON.load(response_content)
927
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
928
+ end
929
+
930
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
931
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
932
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
933
+ # Deserialize Response
934
+ if status_code == 200
935
+ begin
936
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
937
+ result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::Endpoint.mapper()
938
+ result.body = @client.deserialize(result_mapper, parsed_response)
939
+ rescue Exception => e
940
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
941
+ end
942
+ end
943
+ # Deserialize Response
944
+ if status_code == 202
945
+ begin
946
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
947
+ result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::Endpoint.mapper()
948
+ result.body = @client.deserialize(result_mapper, parsed_response)
949
+ rescue Exception => e
950
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
951
+ end
952
+ end
953
+
954
+ result
955
+ end
956
+
957
+ promise.execute
958
+ end
959
+
960
+ #
961
+ # Deletes an existing CDN endpoint with the specified parameters.
962
+ #
963
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
964
+ # @param profile_name [String] Name of the CDN profile within the resource
965
+ # group.
966
+ # @param resource_group_name [String] Name of the resource group within the
967
+ # Azure subscription.
968
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
969
+ # will be added to the HTTP request.
970
+ #
971
+ #
972
+ def begin_delete_if_exists(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
973
+ response = begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
974
+ nil
975
+ end
976
+
977
+ #
978
+ # Deletes an existing CDN endpoint with the specified parameters.
979
+ #
980
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
981
+ # @param profile_name [String] Name of the CDN profile within the resource
982
+ # group.
983
+ # @param resource_group_name [String] Name of the resource group within the
984
+ # Azure subscription.
985
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
986
+ # will be added to the HTTP request.
987
+ #
988
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
989
+ #
990
+ def begin_delete_if_exists_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
991
+ begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
992
+ end
993
+
994
+ #
995
+ # Deletes an existing CDN endpoint with the specified parameters.
996
+ #
997
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
998
+ # @param profile_name [String] Name of the CDN profile within the resource
999
+ # group.
1000
+ # @param resource_group_name [String] Name of the resource group within the
1001
+ # Azure subscription.
1002
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1003
+ # to the HTTP request.
1004
+ #
1005
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1006
+ #
1007
+ def begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
1008
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
1009
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
1010
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1011
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1012
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1013
+
1014
+
1015
+ request_headers = {}
1016
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1017
+
1018
+ # Set Headers
1019
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1020
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1021
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}'
1022
+
1023
+ request_url = @base_url || @client.base_url
1024
+
1025
+ options = {
1026
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1027
+ path_params: {'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
1028
+ query_params: {'api-version' => @client.api_version},
1029
+ headers: request_headers.merge(custom_headers || {}),
1030
+ base_url: request_url
1031
+ }
1032
+ promise = @client.make_request_async(:delete, path_template, options)
1033
+
1034
+ promise = promise.then do |result|
1035
+ http_response = result.response
1036
+ status_code = http_response.status
1037
+ response_content = http_response.body
1038
+ unless status_code == 202 || status_code == 204
1039
+ error_model = JSON.load(response_content)
1040
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1041
+ end
1042
+
1043
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1044
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1045
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1046
+
1047
+ result
1048
+ end
1049
+
1050
+ promise.execute
1051
+ end
1052
+
1053
+ #
1054
+ # Starts an existing stopped CDN endpoint.
1055
+ #
1056
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
1057
+ # @param profile_name [String] Name of the CDN profile within the resource
1058
+ # group.
1059
+ # @param resource_group_name [String] Name of the resource group within the
1060
+ # Azure subscription.
1061
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1062
+ # will be added to the HTTP request.
1063
+ #
1064
+ # @return [Endpoint] operation results.
1065
+ #
1066
+ def begin_start(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
1067
+ response = begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
1068
+ response.body unless response.nil?
1069
+ end
1070
+
1071
+ #
1072
+ # Starts an existing stopped CDN endpoint.
1073
+ #
1074
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
1075
+ # @param profile_name [String] Name of the CDN profile within the resource
1076
+ # group.
1077
+ # @param resource_group_name [String] Name of the resource group within the
1078
+ # Azure subscription.
1079
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1080
+ # will be added to the HTTP request.
1081
+ #
1082
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1083
+ #
1084
+ def begin_start_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
1085
+ begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
1086
+ end
1087
+
1088
+ #
1089
+ # Starts an existing stopped CDN endpoint.
1090
+ #
1091
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
1092
+ # @param profile_name [String] Name of the CDN profile within the resource
1093
+ # group.
1094
+ # @param resource_group_name [String] Name of the resource group within the
1095
+ # Azure subscription.
1096
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1097
+ # to the HTTP request.
1098
+ #
1099
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1100
+ #
1101
+ def begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
1102
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
1103
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
1104
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1105
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1106
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1107
+
1108
+
1109
+ request_headers = {}
1110
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1111
+
1112
+ # Set Headers
1113
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1114
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1115
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/start'
1116
+
1117
+ request_url = @base_url || @client.base_url
1118
+
1119
+ options = {
1120
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1121
+ path_params: {'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
1122
+ query_params: {'api-version' => @client.api_version},
1123
+ headers: request_headers.merge(custom_headers || {}),
1124
+ base_url: request_url
1125
+ }
1126
+ promise = @client.make_request_async(:post, path_template, options)
1127
+
1128
+ promise = promise.then do |result|
1129
+ http_response = result.response
1130
+ status_code = http_response.status
1131
+ response_content = http_response.body
1132
+ unless status_code == 202
1133
+ error_model = JSON.load(response_content)
1134
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1135
+ end
1136
+
1137
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1138
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1139
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1140
+ # Deserialize Response
1141
+ if status_code == 202
1142
+ begin
1143
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1144
+ result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::Endpoint.mapper()
1145
+ result.body = @client.deserialize(result_mapper, parsed_response)
1146
+ rescue Exception => e
1147
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1148
+ end
1149
+ end
1150
+
1151
+ result
1152
+ end
1153
+
1154
+ promise.execute
1155
+ end
1156
+
1157
+ #
1158
+ # Stops an existing running CDN endpoint.
1159
+ #
1160
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
1161
+ # @param profile_name [String] Name of the CDN profile within the resource
1162
+ # group.
1163
+ # @param resource_group_name [String] Name of the resource group within the
1164
+ # Azure subscription.
1165
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1166
+ # will be added to the HTTP request.
1167
+ #
1168
+ # @return [Endpoint] operation results.
1169
+ #
1170
+ def begin_stop(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
1171
+ response = begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
1172
+ response.body unless response.nil?
1173
+ end
1174
+
1175
+ #
1176
+ # Stops an existing running CDN endpoint.
1177
+ #
1178
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
1179
+ # @param profile_name [String] Name of the CDN profile within the resource
1180
+ # group.
1181
+ # @param resource_group_name [String] Name of the resource group within the
1182
+ # Azure subscription.
1183
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1184
+ # will be added to the HTTP request.
1185
+ #
1186
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1187
+ #
1188
+ def begin_stop_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
1189
+ begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
1190
+ end
1191
+
1192
+ #
1193
+ # Stops an existing running CDN endpoint.
1194
+ #
1195
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
1196
+ # @param profile_name [String] Name of the CDN profile within the resource
1197
+ # group.
1198
+ # @param resource_group_name [String] Name of the resource group within the
1199
+ # Azure subscription.
1200
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1201
+ # to the HTTP request.
1202
+ #
1203
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1204
+ #
1205
+ def begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
1206
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
1207
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
1208
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1209
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1210
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1211
+
1212
+
1213
+ request_headers = {}
1214
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1215
+
1216
+ # Set Headers
1217
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1218
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1219
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/stop'
1220
+
1221
+ request_url = @base_url || @client.base_url
1222
+
1223
+ options = {
1224
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1225
+ path_params: {'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
1226
+ query_params: {'api-version' => @client.api_version},
1227
+ headers: request_headers.merge(custom_headers || {}),
1228
+ base_url: request_url
1229
+ }
1230
+ promise = @client.make_request_async(:post, path_template, options)
1231
+
1232
+ promise = promise.then do |result|
1233
+ http_response = result.response
1234
+ status_code = http_response.status
1235
+ response_content = http_response.body
1236
+ unless status_code == 202
1237
+ error_model = JSON.load(response_content)
1238
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1239
+ end
1240
+
1241
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1242
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1243
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1244
+ # Deserialize Response
1245
+ if status_code == 202
1246
+ begin
1247
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1248
+ result_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::Endpoint.mapper()
1249
+ result.body = @client.deserialize(result_mapper, parsed_response)
1250
+ rescue Exception => e
1251
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1252
+ end
1253
+ end
1254
+
1255
+ result
1256
+ end
1257
+
1258
+ promise.execute
1259
+ end
1260
+
1261
+ #
1262
+ # Forcibly purges CDN endpoint content.
1263
+ #
1264
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
1265
+ # @param content_file_paths [PurgeParameters] The path to the content to be
1266
+ # purged. Path can describe a file or directory.
1267
+ # @param profile_name [String] Name of the CDN profile within the resource
1268
+ # group.
1269
+ # @param resource_group_name [String] Name of the resource group within the
1270
+ # Azure subscription.
1271
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1272
+ # will be added to the HTTP request.
1273
+ #
1274
+ #
1275
+ def begin_purge_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil)
1276
+ response = begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value!
1277
+ nil
1278
+ end
1279
+
1280
+ #
1281
+ # Forcibly purges CDN endpoint content.
1282
+ #
1283
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
1284
+ # @param content_file_paths [PurgeParameters] The path to the content to be
1285
+ # purged. Path can describe a file or directory.
1286
+ # @param profile_name [String] Name of the CDN profile within the resource
1287
+ # group.
1288
+ # @param resource_group_name [String] Name of the resource group within the
1289
+ # Azure subscription.
1290
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1291
+ # will be added to the HTTP request.
1292
+ #
1293
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1294
+ #
1295
+ def begin_purge_content_with_http_info(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil)
1296
+ begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value!
1297
+ end
1298
+
1299
+ #
1300
+ # Forcibly purges CDN endpoint content.
1301
+ #
1302
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
1303
+ # @param content_file_paths [PurgeParameters] The path to the content to be
1304
+ # purged. Path can describe a file or directory.
1305
+ # @param profile_name [String] Name of the CDN profile within the resource
1306
+ # group.
1307
+ # @param resource_group_name [String] Name of the resource group within the
1308
+ # Azure subscription.
1309
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1310
+ # to the HTTP request.
1311
+ #
1312
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1313
+ #
1314
+ def begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil)
1315
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
1316
+ fail ArgumentError, 'content_file_paths is nil' if content_file_paths.nil?
1317
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
1318
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1319
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1320
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1321
+
1322
+
1323
+ request_headers = {}
1324
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1325
+
1326
+ # Set Headers
1327
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1328
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1329
+
1330
+ # Serialize Request
1331
+ request_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::PurgeParameters.mapper()
1332
+ request_content = @client.serialize(request_mapper, content_file_paths)
1333
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1334
+
1335
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/purge'
1336
+
1337
+ request_url = @base_url || @client.base_url
1338
+
1339
+ options = {
1340
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1341
+ path_params: {'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
1342
+ query_params: {'api-version' => @client.api_version},
1343
+ body: request_content,
1344
+ headers: request_headers.merge(custom_headers || {}),
1345
+ base_url: request_url
1346
+ }
1347
+ promise = @client.make_request_async(:post, path_template, options)
1348
+
1349
+ promise = promise.then do |result|
1350
+ http_response = result.response
1351
+ status_code = http_response.status
1352
+ response_content = http_response.body
1353
+ unless status_code == 202
1354
+ error_model = JSON.load(response_content)
1355
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1356
+ end
1357
+
1358
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1359
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1360
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1361
+
1362
+ result
1363
+ end
1364
+
1365
+ promise.execute
1366
+ end
1367
+
1368
+ #
1369
+ # Forcibly pre-loads CDN endpoint content.
1370
+ #
1371
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
1372
+ # @param content_file_paths [LoadParameters] The path to the content to be
1373
+ # loaded. Path should describe a file.
1374
+ # @param profile_name [String] Name of the CDN profile within the resource
1375
+ # group.
1376
+ # @param resource_group_name [String] Name of the resource group within the
1377
+ # Azure subscription.
1378
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1379
+ # will be added to the HTTP request.
1380
+ #
1381
+ #
1382
+ def begin_load_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil)
1383
+ response = begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value!
1384
+ nil
1385
+ end
1386
+
1387
+ #
1388
+ # Forcibly pre-loads CDN endpoint content.
1389
+ #
1390
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
1391
+ # @param content_file_paths [LoadParameters] The path to the content to be
1392
+ # loaded. Path should describe a file.
1393
+ # @param profile_name [String] Name of the CDN profile within the resource
1394
+ # group.
1395
+ # @param resource_group_name [String] Name of the resource group within the
1396
+ # Azure subscription.
1397
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1398
+ # will be added to the HTTP request.
1399
+ #
1400
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1401
+ #
1402
+ def begin_load_content_with_http_info(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil)
1403
+ begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value!
1404
+ end
1405
+
1406
+ #
1407
+ # Forcibly pre-loads CDN endpoint content.
1408
+ #
1409
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
1410
+ # @param content_file_paths [LoadParameters] The path to the content to be
1411
+ # loaded. Path should describe a file.
1412
+ # @param profile_name [String] Name of the CDN profile within the resource
1413
+ # group.
1414
+ # @param resource_group_name [String] Name of the resource group within the
1415
+ # Azure subscription.
1416
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1417
+ # to the HTTP request.
1418
+ #
1419
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1420
+ #
1421
+ def begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil)
1422
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
1423
+ fail ArgumentError, 'content_file_paths is nil' if content_file_paths.nil?
1424
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
1425
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1426
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1427
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1428
+
1429
+
1430
+ request_headers = {}
1431
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1432
+
1433
+ # Set Headers
1434
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1435
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1436
+
1437
+ # Serialize Request
1438
+ request_mapper = Azure::CDN::Mgmt::V2016_04_02::Models::LoadParameters.mapper()
1439
+ request_content = @client.serialize(request_mapper, content_file_paths)
1440
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1441
+
1442
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/load'
1443
+
1444
+ request_url = @base_url || @client.base_url
1445
+
1446
+ options = {
1447
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1448
+ path_params: {'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
1449
+ query_params: {'api-version' => @client.api_version},
1450
+ body: request_content,
1451
+ headers: request_headers.merge(custom_headers || {}),
1452
+ base_url: request_url
1453
+ }
1454
+ promise = @client.make_request_async(:post, path_template, options)
1455
+
1456
+ promise = promise.then do |result|
1457
+ http_response = result.response
1458
+ status_code = http_response.status
1459
+ response_content = http_response.body
1460
+ unless status_code == 202
1461
+ error_model = JSON.load(response_content)
1462
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1463
+ end
1464
+
1465
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1466
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1467
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1468
+
1469
+ result
1470
+ end
1471
+
1472
+ promise.execute
1473
+ end
1474
+
1475
+ end
1476
+ end