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,83 @@
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 '2017-04-02/generated/azure_mgmt_cdn/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::CDN::Mgmt::V2017_04_02
23
+ autoload :Profiles, '2017-04-02/generated/azure_mgmt_cdn/profiles.rb'
24
+ autoload :Endpoints, '2017-04-02/generated/azure_mgmt_cdn/endpoints.rb'
25
+ autoload :Origins, '2017-04-02/generated/azure_mgmt_cdn/origins.rb'
26
+ autoload :CustomDomains, '2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb'
27
+ autoload :ResourceUsageOperations, '2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb'
28
+ autoload :Operations, '2017-04-02/generated/azure_mgmt_cdn/operations.rb'
29
+ autoload :EdgeNodes, '2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb'
30
+ autoload :CdnManagementClient, '2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb'
31
+
32
+ module Models
33
+ autoload :ValidateCustomDomainInput, '2017-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb'
34
+ autoload :Sku, '2017-04-02/generated/azure_mgmt_cdn/models/sku.rb'
35
+ autoload :ValidateCustomDomainOutput, '2017-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb'
36
+ autoload :ProfileListResult, '2017-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb'
37
+ autoload :CheckNameAvailabilityInput, '2017-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb'
38
+ autoload :SsoUri, '2017-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb'
39
+ autoload :CheckNameAvailabilityOutput, '2017-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb'
40
+ autoload :DeepCreatedOrigin, '2017-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb'
41
+ autoload :ValidateProbeInput, '2017-04-02/generated/azure_mgmt_cdn/models/validate_probe_input.rb'
42
+ autoload :EndpointListResult, '2017-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb'
43
+ autoload :ValidateProbeOutput, '2017-04-02/generated/azure_mgmt_cdn/models/validate_probe_output.rb'
44
+ autoload :EndpointUpdateParameters, '2017-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb'
45
+ autoload :ResourceUsage, '2017-04-02/generated/azure_mgmt_cdn/models/resource_usage.rb'
46
+ autoload :LoadParameters, '2017-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb'
47
+ autoload :ResourceUsageListResult, '2017-04-02/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb'
48
+ autoload :OriginUpdateParameters, '2017-04-02/generated/azure_mgmt_cdn/models/origin_update_parameters.rb'
49
+ autoload :OperationDisplay, '2017-04-02/generated/azure_mgmt_cdn/models/operation_display.rb'
50
+ autoload :OriginListResult, '2017-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb'
51
+ autoload :CustomDomainParameters, '2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb'
52
+ autoload :EdgenodeResult, '2017-04-02/generated/azure_mgmt_cdn/models/edgenode_result.rb'
53
+ autoload :CustomDomainListResult, '2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb'
54
+ autoload :SupportedOptimizationTypesListResult, '2017-04-02/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb'
55
+ autoload :ErrorResponse, '2017-04-02/generated/azure_mgmt_cdn/models/error_response.rb'
56
+ autoload :GeoFilter, '2017-04-02/generated/azure_mgmt_cdn/models/geo_filter.rb'
57
+ autoload :Operation, '2017-04-02/generated/azure_mgmt_cdn/models/operation.rb'
58
+ autoload :ProfileUpdateParameters, '2017-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb'
59
+ autoload :OperationsListResult, '2017-04-02/generated/azure_mgmt_cdn/models/operations_list_result.rb'
60
+ autoload :PurgeParameters, '2017-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb'
61
+ autoload :CidrIpAddress, '2017-04-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb'
62
+ autoload :Resource, '2017-04-02/generated/azure_mgmt_cdn/models/resource.rb'
63
+ autoload :IpAddressGroup, '2017-04-02/generated/azure_mgmt_cdn/models/ip_address_group.rb'
64
+ autoload :Profile, '2017-04-02/generated/azure_mgmt_cdn/models/profile.rb'
65
+ autoload :Endpoint, '2017-04-02/generated/azure_mgmt_cdn/models/endpoint.rb'
66
+ autoload :Origin, '2017-04-02/generated/azure_mgmt_cdn/models/origin.rb'
67
+ autoload :ProxyResource, '2017-04-02/generated/azure_mgmt_cdn/models/proxy_resource.rb'
68
+ autoload :CustomDomain, '2017-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb'
69
+ autoload :EdgeNode, '2017-04-02/generated/azure_mgmt_cdn/models/edge_node.rb'
70
+ autoload :TrackedResource, '2017-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb'
71
+ autoload :SkuName, '2017-04-02/generated/azure_mgmt_cdn/models/sku_name.rb'
72
+ autoload :ProfileResourceState, '2017-04-02/generated/azure_mgmt_cdn/models/profile_resource_state.rb'
73
+ autoload :OptimizationType, '2017-04-02/generated/azure_mgmt_cdn/models/optimization_type.rb'
74
+ autoload :EndpointResourceState, '2017-04-02/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb'
75
+ autoload :QueryStringCachingBehavior, '2017-04-02/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb'
76
+ autoload :GeoFilterActions, '2017-04-02/generated/azure_mgmt_cdn/models/geo_filter_actions.rb'
77
+ autoload :OriginResourceState, '2017-04-02/generated/azure_mgmt_cdn/models/origin_resource_state.rb'
78
+ autoload :CustomDomainResourceState, '2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb'
79
+ autoload :CustomHttpsProvisioningState, '2017-04-02/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb'
80
+ autoload :CustomHttpsProvisioningSubstate, '2017-04-02/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb'
81
+ autoload :ResourceType, '2017-04-02/generated/azure_mgmt_cdn/models/resource_type.rb'
82
+ end
83
+ end
@@ -0,0 +1,363 @@
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::V2017_04_02
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class CdnManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] Azure Subscription ID.
21
+ attr_accessor :subscription_id
22
+
23
+ # @return [String] Version of the API to be used with the client request.
24
+ # Current version is 2017-04-02.
25
+ attr_reader :api_version
26
+
27
+ # @return [String] The preferred language for the response.
28
+ attr_accessor :accept_language
29
+
30
+ # @return [Integer] The retry timeout in seconds for Long Running
31
+ # Operations. Default value is 30.
32
+ attr_accessor :long_running_operation_retry_timeout
33
+
34
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
35
+ # generated. When set to true a unique x-ms-client-request-id value is
36
+ # generated and included in each request. Default is true.
37
+ attr_accessor :generate_client_request_id
38
+
39
+ # @return [Profiles] profiles
40
+ attr_reader :profiles
41
+
42
+ # @return [Endpoints] endpoints
43
+ attr_reader :endpoints
44
+
45
+ # @return [Origins] origins
46
+ attr_reader :origins
47
+
48
+ # @return [CustomDomains] custom_domains
49
+ attr_reader :custom_domains
50
+
51
+ # @return [ResourceUsageOperations] resource_usage_operations
52
+ attr_reader :resource_usage_operations
53
+
54
+ # @return [Operations] operations
55
+ attr_reader :operations
56
+
57
+ # @return [EdgeNodes] edge_nodes
58
+ attr_reader :edge_nodes
59
+
60
+ #
61
+ # Creates initializes a new instance of the CdnManagementClient class.
62
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
63
+ # @param base_url [String] the base URI of the service.
64
+ # @param options [Array] filters to be applied to the HTTP requests.
65
+ #
66
+ def initialize(credentials = nil, base_url = nil, options = nil)
67
+ super(credentials, options)
68
+ @base_url = base_url || 'https://management.azure.com'
69
+
70
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
71
+ @credentials = credentials
72
+
73
+ @profiles = Profiles.new(self)
74
+ @endpoints = Endpoints.new(self)
75
+ @origins = Origins.new(self)
76
+ @custom_domains = CustomDomains.new(self)
77
+ @resource_usage_operations = ResourceUsageOperations.new(self)
78
+ @operations = Operations.new(self)
79
+ @edge_nodes = EdgeNodes.new(self)
80
+ @api_version = '2017-04-02'
81
+ @accept_language = 'en-US'
82
+ @long_running_operation_retry_timeout = 30
83
+ @generate_client_request_id = true
84
+ add_telemetry
85
+ end
86
+
87
+ #
88
+ # Makes a request and returns the body of the response.
89
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
90
+ # @param path [String] the path, relative to {base_url}.
91
+ # @param options [Hash{String=>String}] specifying any request options like :body.
92
+ # @return [Hash{String=>String}] containing the body of the response.
93
+ # Example:
94
+ #
95
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
96
+ # path = "/path"
97
+ # options = {
98
+ # body: request_content,
99
+ # query_params: {'api-version' => '2016-02-01'}
100
+ # }
101
+ # result = @client.make_request(:put, path, options)
102
+ #
103
+ def make_request(method, path, options = {})
104
+ result = make_request_with_http_info(method, path, options)
105
+ result.body unless result.nil?
106
+ end
107
+
108
+ #
109
+ # Makes a request and returns the operation response.
110
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
111
+ # @param path [String] the path, relative to {base_url}.
112
+ # @param options [Hash{String=>String}] specifying any request options like :body.
113
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
114
+ #
115
+ def make_request_with_http_info(method, path, options = {})
116
+ result = make_request_async(method, path, options).value!
117
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
118
+ result
119
+ end
120
+
121
+ #
122
+ # Makes a request asynchronously.
123
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
124
+ # @param path [String] the path, relative to {base_url}.
125
+ # @param options [Hash{String=>String}] specifying any request options like :body.
126
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
127
+ #
128
+ def make_request_async(method, path, options = {})
129
+ fail ArgumentError, 'method is nil' if method.nil?
130
+ fail ArgumentError, 'path is nil' if path.nil?
131
+
132
+ request_url = options[:base_url] || @base_url
133
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
134
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
135
+ end
136
+
137
+ request_headers = @request_headers
138
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
139
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
140
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
141
+
142
+ super(request_url, method, path, options)
143
+ end
144
+
145
+ #
146
+ # Check the availability of a resource name. This is needed for resources where
147
+ # name is globally unique, such as a CDN endpoint.
148
+ #
149
+ # @param check_name_availability_input [CheckNameAvailabilityInput] Input to
150
+ # check.
151
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
152
+ # will be added to the HTTP request.
153
+ #
154
+ # @return [CheckNameAvailabilityOutput] operation results.
155
+ #
156
+ def check_name_availability(check_name_availability_input, custom_headers:nil)
157
+ response = check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value!
158
+ response.body unless response.nil?
159
+ end
160
+
161
+ #
162
+ # Check the availability of a resource name. This is needed for resources where
163
+ # name is globally unique, such as a CDN endpoint.
164
+ #
165
+ # @param check_name_availability_input [CheckNameAvailabilityInput] Input to
166
+ # check.
167
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
168
+ # will be added to the HTTP request.
169
+ #
170
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
171
+ #
172
+ def check_name_availability_with_http_info(check_name_availability_input, custom_headers:nil)
173
+ check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value!
174
+ end
175
+
176
+ #
177
+ # Check the availability of a resource name. This is needed for resources where
178
+ # name is globally unique, such as a CDN endpoint.
179
+ #
180
+ # @param check_name_availability_input [CheckNameAvailabilityInput] Input to
181
+ # check.
182
+ # @param [Hash{String => String}] A hash of custom headers that will be added
183
+ # to the HTTP request.
184
+ #
185
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
186
+ #
187
+ def check_name_availability_async(check_name_availability_input, custom_headers:nil)
188
+ fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.nil?
189
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
190
+
191
+
192
+ request_headers = {}
193
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
194
+
195
+ # Set Headers
196
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
197
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
198
+
199
+ # Serialize Request
200
+ request_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::CheckNameAvailabilityInput.mapper()
201
+ request_content = self.serialize(request_mapper, check_name_availability_input)
202
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
203
+
204
+ path_template = 'providers/Microsoft.Cdn/checkNameAvailability'
205
+
206
+ request_url = @base_url || self.base_url
207
+
208
+ options = {
209
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
210
+ query_params: {'api-version' => api_version},
211
+ body: request_content,
212
+ headers: request_headers.merge(custom_headers || {}),
213
+ base_url: request_url
214
+ }
215
+ promise = self.make_request_async(:post, path_template, options)
216
+
217
+ promise = promise.then do |result|
218
+ http_response = result.response
219
+ status_code = http_response.status
220
+ response_content = http_response.body
221
+ unless status_code == 200
222
+ error_model = JSON.load(response_content)
223
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
224
+ end
225
+
226
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
227
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
228
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
229
+ # Deserialize Response
230
+ if status_code == 200
231
+ begin
232
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
233
+ result_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::CheckNameAvailabilityOutput.mapper()
234
+ result.body = self.deserialize(result_mapper, parsed_response)
235
+ rescue Exception => e
236
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
237
+ end
238
+ end
239
+
240
+ result
241
+ end
242
+
243
+ promise.execute
244
+ end
245
+
246
+ #
247
+ # Check if the probe path is a valid path and the file can be accessed. Probe
248
+ # path is the path to a file hosted on the origin server to help accelerate the
249
+ # delivery of dynamic content via the CDN endpoint. This path is relative to
250
+ # the origin path specified in the endpoint configuration.
251
+ #
252
+ # @param validate_probe_input [ValidateProbeInput] Input to check.
253
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
254
+ # will be added to the HTTP request.
255
+ #
256
+ # @return [ValidateProbeOutput] operation results.
257
+ #
258
+ def validate_probe(validate_probe_input, custom_headers:nil)
259
+ response = validate_probe_async(validate_probe_input, custom_headers:custom_headers).value!
260
+ response.body unless response.nil?
261
+ end
262
+
263
+ #
264
+ # Check if the probe path is a valid path and the file can be accessed. Probe
265
+ # path is the path to a file hosted on the origin server to help accelerate the
266
+ # delivery of dynamic content via the CDN endpoint. This path is relative to
267
+ # the origin path specified in the endpoint configuration.
268
+ #
269
+ # @param validate_probe_input [ValidateProbeInput] Input to check.
270
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
271
+ # will be added to the HTTP request.
272
+ #
273
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
274
+ #
275
+ def validate_probe_with_http_info(validate_probe_input, custom_headers:nil)
276
+ validate_probe_async(validate_probe_input, custom_headers:custom_headers).value!
277
+ end
278
+
279
+ #
280
+ # Check if the probe path is a valid path and the file can be accessed. Probe
281
+ # path is the path to a file hosted on the origin server to help accelerate the
282
+ # delivery of dynamic content via the CDN endpoint. This path is relative to
283
+ # the origin path specified in the endpoint configuration.
284
+ #
285
+ # @param validate_probe_input [ValidateProbeInput] Input to check.
286
+ # @param [Hash{String => String}] A hash of custom headers that will be added
287
+ # to the HTTP request.
288
+ #
289
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
290
+ #
291
+ def validate_probe_async(validate_probe_input, custom_headers:nil)
292
+ fail ArgumentError, 'validate_probe_input is nil' if validate_probe_input.nil?
293
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
294
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
295
+
296
+
297
+ request_headers = {}
298
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
299
+
300
+ # Set Headers
301
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
302
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
303
+
304
+ # Serialize Request
305
+ request_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::ValidateProbeInput.mapper()
306
+ request_content = self.serialize(request_mapper, validate_probe_input)
307
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
308
+
309
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/validateProbe'
310
+
311
+ request_url = @base_url || self.base_url
312
+
313
+ options = {
314
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
315
+ path_params: {'subscriptionId' => subscription_id},
316
+ query_params: {'api-version' => api_version},
317
+ body: request_content,
318
+ headers: request_headers.merge(custom_headers || {}),
319
+ base_url: request_url
320
+ }
321
+ promise = self.make_request_async(:post, path_template, options)
322
+
323
+ promise = promise.then do |result|
324
+ http_response = result.response
325
+ status_code = http_response.status
326
+ response_content = http_response.body
327
+ unless status_code == 200
328
+ error_model = JSON.load(response_content)
329
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
330
+ end
331
+
332
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
333
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
334
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
335
+ # Deserialize Response
336
+ if status_code == 200
337
+ begin
338
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
339
+ result_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::ValidateProbeOutput.mapper()
340
+ result.body = self.deserialize(result_mapper, parsed_response)
341
+ rescue Exception => e
342
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
343
+ end
344
+ end
345
+
346
+ result
347
+ end
348
+
349
+ promise.execute
350
+ end
351
+
352
+
353
+ private
354
+ #
355
+ # Adds telemetry information.
356
+ #
357
+ def add_telemetry
358
+ sdk_information = 'azure_mgmt_cdn'
359
+ sdk_information = "#{sdk_information}/0.17.5"
360
+ add_user_agent_information(sdk_information)
361
+ end
362
+ end
363
+ end
@@ -0,0 +1,984 @@
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::V2017_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.
11
+ #
12
+ class CustomDomains
13
+ include MsRestAzure
14
+
15
+ #
16
+ # Creates and initializes a new instance of the CustomDomains class.
17
+ # @param client service class for accessing basic functionality.
18
+ #
19
+ def initialize(client)
20
+ @client = client
21
+ end
22
+
23
+ # @return [CdnManagementClient] reference to the CdnManagementClient
24
+ attr_reader :client
25
+
26
+ #
27
+ # Lists all of the existing custom domains within an endpoint.
28
+ #
29
+ # @param resource_group_name [String] Name of the Resource group within the
30
+ # Azure subscription.
31
+ # @param profile_name [String] Name of the CDN profile which is unique within
32
+ # the resource group.
33
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
34
+ # unique globally.
35
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
36
+ # will be added to the HTTP request.
37
+ #
38
+ # @return [Array<CustomDomain>] operation results.
39
+ #
40
+ def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
41
+ first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers)
42
+ first_page.get_all_items
43
+ end
44
+
45
+ #
46
+ # Lists all of the existing custom domains within an endpoint.
47
+ #
48
+ # @param resource_group_name [String] Name of the Resource group within the
49
+ # Azure subscription.
50
+ # @param profile_name [String] Name of the CDN profile which is unique within
51
+ # the resource group.
52
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
53
+ # unique globally.
54
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
55
+ # will be added to the HTTP request.
56
+ #
57
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
58
+ #
59
+ def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
60
+ list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
61
+ end
62
+
63
+ #
64
+ # Lists all of the existing custom domains within an endpoint.
65
+ #
66
+ # @param resource_group_name [String] Name of the Resource group within the
67
+ # Azure subscription.
68
+ # @param profile_name [String] Name of the CDN profile which is unique within
69
+ # the resource group.
70
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
71
+ # unique globally.
72
+ # @param [Hash{String => String}] A hash of custom headers that will be added
73
+ # to the HTTP request.
74
+ #
75
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
76
+ #
77
+ def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
78
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
79
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
80
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
81
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
82
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
83
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
84
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
85
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
86
+
87
+
88
+ request_headers = {}
89
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
90
+
91
+ # Set Headers
92
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
93
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
94
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains'
95
+
96
+ request_url = @base_url || @client.base_url
97
+
98
+ options = {
99
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
100
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'subscriptionId' => @client.subscription_id},
101
+ query_params: {'api-version' => @client.api_version},
102
+ headers: request_headers.merge(custom_headers || {}),
103
+ base_url: request_url
104
+ }
105
+ promise = @client.make_request_async(:get, path_template, options)
106
+
107
+ promise = promise.then do |result|
108
+ http_response = result.response
109
+ status_code = http_response.status
110
+ response_content = http_response.body
111
+ unless status_code == 200
112
+ error_model = JSON.load(response_content)
113
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
114
+ end
115
+
116
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
117
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
118
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
119
+ # Deserialize Response
120
+ if status_code == 200
121
+ begin
122
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
123
+ result_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::CustomDomainListResult.mapper()
124
+ result.body = @client.deserialize(result_mapper, parsed_response)
125
+ rescue Exception => e
126
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
127
+ end
128
+ end
129
+
130
+ result
131
+ end
132
+
133
+ promise.execute
134
+ end
135
+
136
+ #
137
+ # Gets an existing custom domain within an endpoint.
138
+ #
139
+ # @param resource_group_name [String] Name of the Resource group within the
140
+ # Azure subscription.
141
+ # @param profile_name [String] Name of the CDN profile which is unique within
142
+ # the resource group.
143
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
144
+ # unique globally.
145
+ # @param custom_domain_name [String] Name of the custom domain within an
146
+ # endpoint.
147
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
148
+ # will be added to the HTTP request.
149
+ #
150
+ # @return [CustomDomain] operation results.
151
+ #
152
+ def get(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
153
+ response = get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
154
+ response.body unless response.nil?
155
+ end
156
+
157
+ #
158
+ # Gets an existing custom domain within an endpoint.
159
+ #
160
+ # @param resource_group_name [String] Name of the Resource group within the
161
+ # Azure subscription.
162
+ # @param profile_name [String] Name of the CDN profile which is unique within
163
+ # the resource group.
164
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
165
+ # unique globally.
166
+ # @param custom_domain_name [String] Name of the custom domain within an
167
+ # endpoint.
168
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
169
+ # will be added to the HTTP request.
170
+ #
171
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
172
+ #
173
+ def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
174
+ get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
175
+ end
176
+
177
+ #
178
+ # Gets an existing custom domain within an endpoint.
179
+ #
180
+ # @param resource_group_name [String] Name of the Resource group within the
181
+ # Azure subscription.
182
+ # @param profile_name [String] Name of the CDN profile which is unique within
183
+ # the resource group.
184
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
185
+ # unique globally.
186
+ # @param custom_domain_name [String] Name of the custom domain within an
187
+ # endpoint.
188
+ # @param [Hash{String => String}] A hash of custom headers that will be added
189
+ # to the HTTP request.
190
+ #
191
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
192
+ #
193
+ def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
194
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
195
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
196
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
197
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
198
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
199
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
200
+ fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
201
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
202
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
203
+
204
+
205
+ request_headers = {}
206
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
207
+
208
+ # Set Headers
209
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
210
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
211
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}'
212
+
213
+ request_url = @base_url || @client.base_url
214
+
215
+ options = {
216
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
217
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'customDomainName' => custom_domain_name,'subscriptionId' => @client.subscription_id},
218
+ query_params: {'api-version' => @client.api_version},
219
+ headers: request_headers.merge(custom_headers || {}),
220
+ base_url: request_url
221
+ }
222
+ promise = @client.make_request_async(:get, path_template, options)
223
+
224
+ promise = promise.then do |result|
225
+ http_response = result.response
226
+ status_code = http_response.status
227
+ response_content = http_response.body
228
+ unless status_code == 200
229
+ error_model = JSON.load(response_content)
230
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
231
+ end
232
+
233
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
234
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
235
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
236
+ # Deserialize Response
237
+ if status_code == 200
238
+ begin
239
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
240
+ result_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::CustomDomain.mapper()
241
+ result.body = @client.deserialize(result_mapper, parsed_response)
242
+ rescue Exception => e
243
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
244
+ end
245
+ end
246
+
247
+ result
248
+ end
249
+
250
+ promise.execute
251
+ end
252
+
253
+ #
254
+ # Creates a new custom domain within an endpoint.
255
+ #
256
+ # @param resource_group_name [String] Name of the Resource group within the
257
+ # Azure subscription.
258
+ # @param profile_name [String] Name of the CDN profile which is unique within
259
+ # the resource group.
260
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
261
+ # unique globally.
262
+ # @param custom_domain_name [String] Name of the custom domain within an
263
+ # endpoint.
264
+ # @param custom_domain_properties [CustomDomainParameters] Properties required
265
+ # to create a new custom domain.
266
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
267
+ # will be added to the HTTP request.
268
+ #
269
+ # @return [CustomDomain] operation results.
270
+ #
271
+ def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil)
272
+ response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value!
273
+ response.body unless response.nil?
274
+ end
275
+
276
+ #
277
+ # @param resource_group_name [String] Name of the Resource group within the
278
+ # Azure subscription.
279
+ # @param profile_name [String] Name of the CDN profile which is unique within
280
+ # the resource group.
281
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
282
+ # unique globally.
283
+ # @param custom_domain_name [String] Name of the custom domain within an
284
+ # endpoint.
285
+ # @param custom_domain_properties [CustomDomainParameters] Properties required
286
+ # to create a new custom domain.
287
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
288
+ # will be added to the HTTP request.
289
+ #
290
+ # @return [Concurrent::Promise] promise which provides async access to http
291
+ # response.
292
+ #
293
+ def create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil)
294
+ # Send request
295
+ promise = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers)
296
+
297
+ promise = promise.then do |response|
298
+ # Defining deserialization method.
299
+ deserialize_method = lambda do |parsed_response|
300
+ result_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::CustomDomain.mapper()
301
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
302
+ end
303
+
304
+ # Waiting for response.
305
+ @client.get_long_running_operation_result(response, deserialize_method)
306
+ end
307
+
308
+ promise
309
+ end
310
+
311
+ #
312
+ # Deletes an existing custom domain within an endpoint.
313
+ #
314
+ # @param resource_group_name [String] Name of the Resource group within the
315
+ # Azure subscription.
316
+ # @param profile_name [String] Name of the CDN profile which is unique within
317
+ # the resource group.
318
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
319
+ # unique globally.
320
+ # @param custom_domain_name [String] Name of the custom domain within an
321
+ # endpoint.
322
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
323
+ # will be added to the HTTP request.
324
+ #
325
+ # @return [CustomDomain] operation results.
326
+ #
327
+ def delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
328
+ response = delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
329
+ response.body unless response.nil?
330
+ end
331
+
332
+ #
333
+ # @param resource_group_name [String] Name of the Resource group within the
334
+ # Azure subscription.
335
+ # @param profile_name [String] Name of the CDN profile which is unique within
336
+ # the resource group.
337
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
338
+ # unique globally.
339
+ # @param custom_domain_name [String] Name of the custom domain within an
340
+ # endpoint.
341
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
342
+ # will be added to the HTTP request.
343
+ #
344
+ # @return [Concurrent::Promise] promise which provides async access to http
345
+ # response.
346
+ #
347
+ def delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
348
+ # Send request
349
+ promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers)
350
+
351
+ promise = promise.then do |response|
352
+ # Defining deserialization method.
353
+ deserialize_method = lambda do |parsed_response|
354
+ result_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::CustomDomain.mapper()
355
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
356
+ end
357
+
358
+ # Waiting for response.
359
+ @client.get_long_running_operation_result(response, deserialize_method)
360
+ end
361
+
362
+ promise
363
+ end
364
+
365
+ #
366
+ # Disable https delivery of the custom domain.
367
+ #
368
+ # @param resource_group_name [String] Name of the Resource group within the
369
+ # Azure subscription.
370
+ # @param profile_name [String] Name of the CDN profile which is unique within
371
+ # the resource group.
372
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
373
+ # unique globally.
374
+ # @param custom_domain_name [String] Name of the custom domain within an
375
+ # endpoint.
376
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
377
+ # will be added to the HTTP request.
378
+ #
379
+ # @return [CustomDomain] operation results.
380
+ #
381
+ def disable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
382
+ response = disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
383
+ response.body unless response.nil?
384
+ end
385
+
386
+ #
387
+ # Disable https delivery of the custom domain.
388
+ #
389
+ # @param resource_group_name [String] Name of the Resource group within the
390
+ # Azure subscription.
391
+ # @param profile_name [String] Name of the CDN profile which is unique within
392
+ # the resource group.
393
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
394
+ # unique globally.
395
+ # @param custom_domain_name [String] Name of the custom domain within an
396
+ # endpoint.
397
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
398
+ # will be added to the HTTP request.
399
+ #
400
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
401
+ #
402
+ def disable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
403
+ disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
404
+ end
405
+
406
+ #
407
+ # Disable https delivery of the custom domain.
408
+ #
409
+ # @param resource_group_name [String] Name of the Resource group within the
410
+ # Azure subscription.
411
+ # @param profile_name [String] Name of the CDN profile which is unique within
412
+ # the resource group.
413
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
414
+ # unique globally.
415
+ # @param custom_domain_name [String] Name of the custom domain within an
416
+ # endpoint.
417
+ # @param [Hash{String => String}] A hash of custom headers that will be added
418
+ # to the HTTP request.
419
+ #
420
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
421
+ #
422
+ def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
423
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
424
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
425
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
426
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
427
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
428
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
429
+ fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
430
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
431
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
432
+
433
+
434
+ request_headers = {}
435
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
436
+
437
+ # Set Headers
438
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
439
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
440
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}/disableCustomHttps'
441
+
442
+ request_url = @base_url || @client.base_url
443
+
444
+ options = {
445
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
446
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'customDomainName' => custom_domain_name,'subscriptionId' => @client.subscription_id},
447
+ query_params: {'api-version' => @client.api_version},
448
+ headers: request_headers.merge(custom_headers || {}),
449
+ base_url: request_url
450
+ }
451
+ promise = @client.make_request_async(:post, path_template, options)
452
+
453
+ promise = promise.then do |result|
454
+ http_response = result.response
455
+ status_code = http_response.status
456
+ response_content = http_response.body
457
+ unless status_code == 200 || status_code == 202
458
+ error_model = JSON.load(response_content)
459
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
460
+ end
461
+
462
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
463
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
464
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
465
+ # Deserialize Response
466
+ if status_code == 202
467
+ begin
468
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
469
+ result_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::CustomDomain.mapper()
470
+ result.body = @client.deserialize(result_mapper, parsed_response)
471
+ rescue Exception => e
472
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
473
+ end
474
+ end
475
+
476
+ result
477
+ end
478
+
479
+ promise.execute
480
+ end
481
+
482
+ #
483
+ # Enable https delivery of the custom domain.
484
+ #
485
+ # @param resource_group_name [String] Name of the Resource group within the
486
+ # Azure subscription.
487
+ # @param profile_name [String] Name of the CDN profile which is unique within
488
+ # the resource group.
489
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
490
+ # unique globally.
491
+ # @param custom_domain_name [String] Name of the custom domain within an
492
+ # endpoint.
493
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
494
+ # will be added to the HTTP request.
495
+ #
496
+ # @return [CustomDomain] operation results.
497
+ #
498
+ def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
499
+ response = enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
500
+ response.body unless response.nil?
501
+ end
502
+
503
+ #
504
+ # Enable https delivery of the custom domain.
505
+ #
506
+ # @param resource_group_name [String] Name of the Resource group within the
507
+ # Azure subscription.
508
+ # @param profile_name [String] Name of the CDN profile which is unique within
509
+ # the resource group.
510
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
511
+ # unique globally.
512
+ # @param custom_domain_name [String] Name of the custom domain within an
513
+ # endpoint.
514
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
515
+ # will be added to the HTTP request.
516
+ #
517
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
518
+ #
519
+ def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
520
+ enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
521
+ end
522
+
523
+ #
524
+ # Enable https delivery of the custom domain.
525
+ #
526
+ # @param resource_group_name [String] Name of the Resource group within the
527
+ # Azure subscription.
528
+ # @param profile_name [String] Name of the CDN profile which is unique within
529
+ # the resource group.
530
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
531
+ # unique globally.
532
+ # @param custom_domain_name [String] Name of the custom domain within an
533
+ # endpoint.
534
+ # @param [Hash{String => String}] A hash of custom headers that will be added
535
+ # to the HTTP request.
536
+ #
537
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
538
+ #
539
+ def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
540
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
541
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
542
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
543
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
544
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
545
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
546
+ fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
547
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
548
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
549
+
550
+
551
+ request_headers = {}
552
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
553
+
554
+ # Set Headers
555
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
556
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
557
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}/enableCustomHttps'
558
+
559
+ request_url = @base_url || @client.base_url
560
+
561
+ options = {
562
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
563
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'customDomainName' => custom_domain_name,'subscriptionId' => @client.subscription_id},
564
+ query_params: {'api-version' => @client.api_version},
565
+ headers: request_headers.merge(custom_headers || {}),
566
+ base_url: request_url
567
+ }
568
+ promise = @client.make_request_async(:post, path_template, options)
569
+
570
+ promise = promise.then do |result|
571
+ http_response = result.response
572
+ status_code = http_response.status
573
+ response_content = http_response.body
574
+ unless status_code == 200 || status_code == 202
575
+ error_model = JSON.load(response_content)
576
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
577
+ end
578
+
579
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
580
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
581
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
582
+ # Deserialize Response
583
+ if status_code == 202
584
+ begin
585
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
586
+ result_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::CustomDomain.mapper()
587
+ result.body = @client.deserialize(result_mapper, parsed_response)
588
+ rescue Exception => e
589
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
590
+ end
591
+ end
592
+
593
+ result
594
+ end
595
+
596
+ promise.execute
597
+ end
598
+
599
+ #
600
+ # Creates a new custom domain within an endpoint.
601
+ #
602
+ # @param resource_group_name [String] Name of the Resource group within the
603
+ # Azure subscription.
604
+ # @param profile_name [String] Name of the CDN profile which is unique within
605
+ # the resource group.
606
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
607
+ # unique globally.
608
+ # @param custom_domain_name [String] Name of the custom domain within an
609
+ # endpoint.
610
+ # @param custom_domain_properties [CustomDomainParameters] Properties required
611
+ # to create a new custom domain.
612
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
613
+ # will be added to the HTTP request.
614
+ #
615
+ # @return [CustomDomain] operation results.
616
+ #
617
+ def begin_create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil)
618
+ response = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value!
619
+ response.body unless response.nil?
620
+ end
621
+
622
+ #
623
+ # Creates a new custom domain within an endpoint.
624
+ #
625
+ # @param resource_group_name [String] Name of the Resource group within the
626
+ # Azure subscription.
627
+ # @param profile_name [String] Name of the CDN profile which is unique within
628
+ # the resource group.
629
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
630
+ # unique globally.
631
+ # @param custom_domain_name [String] Name of the custom domain within an
632
+ # endpoint.
633
+ # @param custom_domain_properties [CustomDomainParameters] Properties required
634
+ # to create a new custom domain.
635
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
636
+ # will be added to the HTTP request.
637
+ #
638
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
639
+ #
640
+ def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil)
641
+ begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value!
642
+ end
643
+
644
+ #
645
+ # Creates a new custom domain within an endpoint.
646
+ #
647
+ # @param resource_group_name [String] Name of the Resource group within the
648
+ # Azure subscription.
649
+ # @param profile_name [String] Name of the CDN profile which is unique within
650
+ # the resource group.
651
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
652
+ # unique globally.
653
+ # @param custom_domain_name [String] Name of the custom domain within an
654
+ # endpoint.
655
+ # @param custom_domain_properties [CustomDomainParameters] Properties required
656
+ # to create a new custom domain.
657
+ # @param [Hash{String => String}] A hash of custom headers that will be added
658
+ # to the HTTP request.
659
+ #
660
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
661
+ #
662
+ def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil)
663
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
664
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
665
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
666
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
667
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
668
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
669
+ fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
670
+ fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil?
671
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
672
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
673
+
674
+
675
+ request_headers = {}
676
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
677
+
678
+ # Set Headers
679
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
680
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
681
+
682
+ # Serialize Request
683
+ request_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::CustomDomainParameters.mapper()
684
+ request_content = @client.serialize(request_mapper, custom_domain_properties)
685
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
686
+
687
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}'
688
+
689
+ request_url = @base_url || @client.base_url
690
+
691
+ options = {
692
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
693
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'customDomainName' => custom_domain_name,'subscriptionId' => @client.subscription_id},
694
+ query_params: {'api-version' => @client.api_version},
695
+ body: request_content,
696
+ headers: request_headers.merge(custom_headers || {}),
697
+ base_url: request_url
698
+ }
699
+ promise = @client.make_request_async(:put, path_template, options)
700
+
701
+ promise = promise.then do |result|
702
+ http_response = result.response
703
+ status_code = http_response.status
704
+ response_content = http_response.body
705
+ unless status_code == 200 || status_code == 201 || status_code == 202
706
+ error_model = JSON.load(response_content)
707
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
708
+ end
709
+
710
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
711
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
712
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
713
+ # Deserialize Response
714
+ if status_code == 200
715
+ begin
716
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
717
+ result_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::CustomDomain.mapper()
718
+ result.body = @client.deserialize(result_mapper, parsed_response)
719
+ rescue Exception => e
720
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
721
+ end
722
+ end
723
+ # Deserialize Response
724
+ if status_code == 201
725
+ begin
726
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
727
+ result_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::CustomDomain.mapper()
728
+ result.body = @client.deserialize(result_mapper, parsed_response)
729
+ rescue Exception => e
730
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
731
+ end
732
+ end
733
+ # Deserialize Response
734
+ if status_code == 202
735
+ begin
736
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
737
+ result_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::CustomDomain.mapper()
738
+ result.body = @client.deserialize(result_mapper, parsed_response)
739
+ rescue Exception => e
740
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
741
+ end
742
+ end
743
+
744
+ result
745
+ end
746
+
747
+ promise.execute
748
+ end
749
+
750
+ #
751
+ # Deletes an existing custom domain within an endpoint.
752
+ #
753
+ # @param resource_group_name [String] Name of the Resource group within the
754
+ # Azure subscription.
755
+ # @param profile_name [String] Name of the CDN profile which is unique within
756
+ # the resource group.
757
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
758
+ # unique globally.
759
+ # @param custom_domain_name [String] Name of the custom domain within an
760
+ # endpoint.
761
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
762
+ # will be added to the HTTP request.
763
+ #
764
+ # @return [CustomDomain] operation results.
765
+ #
766
+ def begin_delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
767
+ response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
768
+ response.body unless response.nil?
769
+ end
770
+
771
+ #
772
+ # Deletes an existing custom domain within an endpoint.
773
+ #
774
+ # @param resource_group_name [String] Name of the Resource group within the
775
+ # Azure subscription.
776
+ # @param profile_name [String] Name of the CDN profile which is unique within
777
+ # the resource group.
778
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
779
+ # unique globally.
780
+ # @param custom_domain_name [String] Name of the custom domain within an
781
+ # endpoint.
782
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
783
+ # will be added to the HTTP request.
784
+ #
785
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
786
+ #
787
+ def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
788
+ begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
789
+ end
790
+
791
+ #
792
+ # Deletes an existing custom domain within an endpoint.
793
+ #
794
+ # @param resource_group_name [String] Name of the Resource group within the
795
+ # Azure subscription.
796
+ # @param profile_name [String] Name of the CDN profile which is unique within
797
+ # the resource group.
798
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
799
+ # unique globally.
800
+ # @param custom_domain_name [String] Name of the custom domain within an
801
+ # endpoint.
802
+ # @param [Hash{String => String}] A hash of custom headers that will be added
803
+ # to the HTTP request.
804
+ #
805
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
806
+ #
807
+ def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
808
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
809
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
810
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
811
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
812
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
813
+ fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
814
+ fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil?
815
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
816
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
817
+
818
+
819
+ request_headers = {}
820
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
821
+
822
+ # Set Headers
823
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
824
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
825
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}'
826
+
827
+ request_url = @base_url || @client.base_url
828
+
829
+ options = {
830
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
831
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'customDomainName' => custom_domain_name,'subscriptionId' => @client.subscription_id},
832
+ query_params: {'api-version' => @client.api_version},
833
+ headers: request_headers.merge(custom_headers || {}),
834
+ base_url: request_url
835
+ }
836
+ promise = @client.make_request_async(:delete, path_template, options)
837
+
838
+ promise = promise.then do |result|
839
+ http_response = result.response
840
+ status_code = http_response.status
841
+ response_content = http_response.body
842
+ unless status_code == 200 || status_code == 202 || status_code == 204
843
+ error_model = JSON.load(response_content)
844
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
845
+ end
846
+
847
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
848
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
849
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
850
+ # Deserialize Response
851
+ if status_code == 202
852
+ begin
853
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
854
+ result_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::CustomDomain.mapper()
855
+ result.body = @client.deserialize(result_mapper, parsed_response)
856
+ rescue Exception => e
857
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
858
+ end
859
+ end
860
+
861
+ result
862
+ end
863
+
864
+ promise.execute
865
+ end
866
+
867
+ #
868
+ # Lists all of the existing custom domains within an endpoint.
869
+ #
870
+ # @param next_page_link [String] The NextLink from the previous successful call
871
+ # to List operation.
872
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
873
+ # will be added to the HTTP request.
874
+ #
875
+ # @return [CustomDomainListResult] operation results.
876
+ #
877
+ def list_by_endpoint_next(next_page_link, custom_headers:nil)
878
+ response = list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value!
879
+ response.body unless response.nil?
880
+ end
881
+
882
+ #
883
+ # Lists all of the existing custom domains within an endpoint.
884
+ #
885
+ # @param next_page_link [String] The NextLink from the previous successful call
886
+ # to List operation.
887
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
888
+ # will be added to the HTTP request.
889
+ #
890
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
891
+ #
892
+ def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil)
893
+ list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value!
894
+ end
895
+
896
+ #
897
+ # Lists all of the existing custom domains within an endpoint.
898
+ #
899
+ # @param next_page_link [String] The NextLink from the previous successful call
900
+ # to List operation.
901
+ # @param [Hash{String => String}] A hash of custom headers that will be added
902
+ # to the HTTP request.
903
+ #
904
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
905
+ #
906
+ def list_by_endpoint_next_async(next_page_link, custom_headers:nil)
907
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
908
+
909
+
910
+ request_headers = {}
911
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
912
+
913
+ # Set Headers
914
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
915
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
916
+ path_template = '{nextLink}'
917
+
918
+ request_url = @base_url || @client.base_url
919
+
920
+ options = {
921
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
922
+ skip_encoding_path_params: {'nextLink' => next_page_link},
923
+ headers: request_headers.merge(custom_headers || {}),
924
+ base_url: request_url
925
+ }
926
+ promise = @client.make_request_async(:get, path_template, options)
927
+
928
+ promise = promise.then do |result|
929
+ http_response = result.response
930
+ status_code = http_response.status
931
+ response_content = http_response.body
932
+ unless status_code == 200
933
+ error_model = JSON.load(response_content)
934
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
935
+ end
936
+
937
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
938
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
939
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
940
+ # Deserialize Response
941
+ if status_code == 200
942
+ begin
943
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
944
+ result_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::CustomDomainListResult.mapper()
945
+ result.body = @client.deserialize(result_mapper, parsed_response)
946
+ rescue Exception => e
947
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
948
+ end
949
+ end
950
+
951
+ result
952
+ end
953
+
954
+ promise.execute
955
+ end
956
+
957
+ #
958
+ # Lists all of the existing custom domains within an endpoint.
959
+ #
960
+ # @param resource_group_name [String] Name of the Resource group within the
961
+ # Azure subscription.
962
+ # @param profile_name [String] Name of the CDN profile which is unique within
963
+ # the resource group.
964
+ # @param endpoint_name [String] Name of the endpoint under the profile which is
965
+ # unique globally.
966
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
967
+ # will be added to the HTTP request.
968
+ #
969
+ # @return [CustomDomainListResult] which provide lazy access to pages of the
970
+ # response.
971
+ #
972
+ def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
973
+ response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
974
+ unless response.nil?
975
+ page = response.body
976
+ page.next_method = Proc.new do |next_page_link|
977
+ list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers)
978
+ end
979
+ page
980
+ end
981
+ end
982
+
983
+ end
984
+ end