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,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: dee1da49f39f89d7a9d1d740c1217c0785390953845349d56ea0790945e4a262
4
+ data.tar.gz: 9516180dad98b9bd26c495120e0d153d3137ed4d60ff43e34163c9306d0fe4a6
5
+ SHA512:
6
+ metadata.gz: 12ccfb42c129b42b69a5eb3bcc7a467eee4ded3e82e7e7a34e9e815ed4ed6ffd248c49eb966ad5bf58dadd3df1357721eaba09459555317feb0fff94629f15d3
7
+ data.tar.gz: c51ddf628618621a7371e5d51eeed39ec7213fc7ce0f284f88730f5cc58d11341f142729103823441e27dd72dd27fd4a3e180f374d22871c4775e4423e2ff43b
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Microsoft Corporation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,70 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2015-06-01/generated/azure_mgmt_cdn/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::CDN::Mgmt::V2015_06_01
23
+ autoload :Profiles, '2015-06-01/generated/azure_mgmt_cdn/profiles.rb'
24
+ autoload :Endpoints, '2015-06-01/generated/azure_mgmt_cdn/endpoints.rb'
25
+ autoload :Origins, '2015-06-01/generated/azure_mgmt_cdn/origins.rb'
26
+ autoload :CustomDomains, '2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb'
27
+ autoload :NameAvailability, '2015-06-01/generated/azure_mgmt_cdn/name_availability.rb'
28
+ autoload :Operations, '2015-06-01/generated/azure_mgmt_cdn/operations.rb'
29
+ autoload :CdnManagementClient, '2015-06-01/generated/azure_mgmt_cdn/cdn_management_client.rb'
30
+
31
+ module Models
32
+ autoload :OriginParameters, '2015-06-01/generated/azure_mgmt_cdn/models/origin_parameters.rb'
33
+ autoload :OriginListResult, '2015-06-01/generated/azure_mgmt_cdn/models/origin_list_result.rb'
34
+ autoload :ErrorResponse, '2015-06-01/generated/azure_mgmt_cdn/models/error_response.rb'
35
+ autoload :Sku, '2015-06-01/generated/azure_mgmt_cdn/models/sku.rb'
36
+ autoload :ProfileCreateParameters, '2015-06-01/generated/azure_mgmt_cdn/models/profile_create_parameters.rb'
37
+ autoload :Resource, '2015-06-01/generated/azure_mgmt_cdn/models/resource.rb'
38
+ autoload :SsoUri, '2015-06-01/generated/azure_mgmt_cdn/models/sso_uri.rb'
39
+ autoload :DeepCreatedOrigin, '2015-06-01/generated/azure_mgmt_cdn/models/deep_created_origin.rb'
40
+ autoload :OperationListResult, '2015-06-01/generated/azure_mgmt_cdn/models/operation_list_result.rb'
41
+ autoload :EndpointListResult, '2015-06-01/generated/azure_mgmt_cdn/models/endpoint_list_result.rb'
42
+ autoload :CustomDomainParameters, '2015-06-01/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb'
43
+ autoload :EndpointUpdateParameters, '2015-06-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb'
44
+ autoload :CustomDomainListResult, '2015-06-01/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb'
45
+ autoload :LoadParameters, '2015-06-01/generated/azure_mgmt_cdn/models/load_parameters.rb'
46
+ autoload :ValidateCustomDomainInput, '2015-06-01/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb'
47
+ autoload :ProfileUpdateParameters, '2015-06-01/generated/azure_mgmt_cdn/models/profile_update_parameters.rb'
48
+ autoload :ValidateCustomDomainOutput, '2015-06-01/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb'
49
+ autoload :EndpointCreateParameters, '2015-06-01/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb'
50
+ autoload :CheckNameAvailabilityInput, '2015-06-01/generated/azure_mgmt_cdn/models/check_name_availability_input.rb'
51
+ autoload :ProfileListResult, '2015-06-01/generated/azure_mgmt_cdn/models/profile_list_result.rb'
52
+ autoload :CheckNameAvailabilityOutput, '2015-06-01/generated/azure_mgmt_cdn/models/check_name_availability_output.rb'
53
+ autoload :PurgeParameters, '2015-06-01/generated/azure_mgmt_cdn/models/purge_parameters.rb'
54
+ autoload :OperationDisplay, '2015-06-01/generated/azure_mgmt_cdn/models/operation_display.rb'
55
+ autoload :Operation, '2015-06-01/generated/azure_mgmt_cdn/models/operation.rb'
56
+ autoload :TrackedResource, '2015-06-01/generated/azure_mgmt_cdn/models/tracked_resource.rb'
57
+ autoload :Profile, '2015-06-01/generated/azure_mgmt_cdn/models/profile.rb'
58
+ autoload :Endpoint, '2015-06-01/generated/azure_mgmt_cdn/models/endpoint.rb'
59
+ autoload :Origin, '2015-06-01/generated/azure_mgmt_cdn/models/origin.rb'
60
+ autoload :CustomDomain, '2015-06-01/generated/azure_mgmt_cdn/models/custom_domain.rb'
61
+ autoload :SkuName, '2015-06-01/generated/azure_mgmt_cdn/models/sku_name.rb'
62
+ autoload :ProfileResourceState, '2015-06-01/generated/azure_mgmt_cdn/models/profile_resource_state.rb'
63
+ autoload :ProvisioningState, '2015-06-01/generated/azure_mgmt_cdn/models/provisioning_state.rb'
64
+ autoload :QueryStringCachingBehavior, '2015-06-01/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb'
65
+ autoload :EndpointResourceState, '2015-06-01/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb'
66
+ autoload :OriginResourceState, '2015-06-01/generated/azure_mgmt_cdn/models/origin_resource_state.rb'
67
+ autoload :CustomDomainResourceState, '2015-06-01/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb'
68
+ autoload :ResourceType, '2015-06-01/generated/azure_mgmt_cdn/models/resource_type.rb'
69
+ end
70
+ end
@@ -0,0 +1,152 @@
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::V2015_06_01
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class CdnManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] Azure Subscription ID.
21
+ attr_accessor :subscription_id
22
+
23
+ # @return [String] Version of the API to be used with the client request.
24
+ # Current version is 2015-06-01
25
+ attr_reader :api_version
26
+
27
+ # @return [String] The preferred language for the response.
28
+ attr_accessor :accept_language
29
+
30
+ # @return [Integer] The retry timeout in seconds for Long Running
31
+ # Operations. Default value is 30.
32
+ attr_accessor :long_running_operation_retry_timeout
33
+
34
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
35
+ # generated. When set to true a unique x-ms-client-request-id value is
36
+ # generated and included in each request. Default is true.
37
+ attr_accessor :generate_client_request_id
38
+
39
+ # @return [Profiles] profiles
40
+ attr_reader :profiles
41
+
42
+ # @return [Endpoints] endpoints
43
+ attr_reader :endpoints
44
+
45
+ # @return [Origins] origins
46
+ attr_reader :origins
47
+
48
+ # @return [CustomDomains] custom_domains
49
+ attr_reader :custom_domains
50
+
51
+ # @return [NameAvailability] name_availability
52
+ attr_reader :name_availability
53
+
54
+ # @return [Operations] operations
55
+ attr_reader :operations
56
+
57
+ #
58
+ # Creates initializes a new instance of the CdnManagementClient class.
59
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
60
+ # @param base_url [String] the base URI of the service.
61
+ # @param options [Array] filters to be applied to the HTTP requests.
62
+ #
63
+ def initialize(credentials = nil, base_url = nil, options = nil)
64
+ super(credentials, options)
65
+ @base_url = base_url || 'https://management.azure.com'
66
+
67
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
68
+ @credentials = credentials
69
+
70
+ @profiles = Profiles.new(self)
71
+ @endpoints = Endpoints.new(self)
72
+ @origins = Origins.new(self)
73
+ @custom_domains = CustomDomains.new(self)
74
+ @name_availability = NameAvailability.new(self)
75
+ @operations = Operations.new(self)
76
+ @api_version = '2015-06-01'
77
+ @accept_language = 'en-US'
78
+ @long_running_operation_retry_timeout = 30
79
+ @generate_client_request_id = true
80
+ add_telemetry
81
+ end
82
+
83
+ #
84
+ # Makes a request and returns the body of the response.
85
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
86
+ # @param path [String] the path, relative to {base_url}.
87
+ # @param options [Hash{String=>String}] specifying any request options like :body.
88
+ # @return [Hash{String=>String}] containing the body of the response.
89
+ # Example:
90
+ #
91
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
92
+ # path = "/path"
93
+ # options = {
94
+ # body: request_content,
95
+ # query_params: {'api-version' => '2016-02-01'}
96
+ # }
97
+ # result = @client.make_request(:put, path, options)
98
+ #
99
+ def make_request(method, path, options = {})
100
+ result = make_request_with_http_info(method, path, options)
101
+ result.body unless result.nil?
102
+ end
103
+
104
+ #
105
+ # Makes a request and returns the operation response.
106
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
107
+ # @param path [String] the path, relative to {base_url}.
108
+ # @param options [Hash{String=>String}] specifying any request options like :body.
109
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
110
+ #
111
+ def make_request_with_http_info(method, path, options = {})
112
+ result = make_request_async(method, path, options).value!
113
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
114
+ result
115
+ end
116
+
117
+ #
118
+ # Makes a request asynchronously.
119
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
120
+ # @param path [String] the path, relative to {base_url}.
121
+ # @param options [Hash{String=>String}] specifying any request options like :body.
122
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
123
+ #
124
+ def make_request_async(method, path, options = {})
125
+ fail ArgumentError, 'method is nil' if method.nil?
126
+ fail ArgumentError, 'path is nil' if path.nil?
127
+
128
+ request_url = options[:base_url] || @base_url
129
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
130
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
131
+ end
132
+
133
+ request_headers = @request_headers
134
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
135
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
136
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
137
+
138
+ super(request_url, method, path, options)
139
+ end
140
+
141
+
142
+ private
143
+ #
144
+ # Adds telemetry information.
145
+ #
146
+ def add_telemetry
147
+ sdk_information = 'azure_mgmt_cdn'
148
+ sdk_information = "#{sdk_information}/0.17.5"
149
+ add_user_agent_information(sdk_information)
150
+ end
151
+ end
152
+ end
@@ -0,0 +1,729 @@
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::V2015_06_01
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 CustomDomains
14
+ include MsRestAzure
15
+
16
+ #
17
+ # Creates and initializes a new instance of the CustomDomains 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 the existing CDN custom domains within an endpoint.
29
+ #
30
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
31
+ # @param profile_name [String] Name of the CDN profile within the resource
32
+ # group.
33
+ # @param resource_group_name [String] Name of the resource group within the
34
+ # Azure subscription.
35
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
36
+ # will be added to the HTTP request.
37
+ #
38
+ # @return [CustomDomainListResult] operation results.
39
+ #
40
+ def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
41
+ response = list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
42
+ response.body unless response.nil?
43
+ end
44
+
45
+ #
46
+ # Lists the existing CDN custom domains within an endpoint.
47
+ #
48
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
49
+ # @param profile_name [String] Name of the CDN profile within the resource
50
+ # group.
51
+ # @param resource_group_name [String] Name of the resource group within the
52
+ # Azure subscription.
53
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
54
+ # will be added to the HTTP request.
55
+ #
56
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
57
+ #
58
+ def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
59
+ list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
60
+ end
61
+
62
+ #
63
+ # Lists the existing CDN custom domains within an endpoint.
64
+ #
65
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
66
+ # @param profile_name [String] Name of the CDN profile within the resource
67
+ # group.
68
+ # @param resource_group_name [String] Name of the resource group within the
69
+ # Azure subscription.
70
+ # @param [Hash{String => String}] A hash of custom headers that will be added
71
+ # to the HTTP request.
72
+ #
73
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
74
+ #
75
+ def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil)
76
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
77
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
78
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
79
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
80
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
81
+
82
+
83
+ request_headers = {}
84
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
85
+
86
+ # Set Headers
87
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
88
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
89
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains'
90
+
91
+ request_url = @base_url || @client.base_url
92
+
93
+ options = {
94
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
95
+ path_params: {'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
96
+ query_params: {'api-version' => @client.api_version},
97
+ headers: request_headers.merge(custom_headers || {}),
98
+ base_url: request_url
99
+ }
100
+ promise = @client.make_request_async(:get, path_template, options)
101
+
102
+ promise = promise.then do |result|
103
+ http_response = result.response
104
+ status_code = http_response.status
105
+ response_content = http_response.body
106
+ unless status_code == 200
107
+ error_model = JSON.load(response_content)
108
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
109
+ end
110
+
111
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
112
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
113
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
114
+ # Deserialize Response
115
+ if status_code == 200
116
+ begin
117
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
118
+ result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::CustomDomainListResult.mapper()
119
+ result.body = @client.deserialize(result_mapper, parsed_response)
120
+ rescue Exception => e
121
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
122
+ end
123
+ end
124
+
125
+ result
126
+ end
127
+
128
+ promise.execute
129
+ end
130
+
131
+ #
132
+ # Gets an existing CDN custom domain within an endpoint.
133
+ #
134
+ # @param custom_domain_name [String] Name of the custom domain within an
135
+ # endpoint.
136
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
137
+ # @param profile_name [String] Name of the CDN profile within the resource
138
+ # group.
139
+ # @param resource_group_name [String] Name of the resource group within the
140
+ # Azure subscription.
141
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
142
+ # will be added to the HTTP request.
143
+ #
144
+ # @return [CustomDomain] operation results.
145
+ #
146
+ def get(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
147
+ response = get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
148
+ response.body unless response.nil?
149
+ end
150
+
151
+ #
152
+ # Gets an existing CDN custom domain within an endpoint.
153
+ #
154
+ # @param custom_domain_name [String] Name of the custom domain within an
155
+ # endpoint.
156
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
157
+ # @param profile_name [String] Name of the CDN profile within the resource
158
+ # group.
159
+ # @param resource_group_name [String] Name of the resource group within the
160
+ # Azure subscription.
161
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
162
+ # will be added to the HTTP request.
163
+ #
164
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
165
+ #
166
+ def get_with_http_info(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
167
+ get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
168
+ end
169
+
170
+ #
171
+ # Gets an existing CDN custom domain within an endpoint.
172
+ #
173
+ # @param custom_domain_name [String] Name of the custom domain within an
174
+ # endpoint.
175
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
176
+ # @param profile_name [String] Name of the CDN profile within the resource
177
+ # group.
178
+ # @param resource_group_name [String] Name of the resource group within the
179
+ # Azure subscription.
180
+ # @param [Hash{String => String}] A hash of custom headers that will be added
181
+ # to the HTTP request.
182
+ #
183
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
184
+ #
185
+ def get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
186
+ fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
187
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
188
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
189
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
190
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
191
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
192
+
193
+
194
+ request_headers = {}
195
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
196
+
197
+ # Set Headers
198
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
199
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
200
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}'
201
+
202
+ request_url = @base_url || @client.base_url
203
+
204
+ options = {
205
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
206
+ path_params: {'customDomainName' => custom_domain_name,'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
207
+ query_params: {'api-version' => @client.api_version},
208
+ headers: request_headers.merge(custom_headers || {}),
209
+ base_url: request_url
210
+ }
211
+ promise = @client.make_request_async(:get, path_template, options)
212
+
213
+ promise = promise.then do |result|
214
+ http_response = result.response
215
+ status_code = http_response.status
216
+ response_content = http_response.body
217
+ unless status_code == 200
218
+ error_model = JSON.load(response_content)
219
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
220
+ end
221
+
222
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
223
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
224
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
225
+ # Deserialize Response
226
+ if status_code == 200
227
+ begin
228
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
229
+ result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::CustomDomain.mapper()
230
+ result.body = @client.deserialize(result_mapper, parsed_response)
231
+ rescue Exception => e
232
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
233
+ end
234
+ end
235
+
236
+ result
237
+ end
238
+
239
+ promise.execute
240
+ end
241
+
242
+ #
243
+ # Creates a new CDN custom domain within an endpoint.
244
+ #
245
+ # @param custom_domain_name [String] Name of the custom domain within an
246
+ # endpoint.
247
+ # @param custom_domain_properties [CustomDomainParameters] Custom domain
248
+ # properties required for creation.
249
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
250
+ # @param profile_name [String] Name of the CDN profile within the resource
251
+ # group.
252
+ # @param resource_group_name [String] Name of the resource group within the
253
+ # Azure subscription.
254
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
255
+ # will be added to the HTTP request.
256
+ #
257
+ # @return [CustomDomain] operation results.
258
+ #
259
+ def create(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
260
+ response = create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
261
+ response.body unless response.nil?
262
+ end
263
+
264
+ #
265
+ # @param custom_domain_name [String] Name of the custom domain within an
266
+ # endpoint.
267
+ # @param custom_domain_properties [CustomDomainParameters] Custom domain
268
+ # properties required for creation.
269
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
270
+ # @param profile_name [String] Name of the CDN profile within the resource
271
+ # group.
272
+ # @param resource_group_name [String] Name of the resource group within the
273
+ # Azure subscription.
274
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
275
+ # will be added to the HTTP request.
276
+ #
277
+ # @return [Concurrent::Promise] promise which provides async access to http
278
+ # response.
279
+ #
280
+ def create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
281
+ # Send request
282
+ promise = begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers)
283
+
284
+ promise = promise.then do |response|
285
+ # Defining deserialization method.
286
+ deserialize_method = lambda do |parsed_response|
287
+ result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::CustomDomain.mapper()
288
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
289
+ end
290
+
291
+ # Waiting for response.
292
+ @client.get_long_running_operation_result(response, deserialize_method)
293
+ end
294
+
295
+ promise
296
+ end
297
+
298
+ #
299
+ # Updates an existing CDN custom domain within an endpoint.
300
+ #
301
+ # @param custom_domain_name [String] Name of the custom domain within an
302
+ # endpoint.
303
+ # @param custom_domain_properties [CustomDomainParameters] Custom domain
304
+ # properties to update.
305
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
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 [ErrorResponse] operation results.
314
+ #
315
+ def update(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
316
+ response = update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
317
+ response.body unless response.nil?
318
+ end
319
+
320
+ #
321
+ # Updates an existing CDN custom domain within an endpoint.
322
+ #
323
+ # @param custom_domain_name [String] Name of the custom domain within an
324
+ # endpoint.
325
+ # @param custom_domain_properties [CustomDomainParameters] Custom domain
326
+ # properties to update.
327
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
328
+ # @param profile_name [String] Name of the CDN profile within the resource
329
+ # group.
330
+ # @param resource_group_name [String] Name of the resource group within the
331
+ # Azure subscription.
332
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
333
+ # will be added to the HTTP request.
334
+ #
335
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
336
+ #
337
+ def update_with_http_info(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
338
+ update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
339
+ end
340
+
341
+ #
342
+ # Updates an existing CDN custom domain within an endpoint.
343
+ #
344
+ # @param custom_domain_name [String] Name of the custom domain within an
345
+ # endpoint.
346
+ # @param custom_domain_properties [CustomDomainParameters] Custom domain
347
+ # properties to update.
348
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
349
+ # @param profile_name [String] Name of the CDN profile within the resource
350
+ # group.
351
+ # @param resource_group_name [String] Name of the resource group within the
352
+ # Azure subscription.
353
+ # @param [Hash{String => String}] A hash of custom headers that will be added
354
+ # to the HTTP request.
355
+ #
356
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
357
+ #
358
+ def update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
359
+ fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
360
+ fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil?
361
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
362
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
363
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
364
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
365
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
366
+
367
+
368
+ request_headers = {}
369
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
370
+
371
+ # Set Headers
372
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
373
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
374
+
375
+ # Serialize Request
376
+ request_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::CustomDomainParameters.mapper()
377
+ request_content = @client.serialize(request_mapper, custom_domain_properties)
378
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
379
+
380
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}'
381
+
382
+ request_url = @base_url || @client.base_url
383
+
384
+ options = {
385
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
386
+ path_params: {'customDomainName' => custom_domain_name,'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
387
+ query_params: {'api-version' => @client.api_version},
388
+ body: request_content,
389
+ headers: request_headers.merge(custom_headers || {}),
390
+ base_url: request_url
391
+ }
392
+ promise = @client.make_request_async(:patch, path_template, options)
393
+
394
+ promise = promise.then do |result|
395
+ http_response = result.response
396
+ status_code = http_response.status
397
+ response_content = http_response.body
398
+ unless status_code >= 200 && status_code < 300
399
+ error_model = JSON.load(response_content)
400
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
401
+ end
402
+
403
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
404
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
405
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
406
+ begin
407
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
408
+ result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::ErrorResponse.mapper()
409
+ result.body = @client.deserialize(result_mapper, parsed_response)
410
+ rescue Exception => e
411
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
412
+ end
413
+
414
+ result
415
+ end
416
+
417
+ promise.execute
418
+ end
419
+
420
+ #
421
+ # Deletes an existing CDN custom domain within an endpoint.
422
+ #
423
+ # @param custom_domain_name [String] Name of the custom domain within an
424
+ # endpoint.
425
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
426
+ # @param profile_name [String] Name of the CDN profile within the resource
427
+ # group.
428
+ # @param resource_group_name [String] Name of the resource group within the
429
+ # Azure subscription.
430
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
431
+ # will be added to the HTTP request.
432
+ #
433
+ # @return [CustomDomain] operation results.
434
+ #
435
+ def delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
436
+ response = delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
437
+ response.body unless response.nil?
438
+ end
439
+
440
+ #
441
+ # @param custom_domain_name [String] Name of the custom domain within an
442
+ # endpoint.
443
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
444
+ # @param profile_name [String] Name of the CDN profile within the resource
445
+ # group.
446
+ # @param resource_group_name [String] Name of the resource group within the
447
+ # Azure subscription.
448
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
449
+ # will be added to the HTTP request.
450
+ #
451
+ # @return [Concurrent::Promise] promise which provides async access to http
452
+ # response.
453
+ #
454
+ def delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
455
+ # Send request
456
+ promise = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers)
457
+
458
+ promise = promise.then do |response|
459
+ # Defining deserialization method.
460
+ deserialize_method = lambda do |parsed_response|
461
+ result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::CustomDomain.mapper()
462
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
463
+ end
464
+
465
+ # Waiting for response.
466
+ @client.get_long_running_operation_result(response, deserialize_method)
467
+ end
468
+
469
+ promise
470
+ end
471
+
472
+ #
473
+ # Creates a new CDN custom domain within an endpoint.
474
+ #
475
+ # @param custom_domain_name [String] Name of the custom domain within an
476
+ # endpoint.
477
+ # @param custom_domain_properties [CustomDomainParameters] Custom domain
478
+ # properties required for creation.
479
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
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
+ # @return [CustomDomain] operation results.
488
+ #
489
+ def begin_create(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
490
+ response = begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
491
+ response.body unless response.nil?
492
+ end
493
+
494
+ #
495
+ # Creates a new CDN custom domain within an endpoint.
496
+ #
497
+ # @param custom_domain_name [String] Name of the custom domain within an
498
+ # endpoint.
499
+ # @param custom_domain_properties [CustomDomainParameters] Custom domain
500
+ # properties required for creation.
501
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
502
+ # @param profile_name [String] Name of the CDN profile within the resource
503
+ # group.
504
+ # @param resource_group_name [String] Name of the resource group within the
505
+ # Azure subscription.
506
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
507
+ # will be added to the HTTP request.
508
+ #
509
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
510
+ #
511
+ def begin_create_with_http_info(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
512
+ begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
513
+ end
514
+
515
+ #
516
+ # Creates a new CDN custom domain within an endpoint.
517
+ #
518
+ # @param custom_domain_name [String] Name of the custom domain within an
519
+ # endpoint.
520
+ # @param custom_domain_properties [CustomDomainParameters] Custom domain
521
+ # properties required for creation.
522
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
523
+ # @param profile_name [String] Name of the CDN profile within the resource
524
+ # group.
525
+ # @param resource_group_name [String] Name of the resource group within the
526
+ # Azure subscription.
527
+ # @param [Hash{String => String}] A hash of custom headers that will be added
528
+ # to the HTTP request.
529
+ #
530
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
531
+ #
532
+ def begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
533
+ fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
534
+ fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil?
535
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
536
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
537
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
538
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
539
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
540
+
541
+
542
+ request_headers = {}
543
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
544
+
545
+ # Set Headers
546
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
547
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
548
+
549
+ # Serialize Request
550
+ request_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::CustomDomainParameters.mapper()
551
+ request_content = @client.serialize(request_mapper, custom_domain_properties)
552
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
553
+
554
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}'
555
+
556
+ request_url = @base_url || @client.base_url
557
+
558
+ options = {
559
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
560
+ path_params: {'customDomainName' => custom_domain_name,'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
561
+ query_params: {'api-version' => @client.api_version},
562
+ body: request_content,
563
+ headers: request_headers.merge(custom_headers || {}),
564
+ base_url: request_url
565
+ }
566
+ promise = @client.make_request_async(:put, path_template, options)
567
+
568
+ promise = promise.then do |result|
569
+ http_response = result.response
570
+ status_code = http_response.status
571
+ response_content = http_response.body
572
+ unless status_code == 200 || status_code == 201 || status_code == 202
573
+ error_model = JSON.load(response_content)
574
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
575
+ end
576
+
577
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
578
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
579
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
580
+ # Deserialize Response
581
+ if status_code == 200
582
+ begin
583
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
584
+ result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::CustomDomain.mapper()
585
+ result.body = @client.deserialize(result_mapper, parsed_response)
586
+ rescue Exception => e
587
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
588
+ end
589
+ end
590
+ # Deserialize Response
591
+ if status_code == 201
592
+ begin
593
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
594
+ result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::CustomDomain.mapper()
595
+ result.body = @client.deserialize(result_mapper, parsed_response)
596
+ rescue Exception => e
597
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
598
+ end
599
+ end
600
+ # Deserialize Response
601
+ if status_code == 202
602
+ begin
603
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
604
+ result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::CustomDomain.mapper()
605
+ result.body = @client.deserialize(result_mapper, parsed_response)
606
+ rescue Exception => e
607
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
608
+ end
609
+ end
610
+
611
+ result
612
+ end
613
+
614
+ promise.execute
615
+ end
616
+
617
+ #
618
+ # Deletes an existing CDN custom domain within an endpoint.
619
+ #
620
+ # @param custom_domain_name [String] Name of the custom domain within an
621
+ # endpoint.
622
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
623
+ # @param profile_name [String] Name of the CDN profile within the resource
624
+ # group.
625
+ # @param resource_group_name [String] Name of the resource group within the
626
+ # Azure subscription.
627
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
628
+ # will be added to the HTTP request.
629
+ #
630
+ # @return [CustomDomain] operation results.
631
+ #
632
+ def begin_delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
633
+ response = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
634
+ response.body unless response.nil?
635
+ end
636
+
637
+ #
638
+ # Deletes an existing CDN custom domain within an endpoint.
639
+ #
640
+ # @param custom_domain_name [String] Name of the custom domain within an
641
+ # endpoint.
642
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
643
+ # @param profile_name [String] Name of the CDN profile within the resource
644
+ # group.
645
+ # @param resource_group_name [String] Name of the resource group within the
646
+ # Azure subscription.
647
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
648
+ # will be added to the HTTP request.
649
+ #
650
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
651
+ #
652
+ def begin_delete_if_exists_with_http_info(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
653
+ begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
654
+ end
655
+
656
+ #
657
+ # Deletes an existing CDN custom domain within an endpoint.
658
+ #
659
+ # @param custom_domain_name [String] Name of the custom domain within an
660
+ # endpoint.
661
+ # @param endpoint_name [String] Name of the endpoint within the CDN profile.
662
+ # @param profile_name [String] Name of the CDN profile within the resource
663
+ # group.
664
+ # @param resource_group_name [String] Name of the resource group within the
665
+ # Azure subscription.
666
+ # @param [Hash{String => String}] A hash of custom headers that will be added
667
+ # to the HTTP request.
668
+ #
669
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
670
+ #
671
+ def begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
672
+ fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
673
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
674
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
675
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
676
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
677
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
678
+
679
+
680
+ request_headers = {}
681
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
682
+
683
+ # Set Headers
684
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
685
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
686
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}'
687
+
688
+ request_url = @base_url || @client.base_url
689
+
690
+ options = {
691
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
692
+ path_params: {'customDomainName' => custom_domain_name,'endpointName' => endpoint_name,'profileName' => profile_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
693
+ query_params: {'api-version' => @client.api_version},
694
+ headers: request_headers.merge(custom_headers || {}),
695
+ base_url: request_url
696
+ }
697
+ promise = @client.make_request_async(:delete, path_template, options)
698
+
699
+ promise = promise.then do |result|
700
+ http_response = result.response
701
+ status_code = http_response.status
702
+ response_content = http_response.body
703
+ unless status_code == 200 || status_code == 202 || status_code == 204
704
+ error_model = JSON.load(response_content)
705
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
706
+ end
707
+
708
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
709
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
710
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
711
+ # Deserialize Response
712
+ if status_code == 202
713
+ begin
714
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
715
+ result_mapper = Azure::CDN::Mgmt::V2015_06_01::Models::CustomDomain.mapper()
716
+ result.body = @client.deserialize(result_mapper, parsed_response)
717
+ rescue Exception => e
718
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
719
+ end
720
+ end
721
+
722
+ result
723
+ end
724
+
725
+ promise.execute
726
+ end
727
+
728
+ end
729
+ end