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