azure_mgmt_web 0.17.6 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (449) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  3. data/lib/2015-08-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  4. data/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  5. data/lib/2016-06-01/generated/azure_mgmt_web/logic_apps_management_client.rb +1 -1
  6. data/lib/2016-08-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  7. data/lib/2016-09-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  8. data/lib/2018-02-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  9. data/lib/2020-09-01/generated/azure_mgmt_web.rb +461 -0
  10. data/lib/2020-09-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +2704 -0
  11. data/lib/2020-09-01/generated/azure_mgmt_web/app_service_environments.rb +7327 -0
  12. data/lib/2020-09-01/generated/azure_mgmt_web/app_service_plans.rb +3918 -0
  13. data/lib/2020-09-01/generated/azure_mgmt_web/certificate_registration_provider.rb +247 -0
  14. data/lib/2020-09-01/generated/azure_mgmt_web/certificates.rb +898 -0
  15. data/lib/2020-09-01/generated/azure_mgmt_web/deleted_web_apps.rb +550 -0
  16. data/lib/2020-09-01/generated/azure_mgmt_web/diagnostics.rb +3664 -0
  17. data/lib/2020-09-01/generated/azure_mgmt_web/domain_registration_provider.rb +247 -0
  18. data/lib/2020-09-01/generated/azure_mgmt_web/domains.rb +2186 -0
  19. data/lib/2020-09-01/generated/azure_mgmt_web/models/abnormal_time_period.rb +98 -0
  20. data/lib/2020-09-01/generated/azure_mgmt_web/models/access_control_entry_action.rb +16 -0
  21. data/lib/2020-09-01/generated/azure_mgmt_web/models/address.rb +101 -0
  22. data/lib/2020-09-01/generated/azure_mgmt_web/models/address_response.rb +141 -0
  23. data/lib/2020-09-01/generated/azure_mgmt_web/models/allowed_audiences_validation.rb +99 -0
  24. data/lib/2020-09-01/generated/azure_mgmt_web/models/analysis_data.rb +118 -0
  25. data/lib/2020-09-01/generated/azure_mgmt_web/models/analysis_definition.rb +91 -0
  26. data/lib/2020-09-01/generated/azure_mgmt_web/models/api_definition_info.rb +46 -0
  27. data/lib/2020-09-01/generated/azure_mgmt_web/models/api_management_config.rb +46 -0
  28. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_registration.rb +102 -0
  29. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate.rb +76 -0
  30. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +99 -0
  31. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_order.rb +368 -0
  32. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +99 -0
  33. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_order_patch_resource.rb +344 -0
  34. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_patch_resource.rb +121 -0
  35. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_resource.rb +145 -0
  36. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_environment.rb +569 -0
  37. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb +99 -0
  38. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_environment_patch_resource.rb +613 -0
  39. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_environment_resource.rb +637 -0
  40. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_plan.rb +352 -0
  41. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_plan_collection.rb +99 -0
  42. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_plan_patch_resource.rb +318 -0
  43. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_plan_restrictions.rb +20 -0
  44. data/lib/2020-09-01/generated/azure_mgmt_web/models/application_logs_config.rb +74 -0
  45. data/lib/2020-09-01/generated/azure_mgmt_web/models/application_stack.rb +109 -0
  46. data/lib/2020-09-01/generated/azure_mgmt_web/models/application_stack_collection.rb +99 -0
  47. data/lib/2020-09-01/generated/azure_mgmt_web/models/application_stack_resource.rb +153 -0
  48. data/lib/2020-09-01/generated/azure_mgmt_web/models/appservice_github_token.rb +91 -0
  49. data/lib/2020-09-01/generated/azure_mgmt_web/models/appservice_github_token_request.rb +57 -0
  50. data/lib/2020-09-01/generated/azure_mgmt_web/models/arm_id_wrapper.rb +47 -0
  51. data/lib/2020-09-01/generated/azure_mgmt_web/models/auth_platform.rb +113 -0
  52. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_action_type.rb +17 -0
  53. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_actions.rb +72 -0
  54. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_custom_action.rb +58 -0
  55. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_rules.rb +61 -0
  56. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_triggers.rb +91 -0
  57. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_active_directory.rb +138 -0
  58. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_active_directory_login.rb +110 -0
  59. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_active_directory_registration.rb +124 -0
  60. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_active_directory_validation.rb +111 -0
  61. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb +73 -0
  62. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb +72 -0
  63. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_resource_type.rb +16 -0
  64. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_storage_info_value.rb +109 -0
  65. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_storage_property_dictionary_resource.rb +99 -0
  66. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_storage_state.rb +17 -0
  67. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_storage_type.rb +16 -0
  68. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb +60 -0
  69. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_item.rb +266 -0
  70. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_item_collection.rb +99 -0
  71. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_item_status.rb +24 -0
  72. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_request.rb +148 -0
  73. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_restore_operation_type.rb +19 -0
  74. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_schedule.rb +116 -0
  75. data/lib/2020-09-01/generated/azure_mgmt_web/models/billing_meter.rb +146 -0
  76. data/lib/2020-09-01/generated/azure_mgmt_web/models/billing_meter_collection.rb +99 -0
  77. data/lib/2020-09-01/generated/azure_mgmt_web/models/blob_storage_token_store.rb +91 -0
  78. data/lib/2020-09-01/generated/azure_mgmt_web/models/build_status.rb +21 -0
  79. data/lib/2020-09-01/generated/azure_mgmt_web/models/built_in_authentication_provider.rb +20 -0
  80. data/lib/2020-09-01/generated/azure_mgmt_web/models/capability.rb +68 -0
  81. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate.rb +356 -0
  82. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_collection.rb +99 -0
  83. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_details.rb +143 -0
  84. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_email.rb +101 -0
  85. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_order_action.rb +110 -0
  86. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_order_action_type.rb +28 -0
  87. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_order_status.rb +24 -0
  88. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_patch_resource.rb +332 -0
  89. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_product_type.rb +16 -0
  90. data/lib/2020-09-01/generated/azure_mgmt_web/models/channels.rb +19 -0
  91. data/lib/2020-09-01/generated/azure_mgmt_web/models/check_name_resource_types.rb +22 -0
  92. data/lib/2020-09-01/generated/azure_mgmt_web/models/client_cert_mode.rb +16 -0
  93. data/lib/2020-09-01/generated/azure_mgmt_web/models/client_credential_method.rb +15 -0
  94. data/lib/2020-09-01/generated/azure_mgmt_web/models/client_registration.rb +102 -0
  95. data/lib/2020-09-01/generated/azure_mgmt_web/models/clone_ability_result.rb +17 -0
  96. data/lib/2020-09-01/generated/azure_mgmt_web/models/cloning_info.rb +181 -0
  97. data/lib/2020-09-01/generated/azure_mgmt_web/models/compute_mode_options.rb +17 -0
  98. data/lib/2020-09-01/generated/azure_mgmt_web/models/conn_string_info.rb +71 -0
  99. data/lib/2020-09-01/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb +60 -0
  100. data/lib/2020-09-01/generated/azure_mgmt_web/models/connection_string_dictionary.rb +99 -0
  101. data/lib/2020-09-01/generated/azure_mgmt_web/models/connection_string_type.rb +25 -0
  102. data/lib/2020-09-01/generated/azure_mgmt_web/models/contact.rb +138 -0
  103. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_cpu_statistics.rb +82 -0
  104. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_cpu_usage.rb +88 -0
  105. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_info.rb +128 -0
  106. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_memory_statistics.rb +69 -0
  107. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_network_interface_statistics.rb +124 -0
  108. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_throttling_data.rb +69 -0
  109. data/lib/2020-09-01/generated/azure_mgmt_web/models/continuous_web_job.rb +201 -0
  110. data/lib/2020-09-01/generated/azure_mgmt_web/models/continuous_web_job_collection.rb +99 -0
  111. data/lib/2020-09-01/generated/azure_mgmt_web/models/continuous_web_job_status.rb +19 -0
  112. data/lib/2020-09-01/generated/azure_mgmt_web/models/cookie_expiration.rb +104 -0
  113. data/lib/2020-09-01/generated/azure_mgmt_web/models/cookie_expiration_convention.rb +16 -0
  114. data/lib/2020-09-01/generated/azure_mgmt_web/models/cors_settings.rb +70 -0
  115. data/lib/2020-09-01/generated/azure_mgmt_web/models/created_by_type.rb +18 -0
  116. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_copy_slot_entity.rb +63 -0
  117. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_move_resource_envelope.rb +71 -0
  118. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +99 -0
  119. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_operation_description.rb +82 -0
  120. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_operation_description_properties.rb +47 -0
  121. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_operation_display.rb +79 -0
  122. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_publishing_credentials_policies_collection.rb +106 -0
  123. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_publishing_credentials_policies_entity.rb +91 -0
  124. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb +60 -0
  125. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_slot_entity.rb +58 -0
  126. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_usage_quota.rb +91 -0
  127. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +99 -0
  128. data/lib/2020-09-01/generated/azure_mgmt_web/models/custom_host_name_dns_record_type.rb +16 -0
  129. data/lib/2020-09-01/generated/azure_mgmt_web/models/custom_hostname_analysis_result.rb +258 -0
  130. data/lib/2020-09-01/generated/azure_mgmt_web/models/custom_open_id_connect_provider.rb +115 -0
  131. data/lib/2020-09-01/generated/azure_mgmt_web/models/data_source.rb +74 -0
  132. data/lib/2020-09-01/generated/azure_mgmt_web/models/data_table_response_column.rb +68 -0
  133. data/lib/2020-09-01/generated/azure_mgmt_web/models/data_table_response_object.rb +94 -0
  134. data/lib/2020-09-01/generated/azure_mgmt_web/models/database_backup_setting.rb +84 -0
  135. data/lib/2020-09-01/generated/azure_mgmt_web/models/database_type.rb +18 -0
  136. data/lib/2020-09-01/generated/azure_mgmt_web/models/default_error_response.rb +48 -0
  137. data/lib/2020-09-01/generated/azure_mgmt_web/models/default_error_response_error.rb +104 -0
  138. data/lib/2020-09-01/generated/azure_mgmt_web/models/default_error_response_error_details_item.rb +72 -0
  139. data/lib/2020-09-01/generated/azure_mgmt_web/models/deleted_app_restore_request.rb +128 -0
  140. data/lib/2020-09-01/generated/azure_mgmt_web/models/deleted_site.rb +175 -0
  141. data/lib/2020-09-01/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +99 -0
  142. data/lib/2020-09-01/generated/azure_mgmt_web/models/deployment.rb +179 -0
  143. data/lib/2020-09-01/generated/azure_mgmt_web/models/deployment_collection.rb +99 -0
  144. data/lib/2020-09-01/generated/azure_mgmt_web/models/deployment_locations.rb +98 -0
  145. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_abnormal_time_period.rb +153 -0
  146. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_definition.rb +127 -0
  147. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_info.rb +83 -0
  148. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_response.rb +111 -0
  149. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_response_collection.rb +99 -0
  150. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_analysis.rb +162 -0
  151. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_analysis_collection.rb +99 -0
  152. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_category.rb +91 -0
  153. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_category_collection.rb +99 -0
  154. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_data.rb +60 -0
  155. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_detector_collection.rb +99 -0
  156. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_detector_response.rb +206 -0
  157. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_metric_sample.rb +109 -0
  158. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_metric_set.rb +113 -0
  159. data/lib/2020-09-01/generated/azure_mgmt_web/models/dimension.rb +81 -0
  160. data/lib/2020-09-01/generated/azure_mgmt_web/models/dns_type.rb +16 -0
  161. data/lib/2020-09-01/generated/azure_mgmt_web/models/dns_verification_test_result.rb +17 -0
  162. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain.rb +381 -0
  163. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_availability_check_result.rb +73 -0
  164. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_collection.rb +99 -0
  165. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_control_center_sso_request.rb +72 -0
  166. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_ownership_identifier.rb +90 -0
  167. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +99 -0
  168. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_patch_resource.rb +357 -0
  169. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_purchase_consent.rb +79 -0
  170. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb +58 -0
  171. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_status.rb +35 -0
  172. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_type.rb +16 -0
  173. data/lib/2020-09-01/generated/azure_mgmt_web/models/enabled_config.rb +47 -0
  174. data/lib/2020-09-01/generated/azure_mgmt_web/models/endpoint_dependency.rb +68 -0
  175. data/lib/2020-09-01/generated/azure_mgmt_web/models/endpoint_detail.rb +83 -0
  176. data/lib/2020-09-01/generated/azure_mgmt_web/models/error_entity.rb +118 -0
  177. data/lib/2020-09-01/generated/azure_mgmt_web/models/experiments.rb +55 -0
  178. data/lib/2020-09-01/generated/azure_mgmt_web/models/facebook.rb +126 -0
  179. data/lib/2020-09-01/generated/azure_mgmt_web/models/file_system_application_logs_config.rb +49 -0
  180. data/lib/2020-09-01/generated/azure_mgmt_web/models/file_system_http_logs_config.rb +78 -0
  181. data/lib/2020-09-01/generated/azure_mgmt_web/models/file_system_token_store.rb +91 -0
  182. data/lib/2020-09-01/generated/azure_mgmt_web/models/forward_proxy.rb +115 -0
  183. data/lib/2020-09-01/generated/azure_mgmt_web/models/forward_proxy_convention.rb +17 -0
  184. data/lib/2020-09-01/generated/azure_mgmt_web/models/frequency_unit.rb +16 -0
  185. data/lib/2020-09-01/generated/azure_mgmt_web/models/ftps_state.rb +17 -0
  186. data/lib/2020-09-01/generated/azure_mgmt_web/models/function_envelope.rb +231 -0
  187. data/lib/2020-09-01/generated/azure_mgmt_web/models/function_envelope_collection.rb +99 -0
  188. data/lib/2020-09-01/generated/azure_mgmt_web/models/function_secrets.rb +57 -0
  189. data/lib/2020-09-01/generated/azure_mgmt_web/models/geo_region.rb +115 -0
  190. data/lib/2020-09-01/generated/azure_mgmt_web/models/geo_region_collection.rb +99 -0
  191. data/lib/2020-09-01/generated/azure_mgmt_web/models/git_hub.rb +115 -0
  192. data/lib/2020-09-01/generated/azure_mgmt_web/models/global_csm_sku_description.rb +131 -0
  193. data/lib/2020-09-01/generated/azure_mgmt_web/models/global_validation.rb +134 -0
  194. data/lib/2020-09-01/generated/azure_mgmt_web/models/google.rb +127 -0
  195. data/lib/2020-09-01/generated/azure_mgmt_web/models/handler_mapping.rb +73 -0
  196. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_keys.rb +84 -0
  197. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name.rb +119 -0
  198. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name_binding.rb +188 -0
  199. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name_binding_collection.rb +99 -0
  200. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name_ssl_state.rb +106 -0
  201. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name_type.rb +16 -0
  202. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_type.rb +16 -0
  203. data/lib/2020-09-01/generated/azure_mgmt_web/models/hosting_environment_deployment_info.rb +57 -0
  204. data/lib/2020-09-01/generated/azure_mgmt_web/models/hosting_environment_diagnostics.rb +57 -0
  205. data/lib/2020-09-01/generated/azure_mgmt_web/models/hosting_environment_profile.rb +70 -0
  206. data/lib/2020-09-01/generated/azure_mgmt_web/models/hosting_environment_status.rb +18 -0
  207. data/lib/2020-09-01/generated/azure_mgmt_web/models/http_logs_config.rb +61 -0
  208. data/lib/2020-09-01/generated/azure_mgmt_web/models/http_settings.rb +115 -0
  209. data/lib/2020-09-01/generated/azure_mgmt_web/models/http_settings_routes.rb +91 -0
  210. data/lib/2020-09-01/generated/azure_mgmt_web/models/hybrid_connection.rb +172 -0
  211. data/lib/2020-09-01/generated/azure_mgmt_web/models/hybrid_connection_collection.rb +99 -0
  212. data/lib/2020-09-01/generated/azure_mgmt_web/models/hybrid_connection_key.rb +104 -0
  213. data/lib/2020-09-01/generated/azure_mgmt_web/models/hybrid_connection_limits.rb +104 -0
  214. data/lib/2020-09-01/generated/azure_mgmt_web/models/identifier.rb +90 -0
  215. data/lib/2020-09-01/generated/azure_mgmt_web/models/identifier_collection.rb +99 -0
  216. data/lib/2020-09-01/generated/azure_mgmt_web/models/identity_providers.rb +160 -0
  217. data/lib/2020-09-01/generated/azure_mgmt_web/models/in_availability_reason_type.rb +16 -0
  218. data/lib/2020-09-01/generated/azure_mgmt_web/models/inbound_environment_endpoint.rb +88 -0
  219. data/lib/2020-09-01/generated/azure_mgmt_web/models/inbound_environment_endpoint_collection.rb +99 -0
  220. data/lib/2020-09-01/generated/azure_mgmt_web/models/ip_filter_tag.rb +17 -0
  221. data/lib/2020-09-01/generated/azure_mgmt_web/models/ip_security_restriction.rb +202 -0
  222. data/lib/2020-09-01/generated/azure_mgmt_web/models/issue_type.rb +22 -0
  223. data/lib/2020-09-01/generated/azure_mgmt_web/models/jwt_claim_checks.rb +118 -0
  224. data/lib/2020-09-01/generated/azure_mgmt_web/models/key_info.rb +57 -0
  225. data/lib/2020-09-01/generated/azure_mgmt_web/models/key_vault_secret_status.rb +25 -0
  226. data/lib/2020-09-01/generated/azure_mgmt_web/models/load_balancing_mode.rb +18 -0
  227. data/lib/2020-09-01/generated/azure_mgmt_web/models/localizable_string.rb +57 -0
  228. data/lib/2020-09-01/generated/azure_mgmt_web/models/log_level.rb +19 -0
  229. data/lib/2020-09-01/generated/azure_mgmt_web/models/log_specification.rb +79 -0
  230. data/lib/2020-09-01/generated/azure_mgmt_web/models/login.rb +158 -0
  231. data/lib/2020-09-01/generated/azure_mgmt_web/models/login_routes.rb +91 -0
  232. data/lib/2020-09-01/generated/azure_mgmt_web/models/login_scopes.rb +99 -0
  233. data/lib/2020-09-01/generated/azure_mgmt_web/models/managed_pipeline_mode.rb +16 -0
  234. data/lib/2020-09-01/generated/azure_mgmt_web/models/managed_service_identity.rb +97 -0
  235. data/lib/2020-09-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +18 -0
  236. data/lib/2020-09-01/generated/azure_mgmt_web/models/managed_service_identity_user_assigned_identities_value.rb +61 -0
  237. data/lib/2020-09-01/generated/azure_mgmt_web/models/metric_availability.rb +57 -0
  238. data/lib/2020-09-01/generated/azure_mgmt_web/models/metric_specification.rb +256 -0
  239. data/lib/2020-09-01/generated/azure_mgmt_web/models/migrate_my_sql_request.rb +103 -0
  240. data/lib/2020-09-01/generated/azure_mgmt_web/models/migrate_my_sql_status.rb +117 -0
  241. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy.rb +174 -0
  242. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_log.rb +100 -0
  243. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_log_entry.rb +73 -0
  244. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_log_entry_type.rb +17 -0
  245. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_provisioning_state.rb +19 -0
  246. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_status.rb +141 -0
  247. data/lib/2020-09-01/generated/azure_mgmt_web/models/my_sql_migration_type.rb +16 -0
  248. data/lib/2020-09-01/generated/azure_mgmt_web/models/name_identifier.rb +46 -0
  249. data/lib/2020-09-01/generated/azure_mgmt_web/models/name_identifier_collection.rb +99 -0
  250. data/lib/2020-09-01/generated/azure_mgmt_web/models/name_value_pair.rb +57 -0
  251. data/lib/2020-09-01/generated/azure_mgmt_web/models/network_access_control_entry.rb +81 -0
  252. data/lib/2020-09-01/generated/azure_mgmt_web/models/network_features.rb +149 -0
  253. data/lib/2020-09-01/generated/azure_mgmt_web/models/network_trace.rb +70 -0
  254. data/lib/2020-09-01/generated/azure_mgmt_web/models/nonce.rb +102 -0
  255. data/lib/2020-09-01/generated/azure_mgmt_web/models/notification_level.rb +18 -0
  256. data/lib/2020-09-01/generated/azure_mgmt_web/models/open_id_connect_client_credential.rb +104 -0
  257. data/lib/2020-09-01/generated/azure_mgmt_web/models/open_id_connect_config.rb +135 -0
  258. data/lib/2020-09-01/generated/azure_mgmt_web/models/open_id_connect_login.rb +110 -0
  259. data/lib/2020-09-01/generated/azure_mgmt_web/models/open_id_connect_registration.rb +115 -0
  260. data/lib/2020-09-01/generated/azure_mgmt_web/models/operation.rb +135 -0
  261. data/lib/2020-09-01/generated/azure_mgmt_web/models/operation_status.rb +19 -0
  262. data/lib/2020-09-01/generated/azure_mgmt_web/models/outbound_environment_endpoint.rb +70 -0
  263. data/lib/2020-09-01/generated/azure_mgmt_web/models/outbound_environment_endpoint_collection.rb +99 -0
  264. data/lib/2020-09-01/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +99 -0
  265. data/lib/2020-09-01/generated/azure_mgmt_web/models/perf_mon_response.rb +69 -0
  266. data/lib/2020-09-01/generated/azure_mgmt_web/models/perf_mon_sample.rb +68 -0
  267. data/lib/2020-09-01/generated/azure_mgmt_web/models/perf_mon_set.rb +100 -0
  268. data/lib/2020-09-01/generated/azure_mgmt_web/models/premier_add_on.rb +158 -0
  269. data/lib/2020-09-01/generated/azure_mgmt_web/models/premier_add_on_offer.rb +193 -0
  270. data/lib/2020-09-01/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +99 -0
  271. data/lib/2020-09-01/generated/azure_mgmt_web/models/premier_add_on_patch_resource.rb +134 -0
  272. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_access.rb +111 -0
  273. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_access_subnet.rb +58 -0
  274. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_access_virtual_network.rb +91 -0
  275. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_endpoint_connection_resource.rb +116 -0
  276. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_connection_approval_request_resource.rb +92 -0
  277. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_connection_state.rb +68 -0
  278. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_resource.rb +81 -0
  279. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_resource_properties.rb +87 -0
  280. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_resources_wrapper.rb +55 -0
  281. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_info.rb +518 -0
  282. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_info_collection.rb +99 -0
  283. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_module_info.rb +201 -0
  284. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_module_info_collection.rb +99 -0
  285. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_thread_info.rb +212 -0
  286. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_thread_info_collection.rb +99 -0
  287. data/lib/2020-09-01/generated/azure_mgmt_web/models/provisioning_state.rb +19 -0
  288. data/lib/2020-09-01/generated/azure_mgmt_web/models/proxy_only_resource.rb +95 -0
  289. data/lib/2020-09-01/generated/azure_mgmt_web/models/public_certificate.rb +115 -0
  290. data/lib/2020-09-01/generated/azure_mgmt_web/models/public_certificate_collection.rb +99 -0
  291. data/lib/2020-09-01/generated/azure_mgmt_web/models/public_certificate_location.rb +17 -0
  292. data/lib/2020-09-01/generated/azure_mgmt_web/models/publishing_profile_format.rb +17 -0
  293. data/lib/2020-09-01/generated/azure_mgmt_web/models/push_settings.rb +132 -0
  294. data/lib/2020-09-01/generated/azure_mgmt_web/models/ramp_up_rule.rb +142 -0
  295. data/lib/2020-09-01/generated/azure_mgmt_web/models/recommendation.rb +369 -0
  296. data/lib/2020-09-01/generated/azure_mgmt_web/models/recommendation_collection.rb +99 -0
  297. data/lib/2020-09-01/generated/azure_mgmt_web/models/recommendation_rule.rb +246 -0
  298. data/lib/2020-09-01/generated/azure_mgmt_web/models/redundancy_mode.rb +19 -0
  299. data/lib/2020-09-01/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb +125 -0
  300. data/lib/2020-09-01/generated/azure_mgmt_web/models/relay_service_connection_entity.rb +156 -0
  301. data/lib/2020-09-01/generated/azure_mgmt_web/models/rendering.rb +71 -0
  302. data/lib/2020-09-01/generated/azure_mgmt_web/models/rendering_type.rb +18 -0
  303. data/lib/2020-09-01/generated/azure_mgmt_web/models/renew_certificate_order_request.rb +113 -0
  304. data/lib/2020-09-01/generated/azure_mgmt_web/models/requests_based_trigger.rb +57 -0
  305. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource.rb +133 -0
  306. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_collection.rb +98 -0
  307. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_health_metadata.rb +102 -0
  308. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_health_metadata_collection.rb +99 -0
  309. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_metric_availability.rb +59 -0
  310. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_metric_definition.rb +157 -0
  311. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +99 -0
  312. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_name_availability.rb +78 -0
  313. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_name_availability_request.rb +71 -0
  314. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_scope_type.rb +17 -0
  315. data/lib/2020-09-01/generated/azure_mgmt_web/models/response_meta_data.rb +48 -0
  316. data/lib/2020-09-01/generated/azure_mgmt_web/models/restore_request.rb +226 -0
  317. data/lib/2020-09-01/generated/azure_mgmt_web/models/route_type.rb +17 -0
  318. data/lib/2020-09-01/generated/azure_mgmt_web/models/scm_type.rb +28 -0
  319. data/lib/2020-09-01/generated/azure_mgmt_web/models/service_specification.rb +76 -0
  320. data/lib/2020-09-01/generated/azure_mgmt_web/models/site.rb +643 -0
  321. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_auth_settings.rb +659 -0
  322. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_auth_settings_v2.rb +140 -0
  323. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_availability_state.rb +17 -0
  324. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_cloneability.rb +113 -0
  325. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_cloneability_criterion.rb +57 -0
  326. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_config.rb +782 -0
  327. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_config_resource.rb +826 -0
  328. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_config_resource_collection.rb +99 -0
  329. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info.rb +103 -0
  330. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info_collection.rb +101 -0
  331. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_extension_info.rb +310 -0
  332. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_extension_info_collection.rb +99 -0
  333. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_extension_type.rb +16 -0
  334. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_limits.rb +68 -0
  335. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_load_balancing.rb +19 -0
  336. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_logs_config.rb +127 -0
  337. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_machine_key.rb +79 -0
  338. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_patch_resource.rb +619 -0
  339. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_php_error_log_flag.rb +123 -0
  340. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_runtime_state.rb +17 -0
  341. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_seal.rb +46 -0
  342. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_seal_request.rb +58 -0
  343. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_source_control.rb +150 -0
  344. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_capacity.rb +83 -0
  345. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_description.rb +142 -0
  346. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_info.rb +70 -0
  347. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_info_collection.rb +99 -0
  348. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_infos.rb +67 -0
  349. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_name.rb +24 -0
  350. data/lib/2020-09-01/generated/azure_mgmt_web/models/slot_config_names_resource.rb +137 -0
  351. data/lib/2020-09-01/generated/azure_mgmt_web/models/slot_difference.rb +166 -0
  352. data/lib/2020-09-01/generated/azure_mgmt_web/models/slot_difference_collection.rb +99 -0
  353. data/lib/2020-09-01/generated/azure_mgmt_web/models/slot_swap_status.rb +71 -0
  354. data/lib/2020-09-01/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb +68 -0
  355. data/lib/2020-09-01/generated/azure_mgmt_web/models/snapshot.rb +91 -0
  356. data/lib/2020-09-01/generated/azure_mgmt_web/models/snapshot_collection.rb +100 -0
  357. data/lib/2020-09-01/generated/azure_mgmt_web/models/snapshot_recovery_source.rb +62 -0
  358. data/lib/2020-09-01/generated/azure_mgmt_web/models/snapshot_restore_request.rb +154 -0
  359. data/lib/2020-09-01/generated/azure_mgmt_web/models/solution.rb +148 -0
  360. data/lib/2020-09-01/generated/azure_mgmt_web/models/solution_type.rb +17 -0
  361. data/lib/2020-09-01/generated/azure_mgmt_web/models/source_control.rb +123 -0
  362. data/lib/2020-09-01/generated/azure_mgmt_web/models/source_control_collection.rb +99 -0
  363. data/lib/2020-09-01/generated/azure_mgmt_web/models/ssl_state.rb +17 -0
  364. data/lib/2020-09-01/generated/azure_mgmt_web/models/stack_major_version.rb +138 -0
  365. data/lib/2020-09-01/generated/azure_mgmt_web/models/stack_minor_version.rb +81 -0
  366. data/lib/2020-09-01/generated/azure_mgmt_web/models/stamp_capacity.rb +168 -0
  367. data/lib/2020-09-01/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +99 -0
  368. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_armresource.rb +196 -0
  369. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_build_armresource.rb +166 -0
  370. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_build_collection.rb +99 -0
  371. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_build_properties.rb +68 -0
  372. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_collection.rb +99 -0
  373. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_custom_domain_overview_armresource.rb +105 -0
  374. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_custom_domain_overview_collection.rb +102 -0
  375. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_function_overview_armresource.rb +104 -0
  376. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_function_overview_collection.rb +101 -0
  377. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_patch_resource.rb +160 -0
  378. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_reset_properties_armresource.rb +103 -0
  379. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_user_armresource.rb +127 -0
  380. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_user_collection.rb +99 -0
  381. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_user_invitation_request_resource.rb +135 -0
  382. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_user_invitation_response_resource.rb +103 -0
  383. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_sites_workflow_preview.rb +103 -0
  384. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_sites_workflow_preview_request.rb +114 -0
  385. data/lib/2020-09-01/generated/azure_mgmt_web/models/status_codes_based_trigger.rb +90 -0
  386. data/lib/2020-09-01/generated/azure_mgmt_web/models/status_options.rb +17 -0
  387. data/lib/2020-09-01/generated/azure_mgmt_web/models/storage_migration_options.rb +128 -0
  388. data/lib/2020-09-01/generated/azure_mgmt_web/models/storage_migration_response.rb +92 -0
  389. data/lib/2020-09-01/generated/azure_mgmt_web/models/string_dictionary.rb +98 -0
  390. data/lib/2020-09-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
  391. data/lib/2020-09-01/generated/azure_mgmt_web/models/swift_virtual_network.rb +105 -0
  392. data/lib/2020-09-01/generated/azure_mgmt_web/models/system_data.rb +105 -0
  393. data/lib/2020-09-01/generated/azure_mgmt_web/models/tld_legal_agreement.rb +79 -0
  394. data/lib/2020-09-01/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +99 -0
  395. data/lib/2020-09-01/generated/azure_mgmt_web/models/token_store.rb +126 -0
  396. data/lib/2020-09-01/generated/azure_mgmt_web/models/top_level_domain.rb +91 -0
  397. data/lib/2020-09-01/generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb +61 -0
  398. data/lib/2020-09-01/generated/azure_mgmt_web/models/top_level_domain_collection.rb +99 -0
  399. data/lib/2020-09-01/generated/azure_mgmt_web/models/trigger_types.rb +16 -0
  400. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_job_history.rb +100 -0
  401. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_job_history_collection.rb +99 -0
  402. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_job_run.rb +202 -0
  403. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_web_job.rb +200 -0
  404. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_web_job_collection.rb +99 -0
  405. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_web_job_status.rb +17 -0
  406. data/lib/2020-09-01/generated/azure_mgmt_web/models/twitter.rb +103 -0
  407. data/lib/2020-09-01/generated/azure_mgmt_web/models/twitter_registration.rb +102 -0
  408. data/lib/2020-09-01/generated/azure_mgmt_web/models/unauthenticated_client_action.rb +16 -0
  409. data/lib/2020-09-01/generated/azure_mgmt_web/models/unauthenticated_client_action_v2.rb +18 -0
  410. data/lib/2020-09-01/generated/azure_mgmt_web/models/usage.rb +177 -0
  411. data/lib/2020-09-01/generated/azure_mgmt_web/models/usage_collection.rb +99 -0
  412. data/lib/2020-09-01/generated/azure_mgmt_web/models/usage_state.rb +16 -0
  413. data/lib/2020-09-01/generated/azure_mgmt_web/models/user.rb +134 -0
  414. data/lib/2020-09-01/generated/azure_mgmt_web/models/validate_request.rb +221 -0
  415. data/lib/2020-09-01/generated/azure_mgmt_web/models/validate_resource_types.rb +16 -0
  416. data/lib/2020-09-01/generated/azure_mgmt_web/models/validate_response.rb +59 -0
  417. data/lib/2020-09-01/generated/azure_mgmt_web/models/validate_response_error.rb +57 -0
  418. data/lib/2020-09-01/generated/azure_mgmt_web/models/virtual_application.rb +90 -0
  419. data/lib/2020-09-01/generated/azure_mgmt_web/models/virtual_directory.rb +57 -0
  420. data/lib/2020-09-01/generated/azure_mgmt_web/models/virtual_ipmapping.rb +90 -0
  421. data/lib/2020-09-01/generated/azure_mgmt_web/models/virtual_network_profile.rb +81 -0
  422. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_gateway.rb +102 -0
  423. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_info.rb +173 -0
  424. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_parameters.rb +112 -0
  425. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_route.rb +124 -0
  426. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_validation_failure_details.rb +111 -0
  427. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_validation_test_failure.rb +102 -0
  428. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_app_collection.rb +99 -0
  429. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_app_instance_status_collection.rb +99 -0
  430. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_job.rb +166 -0
  431. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_job_collection.rb +99 -0
  432. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_job_type.rb +16 -0
  433. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_site_instance_status.rb +157 -0
  434. data/lib/2020-09-01/generated/azure_mgmt_web/models/worker_pool.rb +102 -0
  435. data/lib/2020-09-01/generated/azure_mgmt_web/models/worker_pool_collection.rb +99 -0
  436. data/lib/2020-09-01/generated/azure_mgmt_web/models/worker_pool_resource.rb +158 -0
  437. data/lib/2020-09-01/generated/azure_mgmt_web/models/worker_size_options.rb +22 -0
  438. data/lib/2020-09-01/generated/azure_mgmt_web/module_definition.rb +9 -0
  439. data/lib/2020-09-01/generated/azure_mgmt_web/provider.rb +681 -0
  440. data/lib/2020-09-01/generated/azure_mgmt_web/recommendations.rb +2306 -0
  441. data/lib/2020-09-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +1194 -0
  442. data/lib/2020-09-01/generated/azure_mgmt_web/static_sites.rb +3889 -0
  443. data/lib/2020-09-01/generated/azure_mgmt_web/top_level_domains.rb +576 -0
  444. data/lib/2020-09-01/generated/azure_mgmt_web/web_apps.rb +52832 -0
  445. data/lib/2020-09-01/generated/azure_mgmt_web/web_site_management_client.rb +2884 -0
  446. data/lib/azure_mgmt_web.rb +5 -4
  447. data/lib/profiles/latest/modules/web_profile_module.rb +1200 -866
  448. data/lib/version.rb +1 -1
  449. metadata +440 -3
@@ -0,0 +1,247 @@
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::Web::Mgmt::V2020_09_01
7
+ #
8
+ # WebSite Management Client
9
+ #
10
+ class DomainRegistrationProvider
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the DomainRegistrationProvider class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [WebSiteManagementClient] reference to the WebSiteManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Implements Csm operations Api to exposes the list of available Csm Apis under
26
+ # the resource provider
27
+ #
28
+ # Description for Implements Csm operations Api to exposes the list of
29
+ # available Csm Apis under the resource provider
30
+ #
31
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
+ # will be added to the HTTP request.
33
+ #
34
+ # @return [Array<CsmOperationDescription>] operation results.
35
+ #
36
+ def list_operations(custom_headers:nil)
37
+ first_page = list_operations_as_lazy(custom_headers:custom_headers)
38
+ first_page.get_all_items
39
+ end
40
+
41
+ #
42
+ # Implements Csm operations Api to exposes the list of available Csm Apis under
43
+ # the resource provider
44
+ #
45
+ # Description for Implements Csm operations Api to exposes the list of
46
+ # available Csm Apis under the resource provider
47
+ #
48
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
49
+ # will be added to the HTTP request.
50
+ #
51
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
+ #
53
+ def list_operations_with_http_info(custom_headers:nil)
54
+ list_operations_async(custom_headers:custom_headers).value!
55
+ end
56
+
57
+ #
58
+ # Implements Csm operations Api to exposes the list of available Csm Apis under
59
+ # the resource provider
60
+ #
61
+ # Description for Implements Csm operations Api to exposes the list of
62
+ # available Csm Apis under the resource provider
63
+ #
64
+ # @param [Hash{String => String}] A hash of custom headers that will be added
65
+ # to the HTTP request.
66
+ #
67
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
+ #
69
+ def list_operations_async(custom_headers:nil)
70
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
71
+
72
+
73
+ request_headers = {}
74
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
75
+
76
+ # Set Headers
77
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
78
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
79
+ path_template = 'providers/Microsoft.DomainRegistration/operations'
80
+
81
+ request_url = @base_url || @client.base_url
82
+
83
+ options = {
84
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
85
+ query_params: {'api-version' => @client.api_version},
86
+ headers: request_headers.merge(custom_headers || {}),
87
+ base_url: request_url
88
+ }
89
+ promise = @client.make_request_async(:get, path_template, options)
90
+
91
+ promise = promise.then do |result|
92
+ http_response = result.response
93
+ status_code = http_response.status
94
+ response_content = http_response.body
95
+ unless status_code == 200
96
+ error_model = JSON.load(response_content)
97
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
98
+ end
99
+
100
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
101
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
102
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
103
+ # Deserialize Response
104
+ if status_code == 200
105
+ begin
106
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
107
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::CsmOperationCollection.mapper()
108
+ result.body = @client.deserialize(result_mapper, parsed_response)
109
+ rescue Exception => e
110
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
111
+ end
112
+ end
113
+
114
+ result
115
+ end
116
+
117
+ promise.execute
118
+ end
119
+
120
+ #
121
+ # Implements Csm operations Api to exposes the list of available Csm Apis under
122
+ # the resource provider
123
+ #
124
+ # Description for Implements Csm operations Api to exposes the list of
125
+ # available Csm Apis under the resource provider
126
+ #
127
+ # @param next_page_link [String] The NextLink from the previous successful call
128
+ # to List operation.
129
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
130
+ # will be added to the HTTP request.
131
+ #
132
+ # @return [CsmOperationCollection] operation results.
133
+ #
134
+ def list_operations_next(next_page_link, custom_headers:nil)
135
+ response = list_operations_next_async(next_page_link, custom_headers:custom_headers).value!
136
+ response.body unless response.nil?
137
+ end
138
+
139
+ #
140
+ # Implements Csm operations Api to exposes the list of available Csm Apis under
141
+ # the resource provider
142
+ #
143
+ # Description for Implements Csm operations Api to exposes the list of
144
+ # available Csm Apis under the resource provider
145
+ #
146
+ # @param next_page_link [String] The NextLink from the previous successful call
147
+ # to List operation.
148
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
149
+ # will be added to the HTTP request.
150
+ #
151
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
152
+ #
153
+ def list_operations_next_with_http_info(next_page_link, custom_headers:nil)
154
+ list_operations_next_async(next_page_link, custom_headers:custom_headers).value!
155
+ end
156
+
157
+ #
158
+ # Implements Csm operations Api to exposes the list of available Csm Apis under
159
+ # the resource provider
160
+ #
161
+ # Description for Implements Csm operations Api to exposes the list of
162
+ # available Csm Apis under the resource provider
163
+ #
164
+ # @param next_page_link [String] The NextLink from the previous successful call
165
+ # to List operation.
166
+ # @param [Hash{String => String}] A hash of custom headers that will be added
167
+ # to the HTTP request.
168
+ #
169
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
170
+ #
171
+ def list_operations_next_async(next_page_link, custom_headers:nil)
172
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
173
+
174
+
175
+ request_headers = {}
176
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
177
+
178
+ # Set Headers
179
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
180
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
181
+ path_template = '{nextLink}'
182
+
183
+ request_url = @base_url || @client.base_url
184
+
185
+ options = {
186
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
187
+ skip_encoding_path_params: {'nextLink' => next_page_link},
188
+ headers: request_headers.merge(custom_headers || {}),
189
+ base_url: request_url
190
+ }
191
+ promise = @client.make_request_async(:get, path_template, options)
192
+
193
+ promise = promise.then do |result|
194
+ http_response = result.response
195
+ status_code = http_response.status
196
+ response_content = http_response.body
197
+ unless status_code == 200
198
+ error_model = JSON.load(response_content)
199
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
200
+ end
201
+
202
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
203
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
204
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
205
+ # Deserialize Response
206
+ if status_code == 200
207
+ begin
208
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
209
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::CsmOperationCollection.mapper()
210
+ result.body = @client.deserialize(result_mapper, parsed_response)
211
+ rescue Exception => e
212
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
213
+ end
214
+ end
215
+
216
+ result
217
+ end
218
+
219
+ promise.execute
220
+ end
221
+
222
+ #
223
+ # Implements Csm operations Api to exposes the list of available Csm Apis under
224
+ # the resource provider
225
+ #
226
+ # Description for Implements Csm operations Api to exposes the list of
227
+ # available Csm Apis under the resource provider
228
+ #
229
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
230
+ # will be added to the HTTP request.
231
+ #
232
+ # @return [CsmOperationCollection] which provide lazy access to pages of the
233
+ # response.
234
+ #
235
+ def list_operations_as_lazy(custom_headers:nil)
236
+ response = list_operations_async(custom_headers:custom_headers).value!
237
+ unless response.nil?
238
+ page = response.body
239
+ page.next_method = Proc.new do |next_page_link|
240
+ list_operations_next_async(next_page_link, custom_headers:custom_headers)
241
+ end
242
+ page
243
+ end
244
+ end
245
+
246
+ end
247
+ end
@@ -0,0 +1,2186 @@
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::Web::Mgmt::V2020_09_01
7
+ #
8
+ # WebSite Management Client
9
+ #
10
+ class Domains
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Domains class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [WebSiteManagementClient] reference to the WebSiteManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Check if a domain is available for registration.
26
+ #
27
+ # Description for Check if a domain is available for registration.
28
+ #
29
+ # @param identifier [NameIdentifier] Name of the domain.
30
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
+ # will be added to the HTTP request.
32
+ #
33
+ # @return [DomainAvailabilityCheckResult] operation results.
34
+ #
35
+ def check_availability(identifier, custom_headers:nil)
36
+ response = check_availability_async(identifier, custom_headers:custom_headers).value!
37
+ response.body unless response.nil?
38
+ end
39
+
40
+ #
41
+ # Check if a domain is available for registration.
42
+ #
43
+ # Description for Check if a domain is available for registration.
44
+ #
45
+ # @param identifier [NameIdentifier] Name of the domain.
46
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
47
+ # will be added to the HTTP request.
48
+ #
49
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
+ #
51
+ def check_availability_with_http_info(identifier, custom_headers:nil)
52
+ check_availability_async(identifier, custom_headers:custom_headers).value!
53
+ end
54
+
55
+ #
56
+ # Check if a domain is available for registration.
57
+ #
58
+ # Description for Check if a domain is available for registration.
59
+ #
60
+ # @param identifier [NameIdentifier] Name of the domain.
61
+ # @param [Hash{String => String}] A hash of custom headers that will be added
62
+ # to the HTTP request.
63
+ #
64
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
+ #
66
+ def check_availability_async(identifier, custom_headers:nil)
67
+ fail ArgumentError, 'identifier is nil' if identifier.nil?
68
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
69
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
70
+
71
+
72
+ request_headers = {}
73
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
74
+
75
+ # Set Headers
76
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
77
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
78
+
79
+ # Serialize Request
80
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::NameIdentifier.mapper()
81
+ request_content = @client.serialize(request_mapper, identifier)
82
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
83
+
84
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability'
85
+
86
+ request_url = @base_url || @client.base_url
87
+
88
+ options = {
89
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
90
+ path_params: {'subscriptionId' => @client.subscription_id},
91
+ query_params: {'api-version' => @client.api_version},
92
+ body: request_content,
93
+ headers: request_headers.merge(custom_headers || {}),
94
+ base_url: request_url
95
+ }
96
+ promise = @client.make_request_async(:post, path_template, options)
97
+
98
+ promise = promise.then do |result|
99
+ http_response = result.response
100
+ status_code = http_response.status
101
+ response_content = http_response.body
102
+ unless status_code == 200
103
+ error_model = JSON.load(response_content)
104
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
105
+ end
106
+
107
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
108
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
109
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
110
+ # Deserialize Response
111
+ if status_code == 200
112
+ begin
113
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
114
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DomainAvailabilityCheckResult.mapper()
115
+ result.body = @client.deserialize(result_mapper, parsed_response)
116
+ rescue Exception => e
117
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
118
+ end
119
+ end
120
+
121
+ result
122
+ end
123
+
124
+ promise.execute
125
+ end
126
+
127
+ #
128
+ # Get all domains in a subscription.
129
+ #
130
+ # Description for Get all domains in a subscription.
131
+ #
132
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
133
+ # will be added to the HTTP request.
134
+ #
135
+ # @return [Array<Domain>] operation results.
136
+ #
137
+ def list(custom_headers:nil)
138
+ first_page = list_as_lazy(custom_headers:custom_headers)
139
+ first_page.get_all_items
140
+ end
141
+
142
+ #
143
+ # Get all domains in a subscription.
144
+ #
145
+ # Description for Get all domains in a subscription.
146
+ #
147
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
148
+ # will be added to the HTTP request.
149
+ #
150
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
151
+ #
152
+ def list_with_http_info(custom_headers:nil)
153
+ list_async(custom_headers:custom_headers).value!
154
+ end
155
+
156
+ #
157
+ # Get all domains in a subscription.
158
+ #
159
+ # Description for Get all domains in a subscription.
160
+ #
161
+ # @param [Hash{String => String}] A hash of custom headers that will be added
162
+ # to the HTTP request.
163
+ #
164
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
165
+ #
166
+ def list_async(custom_headers:nil)
167
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
168
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
169
+
170
+
171
+ request_headers = {}
172
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
173
+
174
+ # Set Headers
175
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
176
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
177
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/domains'
178
+
179
+ request_url = @base_url || @client.base_url
180
+
181
+ options = {
182
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
183
+ path_params: {'subscriptionId' => @client.subscription_id},
184
+ query_params: {'api-version' => @client.api_version},
185
+ headers: request_headers.merge(custom_headers || {}),
186
+ base_url: request_url
187
+ }
188
+ promise = @client.make_request_async(:get, path_template, options)
189
+
190
+ promise = promise.then do |result|
191
+ http_response = result.response
192
+ status_code = http_response.status
193
+ response_content = http_response.body
194
+ unless status_code == 200
195
+ error_model = JSON.load(response_content)
196
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
197
+ end
198
+
199
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
200
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
201
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
202
+ # Deserialize Response
203
+ if status_code == 200
204
+ begin
205
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
206
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DomainCollection.mapper()
207
+ result.body = @client.deserialize(result_mapper, parsed_response)
208
+ rescue Exception => e
209
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
210
+ end
211
+ end
212
+
213
+ result
214
+ end
215
+
216
+ promise.execute
217
+ end
218
+
219
+ #
220
+ # Generate a single sign-on request for the domain management portal.
221
+ #
222
+ # Description for Generate a single sign-on request for the domain management
223
+ # portal.
224
+ #
225
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
226
+ # will be added to the HTTP request.
227
+ #
228
+ # @return [DomainControlCenterSsoRequest] operation results.
229
+ #
230
+ def get_control_center_sso_request(custom_headers:nil)
231
+ response = get_control_center_sso_request_async(custom_headers:custom_headers).value!
232
+ response.body unless response.nil?
233
+ end
234
+
235
+ #
236
+ # Generate a single sign-on request for the domain management portal.
237
+ #
238
+ # Description for Generate a single sign-on request for the domain management
239
+ # portal.
240
+ #
241
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
242
+ # will be added to the HTTP request.
243
+ #
244
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
245
+ #
246
+ def get_control_center_sso_request_with_http_info(custom_headers:nil)
247
+ get_control_center_sso_request_async(custom_headers:custom_headers).value!
248
+ end
249
+
250
+ #
251
+ # Generate a single sign-on request for the domain management portal.
252
+ #
253
+ # Description for Generate a single sign-on request for the domain management
254
+ # portal.
255
+ #
256
+ # @param [Hash{String => String}] A hash of custom headers that will be added
257
+ # to the HTTP request.
258
+ #
259
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
260
+ #
261
+ def get_control_center_sso_request_async(custom_headers:nil)
262
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
263
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
264
+
265
+
266
+ request_headers = {}
267
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
268
+
269
+ # Set Headers
270
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
271
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
272
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/generateSsoRequest'
273
+
274
+ request_url = @base_url || @client.base_url
275
+
276
+ options = {
277
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
278
+ path_params: {'subscriptionId' => @client.subscription_id},
279
+ query_params: {'api-version' => @client.api_version},
280
+ headers: request_headers.merge(custom_headers || {}),
281
+ base_url: request_url
282
+ }
283
+ promise = @client.make_request_async(:post, path_template, options)
284
+
285
+ promise = promise.then do |result|
286
+ http_response = result.response
287
+ status_code = http_response.status
288
+ response_content = http_response.body
289
+ unless status_code == 200
290
+ error_model = JSON.load(response_content)
291
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
292
+ end
293
+
294
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
295
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
296
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
297
+ # Deserialize Response
298
+ if status_code == 200
299
+ begin
300
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
301
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DomainControlCenterSsoRequest.mapper()
302
+ result.body = @client.deserialize(result_mapper, parsed_response)
303
+ rescue Exception => e
304
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
305
+ end
306
+ end
307
+
308
+ result
309
+ end
310
+
311
+ promise.execute
312
+ end
313
+
314
+ #
315
+ # Get domain name recommendations based on keywords.
316
+ #
317
+ # Description for Get domain name recommendations based on keywords.
318
+ #
319
+ # @param parameters [DomainRecommendationSearchParameters] Search parameters
320
+ # for domain name recommendations.
321
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
322
+ # will be added to the HTTP request.
323
+ #
324
+ # @return [Array<NameIdentifier>] operation results.
325
+ #
326
+ def list_recommendations(parameters, custom_headers:nil)
327
+ first_page = list_recommendations_as_lazy(parameters, custom_headers:custom_headers)
328
+ first_page.get_all_items
329
+ end
330
+
331
+ #
332
+ # Get domain name recommendations based on keywords.
333
+ #
334
+ # Description for Get domain name recommendations based on keywords.
335
+ #
336
+ # @param parameters [DomainRecommendationSearchParameters] Search parameters
337
+ # for domain name recommendations.
338
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
339
+ # will be added to the HTTP request.
340
+ #
341
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
342
+ #
343
+ def list_recommendations_with_http_info(parameters, custom_headers:nil)
344
+ list_recommendations_async(parameters, custom_headers:custom_headers).value!
345
+ end
346
+
347
+ #
348
+ # Get domain name recommendations based on keywords.
349
+ #
350
+ # Description for Get domain name recommendations based on keywords.
351
+ #
352
+ # @param parameters [DomainRecommendationSearchParameters] Search parameters
353
+ # for domain name recommendations.
354
+ # @param [Hash{String => String}] A hash of custom headers that will be added
355
+ # to the HTTP request.
356
+ #
357
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
358
+ #
359
+ def list_recommendations_async(parameters, custom_headers:nil)
360
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
361
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
362
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
363
+
364
+
365
+ request_headers = {}
366
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
367
+
368
+ # Set Headers
369
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
370
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
371
+
372
+ # Serialize Request
373
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DomainRecommendationSearchParameters.mapper()
374
+ request_content = @client.serialize(request_mapper, parameters)
375
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
376
+
377
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/listDomainRecommendations'
378
+
379
+ request_url = @base_url || @client.base_url
380
+
381
+ options = {
382
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
383
+ path_params: {'subscriptionId' => @client.subscription_id},
384
+ query_params: {'api-version' => @client.api_version},
385
+ body: request_content,
386
+ headers: request_headers.merge(custom_headers || {}),
387
+ base_url: request_url
388
+ }
389
+ promise = @client.make_request_async(:post, path_template, options)
390
+
391
+ promise = promise.then do |result|
392
+ http_response = result.response
393
+ status_code = http_response.status
394
+ response_content = http_response.body
395
+ unless status_code == 200
396
+ error_model = JSON.load(response_content)
397
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
398
+ end
399
+
400
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
401
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
402
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
403
+ # Deserialize Response
404
+ if status_code == 200
405
+ begin
406
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
407
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::NameIdentifierCollection.mapper()
408
+ result.body = @client.deserialize(result_mapper, parsed_response)
409
+ rescue Exception => e
410
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
411
+ end
412
+ end
413
+
414
+ result
415
+ end
416
+
417
+ promise.execute
418
+ end
419
+
420
+ #
421
+ # Get all domains in a resource group.
422
+ #
423
+ # Description for Get all domains in a resource group.
424
+ #
425
+ # @param resource_group_name [String] Name of the resource group to which the
426
+ # resource belongs.
427
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
428
+ # will be added to the HTTP request.
429
+ #
430
+ # @return [Array<Domain>] operation results.
431
+ #
432
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
433
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
434
+ first_page.get_all_items
435
+ end
436
+
437
+ #
438
+ # Get all domains in a resource group.
439
+ #
440
+ # Description for Get all domains in a resource group.
441
+ #
442
+ # @param resource_group_name [String] Name of the resource group to which the
443
+ # resource belongs.
444
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
445
+ # will be added to the HTTP request.
446
+ #
447
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
448
+ #
449
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
450
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
451
+ end
452
+
453
+ #
454
+ # Get all domains in a resource group.
455
+ #
456
+ # Description for Get all domains in a resource group.
457
+ #
458
+ # @param resource_group_name [String] Name of the resource group to which the
459
+ # resource belongs.
460
+ # @param [Hash{String => String}] A hash of custom headers that will be added
461
+ # to the HTTP request.
462
+ #
463
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
464
+ #
465
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
466
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
467
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
468
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
469
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
470
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
471
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
472
+
473
+
474
+ request_headers = {}
475
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
476
+
477
+ # Set Headers
478
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
479
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
480
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains'
481
+
482
+ request_url = @base_url || @client.base_url
483
+
484
+ options = {
485
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
486
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
487
+ query_params: {'api-version' => @client.api_version},
488
+ headers: request_headers.merge(custom_headers || {}),
489
+ base_url: request_url
490
+ }
491
+ promise = @client.make_request_async(:get, path_template, options)
492
+
493
+ promise = promise.then do |result|
494
+ http_response = result.response
495
+ status_code = http_response.status
496
+ response_content = http_response.body
497
+ unless status_code == 200
498
+ error_model = JSON.load(response_content)
499
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
500
+ end
501
+
502
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
503
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
504
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
505
+ # Deserialize Response
506
+ if status_code == 200
507
+ begin
508
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
509
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DomainCollection.mapper()
510
+ result.body = @client.deserialize(result_mapper, parsed_response)
511
+ rescue Exception => e
512
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
513
+ end
514
+ end
515
+
516
+ result
517
+ end
518
+
519
+ promise.execute
520
+ end
521
+
522
+ #
523
+ # Get a domain.
524
+ #
525
+ # Description for Get a domain.
526
+ #
527
+ # @param resource_group_name [String] Name of the resource group to which the
528
+ # resource belongs.
529
+ # @param domain_name [String] Name of the domain.
530
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
531
+ # will be added to the HTTP request.
532
+ #
533
+ # @return [Domain] operation results.
534
+ #
535
+ def get(resource_group_name, domain_name, custom_headers:nil)
536
+ response = get_async(resource_group_name, domain_name, custom_headers:custom_headers).value!
537
+ response.body unless response.nil?
538
+ end
539
+
540
+ #
541
+ # Get a domain.
542
+ #
543
+ # Description for Get a domain.
544
+ #
545
+ # @param resource_group_name [String] Name of the resource group to which the
546
+ # resource belongs.
547
+ # @param domain_name [String] Name of the domain.
548
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
549
+ # will be added to the HTTP request.
550
+ #
551
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
552
+ #
553
+ def get_with_http_info(resource_group_name, domain_name, custom_headers:nil)
554
+ get_async(resource_group_name, domain_name, custom_headers:custom_headers).value!
555
+ end
556
+
557
+ #
558
+ # Get a domain.
559
+ #
560
+ # Description for Get a domain.
561
+ #
562
+ # @param resource_group_name [String] Name of the resource group to which the
563
+ # resource belongs.
564
+ # @param domain_name [String] Name of the domain.
565
+ # @param [Hash{String => String}] A hash of custom headers that will be added
566
+ # to the HTTP request.
567
+ #
568
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
569
+ #
570
+ def get_async(resource_group_name, domain_name, custom_headers:nil)
571
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
572
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
573
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
574
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
575
+ fail ArgumentError, 'domain_name is nil' if domain_name.nil?
576
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
577
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
578
+
579
+
580
+ request_headers = {}
581
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
582
+
583
+ # Set Headers
584
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
585
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
586
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}'
587
+
588
+ request_url = @base_url || @client.base_url
589
+
590
+ options = {
591
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
592
+ path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'subscriptionId' => @client.subscription_id},
593
+ query_params: {'api-version' => @client.api_version},
594
+ headers: request_headers.merge(custom_headers || {}),
595
+ base_url: request_url
596
+ }
597
+ promise = @client.make_request_async(:get, path_template, options)
598
+
599
+ promise = promise.then do |result|
600
+ http_response = result.response
601
+ status_code = http_response.status
602
+ response_content = http_response.body
603
+ unless status_code == 200
604
+ error_model = JSON.load(response_content)
605
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
606
+ end
607
+
608
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
609
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
610
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
611
+ # Deserialize Response
612
+ if status_code == 200
613
+ begin
614
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
615
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::Domain.mapper()
616
+ result.body = @client.deserialize(result_mapper, parsed_response)
617
+ rescue Exception => e
618
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
619
+ end
620
+ end
621
+
622
+ result
623
+ end
624
+
625
+ promise.execute
626
+ end
627
+
628
+ #
629
+ # Creates or updates a domain.
630
+ #
631
+ # Description for Creates or updates a domain.
632
+ #
633
+ # @param resource_group_name [String] Name of the resource group to which the
634
+ # resource belongs.
635
+ # @param domain_name [String] Name of the domain.
636
+ # @param domain [Domain] Domain registration information.
637
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
638
+ # will be added to the HTTP request.
639
+ #
640
+ # @return [Domain] operation results.
641
+ #
642
+ def create_or_update(resource_group_name, domain_name, domain, custom_headers:nil)
643
+ response = create_or_update_async(resource_group_name, domain_name, domain, custom_headers:custom_headers).value!
644
+ response.body unless response.nil?
645
+ end
646
+
647
+ #
648
+ # @param resource_group_name [String] Name of the resource group to which the
649
+ # resource belongs.
650
+ # @param domain_name [String] Name of the domain.
651
+ # @param domain [Domain] Domain registration information.
652
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
653
+ # will be added to the HTTP request.
654
+ #
655
+ # @return [Concurrent::Promise] promise which provides async access to http
656
+ # response.
657
+ #
658
+ def create_or_update_async(resource_group_name, domain_name, domain, custom_headers:nil)
659
+ # Send request
660
+ promise = begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers:custom_headers)
661
+
662
+ promise = promise.then do |response|
663
+ # Defining deserialization method.
664
+ deserialize_method = lambda do |parsed_response|
665
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::Domain.mapper()
666
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
667
+ end
668
+
669
+ # Waiting for response.
670
+ @client.get_long_running_operation_result(response, deserialize_method)
671
+ end
672
+
673
+ promise
674
+ end
675
+
676
+ #
677
+ # Delete a domain.
678
+ #
679
+ # Description for Delete a domain.
680
+ #
681
+ # @param resource_group_name [String] Name of the resource group to which the
682
+ # resource belongs.
683
+ # @param domain_name [String] Name of the domain.
684
+ # @param force_hard_delete_domain [Boolean] Specify <code>true</code> to delete
685
+ # the domain immediately. The default is <code>false</code> which deletes the
686
+ # domain after 24 hours.
687
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
688
+ # will be added to the HTTP request.
689
+ #
690
+ #
691
+ def delete(resource_group_name, domain_name, force_hard_delete_domain:nil, custom_headers:nil)
692
+ response = delete_async(resource_group_name, domain_name, force_hard_delete_domain:force_hard_delete_domain, custom_headers:custom_headers).value!
693
+ nil
694
+ end
695
+
696
+ #
697
+ # Delete a domain.
698
+ #
699
+ # Description for Delete a domain.
700
+ #
701
+ # @param resource_group_name [String] Name of the resource group to which the
702
+ # resource belongs.
703
+ # @param domain_name [String] Name of the domain.
704
+ # @param force_hard_delete_domain [Boolean] Specify <code>true</code> to delete
705
+ # the domain immediately. The default is <code>false</code> which deletes the
706
+ # domain after 24 hours.
707
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
708
+ # will be added to the HTTP request.
709
+ #
710
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
711
+ #
712
+ def delete_with_http_info(resource_group_name, domain_name, force_hard_delete_domain:nil, custom_headers:nil)
713
+ delete_async(resource_group_name, domain_name, force_hard_delete_domain:force_hard_delete_domain, custom_headers:custom_headers).value!
714
+ end
715
+
716
+ #
717
+ # Delete a domain.
718
+ #
719
+ # Description for Delete a domain.
720
+ #
721
+ # @param resource_group_name [String] Name of the resource group to which the
722
+ # resource belongs.
723
+ # @param domain_name [String] Name of the domain.
724
+ # @param force_hard_delete_domain [Boolean] Specify <code>true</code> to delete
725
+ # the domain immediately. The default is <code>false</code> which deletes the
726
+ # domain after 24 hours.
727
+ # @param [Hash{String => String}] A hash of custom headers that will be added
728
+ # to the HTTP request.
729
+ #
730
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
731
+ #
732
+ def delete_async(resource_group_name, domain_name, force_hard_delete_domain:nil, custom_headers:nil)
733
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
734
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
735
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
736
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
737
+ fail ArgumentError, 'domain_name is nil' if domain_name.nil?
738
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
739
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
740
+
741
+
742
+ request_headers = {}
743
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
744
+
745
+ # Set Headers
746
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
747
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
748
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}'
749
+
750
+ request_url = @base_url || @client.base_url
751
+
752
+ options = {
753
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
754
+ path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'subscriptionId' => @client.subscription_id},
755
+ query_params: {'forceHardDeleteDomain' => force_hard_delete_domain,'api-version' => @client.api_version},
756
+ headers: request_headers.merge(custom_headers || {}),
757
+ base_url: request_url
758
+ }
759
+ promise = @client.make_request_async(:delete, path_template, options)
760
+
761
+ promise = promise.then do |result|
762
+ http_response = result.response
763
+ status_code = http_response.status
764
+ response_content = http_response.body
765
+ unless status_code == 200 || status_code == 204
766
+ error_model = JSON.load(response_content)
767
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
768
+ end
769
+
770
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
771
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
772
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
773
+
774
+ result
775
+ end
776
+
777
+ promise.execute
778
+ end
779
+
780
+ #
781
+ # Creates or updates a domain.
782
+ #
783
+ # Description for Creates or updates a domain.
784
+ #
785
+ # @param resource_group_name [String] Name of the resource group to which the
786
+ # resource belongs.
787
+ # @param domain_name [String] Name of the domain.
788
+ # @param domain [DomainPatchResource] Domain registration information.
789
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
790
+ # will be added to the HTTP request.
791
+ #
792
+ # @return [Domain] operation results.
793
+ #
794
+ def update(resource_group_name, domain_name, domain, custom_headers:nil)
795
+ response = update_async(resource_group_name, domain_name, domain, custom_headers:custom_headers).value!
796
+ response.body unless response.nil?
797
+ end
798
+
799
+ #
800
+ # Creates or updates a domain.
801
+ #
802
+ # Description for Creates or updates a domain.
803
+ #
804
+ # @param resource_group_name [String] Name of the resource group to which the
805
+ # resource belongs.
806
+ # @param domain_name [String] Name of the domain.
807
+ # @param domain [DomainPatchResource] Domain registration information.
808
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
809
+ # will be added to the HTTP request.
810
+ #
811
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
812
+ #
813
+ def update_with_http_info(resource_group_name, domain_name, domain, custom_headers:nil)
814
+ update_async(resource_group_name, domain_name, domain, custom_headers:custom_headers).value!
815
+ end
816
+
817
+ #
818
+ # Creates or updates a domain.
819
+ #
820
+ # Description for Creates or updates a domain.
821
+ #
822
+ # @param resource_group_name [String] Name of the resource group to which the
823
+ # resource belongs.
824
+ # @param domain_name [String] Name of the domain.
825
+ # @param domain [DomainPatchResource] Domain registration information.
826
+ # @param [Hash{String => String}] A hash of custom headers that will be added
827
+ # to the HTTP request.
828
+ #
829
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
830
+ #
831
+ def update_async(resource_group_name, domain_name, domain, custom_headers:nil)
832
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
833
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
834
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
835
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
836
+ fail ArgumentError, 'domain_name is nil' if domain_name.nil?
837
+ fail ArgumentError, "'domain_name' should satisfy the constraint - 'Pattern': '[a-zA-Z0-9][a-zA-Z0-9\.-]+'" if !domain_name.nil? && domain_name.match(Regexp.new('^[a-zA-Z0-9][a-zA-Z0-9\.-]+$')).nil?
838
+ fail ArgumentError, 'domain is nil' if domain.nil?
839
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
840
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
841
+
842
+
843
+ request_headers = {}
844
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
845
+
846
+ # Set Headers
847
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
848
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
849
+
850
+ # Serialize Request
851
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DomainPatchResource.mapper()
852
+ request_content = @client.serialize(request_mapper, domain)
853
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
854
+
855
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}'
856
+
857
+ request_url = @base_url || @client.base_url
858
+
859
+ options = {
860
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
861
+ path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'subscriptionId' => @client.subscription_id},
862
+ query_params: {'api-version' => @client.api_version},
863
+ body: request_content,
864
+ headers: request_headers.merge(custom_headers || {}),
865
+ base_url: request_url
866
+ }
867
+ promise = @client.make_request_async(:patch, path_template, options)
868
+
869
+ promise = promise.then do |result|
870
+ http_response = result.response
871
+ status_code = http_response.status
872
+ response_content = http_response.body
873
+ unless status_code == 202 || status_code == 200
874
+ error_model = JSON.load(response_content)
875
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
876
+ end
877
+
878
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
879
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
880
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
881
+ # Deserialize Response
882
+ if status_code == 202
883
+ begin
884
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
885
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::Domain.mapper()
886
+ result.body = @client.deserialize(result_mapper, parsed_response)
887
+ rescue Exception => e
888
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
889
+ end
890
+ end
891
+ # Deserialize Response
892
+ if status_code == 200
893
+ begin
894
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
895
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::Domain.mapper()
896
+ result.body = @client.deserialize(result_mapper, parsed_response)
897
+ rescue Exception => e
898
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
899
+ end
900
+ end
901
+
902
+ result
903
+ end
904
+
905
+ promise.execute
906
+ end
907
+
908
+ #
909
+ # Lists domain ownership identifiers.
910
+ #
911
+ # Description for Lists domain ownership identifiers.
912
+ #
913
+ # @param resource_group_name [String] Name of the resource group to which the
914
+ # resource belongs.
915
+ # @param domain_name [String] Name of domain.
916
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
917
+ # will be added to the HTTP request.
918
+ #
919
+ # @return [Array<DomainOwnershipIdentifier>] operation results.
920
+ #
921
+ def list_ownership_identifiers(resource_group_name, domain_name, custom_headers:nil)
922
+ first_page = list_ownership_identifiers_as_lazy(resource_group_name, domain_name, custom_headers:custom_headers)
923
+ first_page.get_all_items
924
+ end
925
+
926
+ #
927
+ # Lists domain ownership identifiers.
928
+ #
929
+ # Description for Lists domain ownership identifiers.
930
+ #
931
+ # @param resource_group_name [String] Name of the resource group to which the
932
+ # resource belongs.
933
+ # @param domain_name [String] Name of domain.
934
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
935
+ # will be added to the HTTP request.
936
+ #
937
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
938
+ #
939
+ def list_ownership_identifiers_with_http_info(resource_group_name, domain_name, custom_headers:nil)
940
+ list_ownership_identifiers_async(resource_group_name, domain_name, custom_headers:custom_headers).value!
941
+ end
942
+
943
+ #
944
+ # Lists domain ownership identifiers.
945
+ #
946
+ # Description for Lists domain ownership identifiers.
947
+ #
948
+ # @param resource_group_name [String] Name of the resource group to which the
949
+ # resource belongs.
950
+ # @param domain_name [String] Name of domain.
951
+ # @param [Hash{String => String}] A hash of custom headers that will be added
952
+ # to the HTTP request.
953
+ #
954
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
955
+ #
956
+ def list_ownership_identifiers_async(resource_group_name, domain_name, custom_headers:nil)
957
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
958
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
959
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
960
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
961
+ fail ArgumentError, 'domain_name is nil' if domain_name.nil?
962
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
963
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
964
+
965
+
966
+ request_headers = {}
967
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
968
+
969
+ # Set Headers
970
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
971
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
972
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers'
973
+
974
+ request_url = @base_url || @client.base_url
975
+
976
+ options = {
977
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
978
+ path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'subscriptionId' => @client.subscription_id},
979
+ query_params: {'api-version' => @client.api_version},
980
+ headers: request_headers.merge(custom_headers || {}),
981
+ base_url: request_url
982
+ }
983
+ promise = @client.make_request_async(:get, path_template, options)
984
+
985
+ promise = promise.then do |result|
986
+ http_response = result.response
987
+ status_code = http_response.status
988
+ response_content = http_response.body
989
+ unless status_code == 200
990
+ error_model = JSON.load(response_content)
991
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
992
+ end
993
+
994
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
995
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
996
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
997
+ # Deserialize Response
998
+ if status_code == 200
999
+ begin
1000
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1001
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DomainOwnershipIdentifierCollection.mapper()
1002
+ result.body = @client.deserialize(result_mapper, parsed_response)
1003
+ rescue Exception => e
1004
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1005
+ end
1006
+ end
1007
+
1008
+ result
1009
+ end
1010
+
1011
+ promise.execute
1012
+ end
1013
+
1014
+ #
1015
+ # Get ownership identifier for domain
1016
+ #
1017
+ # Description for Get ownership identifier for domain
1018
+ #
1019
+ # @param resource_group_name [String] Name of the resource group to which the
1020
+ # resource belongs.
1021
+ # @param domain_name [String] Name of domain.
1022
+ # @param name [String] Name of identifier.
1023
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1024
+ # will be added to the HTTP request.
1025
+ #
1026
+ # @return [DomainOwnershipIdentifier] operation results.
1027
+ #
1028
+ def get_ownership_identifier(resource_group_name, domain_name, name, custom_headers:nil)
1029
+ response = get_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers:custom_headers).value!
1030
+ response.body unless response.nil?
1031
+ end
1032
+
1033
+ #
1034
+ # Get ownership identifier for domain
1035
+ #
1036
+ # Description for Get ownership identifier for domain
1037
+ #
1038
+ # @param resource_group_name [String] Name of the resource group to which the
1039
+ # resource belongs.
1040
+ # @param domain_name [String] Name of domain.
1041
+ # @param name [String] Name of identifier.
1042
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1043
+ # will be added to the HTTP request.
1044
+ #
1045
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1046
+ #
1047
+ def get_ownership_identifier_with_http_info(resource_group_name, domain_name, name, custom_headers:nil)
1048
+ get_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers:custom_headers).value!
1049
+ end
1050
+
1051
+ #
1052
+ # Get ownership identifier for domain
1053
+ #
1054
+ # Description for Get ownership identifier for domain
1055
+ #
1056
+ # @param resource_group_name [String] Name of the resource group to which the
1057
+ # resource belongs.
1058
+ # @param domain_name [String] Name of domain.
1059
+ # @param name [String] Name of identifier.
1060
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1061
+ # to the HTTP request.
1062
+ #
1063
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1064
+ #
1065
+ def get_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers:nil)
1066
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1067
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1068
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1069
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1070
+ fail ArgumentError, 'domain_name is nil' if domain_name.nil?
1071
+ fail ArgumentError, 'name is nil' if name.nil?
1072
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1073
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1074
+
1075
+
1076
+ request_headers = {}
1077
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1078
+
1079
+ # Set Headers
1080
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1081
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1082
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}'
1083
+
1084
+ request_url = @base_url || @client.base_url
1085
+
1086
+ options = {
1087
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1088
+ path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'name' => name,'subscriptionId' => @client.subscription_id},
1089
+ query_params: {'api-version' => @client.api_version},
1090
+ headers: request_headers.merge(custom_headers || {}),
1091
+ base_url: request_url
1092
+ }
1093
+ promise = @client.make_request_async(:get, path_template, options)
1094
+
1095
+ promise = promise.then do |result|
1096
+ http_response = result.response
1097
+ status_code = http_response.status
1098
+ response_content = http_response.body
1099
+ unless status_code == 200
1100
+ error_model = JSON.load(response_content)
1101
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1102
+ end
1103
+
1104
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1105
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1106
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1107
+ # Deserialize Response
1108
+ if status_code == 200
1109
+ begin
1110
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1111
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DomainOwnershipIdentifier.mapper()
1112
+ result.body = @client.deserialize(result_mapper, parsed_response)
1113
+ rescue Exception => e
1114
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1115
+ end
1116
+ end
1117
+
1118
+ result
1119
+ end
1120
+
1121
+ promise.execute
1122
+ end
1123
+
1124
+ #
1125
+ # Creates an ownership identifier for a domain or updates identifier details
1126
+ # for an existing identifer
1127
+ #
1128
+ # Description for Creates an ownership identifier for a domain or updates
1129
+ # identifier details for an existing identifer
1130
+ #
1131
+ # @param resource_group_name [String] Name of the resource group to which the
1132
+ # resource belongs.
1133
+ # @param domain_name [String] Name of domain.
1134
+ # @param name [String] Name of identifier.
1135
+ # @param domain_ownership_identifier [DomainOwnershipIdentifier] A JSON
1136
+ # representation of the domain ownership properties.
1137
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1138
+ # will be added to the HTTP request.
1139
+ #
1140
+ # @return [DomainOwnershipIdentifier] operation results.
1141
+ #
1142
+ def create_or_update_ownership_identifier(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:nil)
1143
+ response = create_or_update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:custom_headers).value!
1144
+ response.body unless response.nil?
1145
+ end
1146
+
1147
+ #
1148
+ # Creates an ownership identifier for a domain or updates identifier details
1149
+ # for an existing identifer
1150
+ #
1151
+ # Description for Creates an ownership identifier for a domain or updates
1152
+ # identifier details for an existing identifer
1153
+ #
1154
+ # @param resource_group_name [String] Name of the resource group to which the
1155
+ # resource belongs.
1156
+ # @param domain_name [String] Name of domain.
1157
+ # @param name [String] Name of identifier.
1158
+ # @param domain_ownership_identifier [DomainOwnershipIdentifier] A JSON
1159
+ # representation of the domain ownership properties.
1160
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1161
+ # will be added to the HTTP request.
1162
+ #
1163
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1164
+ #
1165
+ def create_or_update_ownership_identifier_with_http_info(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:nil)
1166
+ create_or_update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:custom_headers).value!
1167
+ end
1168
+
1169
+ #
1170
+ # Creates an ownership identifier for a domain or updates identifier details
1171
+ # for an existing identifer
1172
+ #
1173
+ # Description for Creates an ownership identifier for a domain or updates
1174
+ # identifier details for an existing identifer
1175
+ #
1176
+ # @param resource_group_name [String] Name of the resource group to which the
1177
+ # resource belongs.
1178
+ # @param domain_name [String] Name of domain.
1179
+ # @param name [String] Name of identifier.
1180
+ # @param domain_ownership_identifier [DomainOwnershipIdentifier] A JSON
1181
+ # representation of the domain ownership properties.
1182
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1183
+ # to the HTTP request.
1184
+ #
1185
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1186
+ #
1187
+ def create_or_update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:nil)
1188
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1189
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1190
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1191
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1192
+ fail ArgumentError, 'domain_name is nil' if domain_name.nil?
1193
+ fail ArgumentError, 'name is nil' if name.nil?
1194
+ fail ArgumentError, 'domain_ownership_identifier is nil' if domain_ownership_identifier.nil?
1195
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1196
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1197
+
1198
+
1199
+ request_headers = {}
1200
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1201
+
1202
+ # Set Headers
1203
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1204
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1205
+
1206
+ # Serialize Request
1207
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DomainOwnershipIdentifier.mapper()
1208
+ request_content = @client.serialize(request_mapper, domain_ownership_identifier)
1209
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1210
+
1211
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}'
1212
+
1213
+ request_url = @base_url || @client.base_url
1214
+
1215
+ options = {
1216
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1217
+ path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'name' => name,'subscriptionId' => @client.subscription_id},
1218
+ query_params: {'api-version' => @client.api_version},
1219
+ body: request_content,
1220
+ headers: request_headers.merge(custom_headers || {}),
1221
+ base_url: request_url
1222
+ }
1223
+ promise = @client.make_request_async(:put, path_template, options)
1224
+
1225
+ promise = promise.then do |result|
1226
+ http_response = result.response
1227
+ status_code = http_response.status
1228
+ response_content = http_response.body
1229
+ unless status_code == 200
1230
+ error_model = JSON.load(response_content)
1231
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1232
+ end
1233
+
1234
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1235
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1236
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1237
+ # Deserialize Response
1238
+ if status_code == 200
1239
+ begin
1240
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1241
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DomainOwnershipIdentifier.mapper()
1242
+ result.body = @client.deserialize(result_mapper, parsed_response)
1243
+ rescue Exception => e
1244
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1245
+ end
1246
+ end
1247
+
1248
+ result
1249
+ end
1250
+
1251
+ promise.execute
1252
+ end
1253
+
1254
+ #
1255
+ # Delete ownership identifier for domain
1256
+ #
1257
+ # Description for Delete ownership identifier for domain
1258
+ #
1259
+ # @param resource_group_name [String] Name of the resource group to which the
1260
+ # resource belongs.
1261
+ # @param domain_name [String] Name of domain.
1262
+ # @param name [String] Name of identifier.
1263
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1264
+ # will be added to the HTTP request.
1265
+ #
1266
+ #
1267
+ def delete_ownership_identifier(resource_group_name, domain_name, name, custom_headers:nil)
1268
+ response = delete_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers:custom_headers).value!
1269
+ nil
1270
+ end
1271
+
1272
+ #
1273
+ # Delete ownership identifier for domain
1274
+ #
1275
+ # Description for Delete ownership identifier for domain
1276
+ #
1277
+ # @param resource_group_name [String] Name of the resource group to which the
1278
+ # resource belongs.
1279
+ # @param domain_name [String] Name of domain.
1280
+ # @param name [String] Name of identifier.
1281
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1282
+ # will be added to the HTTP request.
1283
+ #
1284
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1285
+ #
1286
+ def delete_ownership_identifier_with_http_info(resource_group_name, domain_name, name, custom_headers:nil)
1287
+ delete_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers:custom_headers).value!
1288
+ end
1289
+
1290
+ #
1291
+ # Delete ownership identifier for domain
1292
+ #
1293
+ # Description for Delete ownership identifier for domain
1294
+ #
1295
+ # @param resource_group_name [String] Name of the resource group to which the
1296
+ # resource belongs.
1297
+ # @param domain_name [String] Name of domain.
1298
+ # @param name [String] Name of identifier.
1299
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1300
+ # to the HTTP request.
1301
+ #
1302
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1303
+ #
1304
+ def delete_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers:nil)
1305
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1306
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1307
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1308
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1309
+ fail ArgumentError, 'domain_name is nil' if domain_name.nil?
1310
+ fail ArgumentError, 'name is nil' if name.nil?
1311
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1312
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1313
+
1314
+
1315
+ request_headers = {}
1316
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1317
+
1318
+ # Set Headers
1319
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1320
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1321
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}'
1322
+
1323
+ request_url = @base_url || @client.base_url
1324
+
1325
+ options = {
1326
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1327
+ path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'name' => name,'subscriptionId' => @client.subscription_id},
1328
+ query_params: {'api-version' => @client.api_version},
1329
+ headers: request_headers.merge(custom_headers || {}),
1330
+ base_url: request_url
1331
+ }
1332
+ promise = @client.make_request_async(:delete, path_template, options)
1333
+
1334
+ promise = promise.then do |result|
1335
+ http_response = result.response
1336
+ status_code = http_response.status
1337
+ response_content = http_response.body
1338
+ unless status_code == 200 || status_code == 204
1339
+ error_model = JSON.load(response_content)
1340
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1341
+ end
1342
+
1343
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1344
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1345
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1346
+
1347
+ result
1348
+ end
1349
+
1350
+ promise.execute
1351
+ end
1352
+
1353
+ #
1354
+ # Creates an ownership identifier for a domain or updates identifier details
1355
+ # for an existing identifer
1356
+ #
1357
+ # Description for Creates an ownership identifier for a domain or updates
1358
+ # identifier details for an existing identifer
1359
+ #
1360
+ # @param resource_group_name [String] Name of the resource group to which the
1361
+ # resource belongs.
1362
+ # @param domain_name [String] Name of domain.
1363
+ # @param name [String] Name of identifier.
1364
+ # @param domain_ownership_identifier [DomainOwnershipIdentifier] A JSON
1365
+ # representation of the domain ownership properties.
1366
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1367
+ # will be added to the HTTP request.
1368
+ #
1369
+ # @return [DomainOwnershipIdentifier] operation results.
1370
+ #
1371
+ def update_ownership_identifier(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:nil)
1372
+ response = update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:custom_headers).value!
1373
+ response.body unless response.nil?
1374
+ end
1375
+
1376
+ #
1377
+ # Creates an ownership identifier for a domain or updates identifier details
1378
+ # for an existing identifer
1379
+ #
1380
+ # Description for Creates an ownership identifier for a domain or updates
1381
+ # identifier details for an existing identifer
1382
+ #
1383
+ # @param resource_group_name [String] Name of the resource group to which the
1384
+ # resource belongs.
1385
+ # @param domain_name [String] Name of domain.
1386
+ # @param name [String] Name of identifier.
1387
+ # @param domain_ownership_identifier [DomainOwnershipIdentifier] A JSON
1388
+ # representation of the domain ownership properties.
1389
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1390
+ # will be added to the HTTP request.
1391
+ #
1392
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1393
+ #
1394
+ def update_ownership_identifier_with_http_info(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:nil)
1395
+ update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:custom_headers).value!
1396
+ end
1397
+
1398
+ #
1399
+ # Creates an ownership identifier for a domain or updates identifier details
1400
+ # for an existing identifer
1401
+ #
1402
+ # Description for Creates an ownership identifier for a domain or updates
1403
+ # identifier details for an existing identifer
1404
+ #
1405
+ # @param resource_group_name [String] Name of the resource group to which the
1406
+ # resource belongs.
1407
+ # @param domain_name [String] Name of domain.
1408
+ # @param name [String] Name of identifier.
1409
+ # @param domain_ownership_identifier [DomainOwnershipIdentifier] A JSON
1410
+ # representation of the domain ownership properties.
1411
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1412
+ # to the HTTP request.
1413
+ #
1414
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1415
+ #
1416
+ def update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:nil)
1417
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1418
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1419
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1420
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1421
+ fail ArgumentError, 'domain_name is nil' if domain_name.nil?
1422
+ fail ArgumentError, 'name is nil' if name.nil?
1423
+ fail ArgumentError, 'domain_ownership_identifier is nil' if domain_ownership_identifier.nil?
1424
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1425
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1426
+
1427
+
1428
+ request_headers = {}
1429
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1430
+
1431
+ # Set Headers
1432
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1433
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1434
+
1435
+ # Serialize Request
1436
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DomainOwnershipIdentifier.mapper()
1437
+ request_content = @client.serialize(request_mapper, domain_ownership_identifier)
1438
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1439
+
1440
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}'
1441
+
1442
+ request_url = @base_url || @client.base_url
1443
+
1444
+ options = {
1445
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1446
+ path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'name' => name,'subscriptionId' => @client.subscription_id},
1447
+ query_params: {'api-version' => @client.api_version},
1448
+ body: request_content,
1449
+ headers: request_headers.merge(custom_headers || {}),
1450
+ base_url: request_url
1451
+ }
1452
+ promise = @client.make_request_async(:patch, path_template, options)
1453
+
1454
+ promise = promise.then do |result|
1455
+ http_response = result.response
1456
+ status_code = http_response.status
1457
+ response_content = http_response.body
1458
+ unless status_code == 200
1459
+ error_model = JSON.load(response_content)
1460
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1461
+ end
1462
+
1463
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1464
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1465
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1466
+ # Deserialize Response
1467
+ if status_code == 200
1468
+ begin
1469
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1470
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DomainOwnershipIdentifier.mapper()
1471
+ result.body = @client.deserialize(result_mapper, parsed_response)
1472
+ rescue Exception => e
1473
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1474
+ end
1475
+ end
1476
+
1477
+ result
1478
+ end
1479
+
1480
+ promise.execute
1481
+ end
1482
+
1483
+ #
1484
+ # Renew a domain.
1485
+ #
1486
+ # Description for Renew a domain.
1487
+ #
1488
+ # @param resource_group_name [String] Name of the resource group to which the
1489
+ # resource belongs.
1490
+ # @param domain_name [String] Name of the domain.
1491
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1492
+ # will be added to the HTTP request.
1493
+ #
1494
+ #
1495
+ def renew(resource_group_name, domain_name, custom_headers:nil)
1496
+ response = renew_async(resource_group_name, domain_name, custom_headers:custom_headers).value!
1497
+ nil
1498
+ end
1499
+
1500
+ #
1501
+ # Renew a domain.
1502
+ #
1503
+ # Description for Renew a domain.
1504
+ #
1505
+ # @param resource_group_name [String] Name of the resource group to which the
1506
+ # resource belongs.
1507
+ # @param domain_name [String] Name of the domain.
1508
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1509
+ # will be added to the HTTP request.
1510
+ #
1511
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1512
+ #
1513
+ def renew_with_http_info(resource_group_name, domain_name, custom_headers:nil)
1514
+ renew_async(resource_group_name, domain_name, custom_headers:custom_headers).value!
1515
+ end
1516
+
1517
+ #
1518
+ # Renew a domain.
1519
+ #
1520
+ # Description for Renew a domain.
1521
+ #
1522
+ # @param resource_group_name [String] Name of the resource group to which the
1523
+ # resource belongs.
1524
+ # @param domain_name [String] Name of the domain.
1525
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1526
+ # to the HTTP request.
1527
+ #
1528
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1529
+ #
1530
+ def renew_async(resource_group_name, domain_name, custom_headers:nil)
1531
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1532
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1533
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1534
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1535
+ fail ArgumentError, 'domain_name is nil' if domain_name.nil?
1536
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1537
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1538
+
1539
+
1540
+ request_headers = {}
1541
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1542
+
1543
+ # Set Headers
1544
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1545
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1546
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/renew'
1547
+
1548
+ request_url = @base_url || @client.base_url
1549
+
1550
+ options = {
1551
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1552
+ path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'subscriptionId' => @client.subscription_id},
1553
+ query_params: {'api-version' => @client.api_version},
1554
+ headers: request_headers.merge(custom_headers || {}),
1555
+ base_url: request_url
1556
+ }
1557
+ promise = @client.make_request_async(:post, path_template, options)
1558
+
1559
+ promise = promise.then do |result|
1560
+ http_response = result.response
1561
+ status_code = http_response.status
1562
+ response_content = http_response.body
1563
+ unless status_code == 200 || status_code == 202 || status_code == 204
1564
+ error_model = JSON.load(response_content)
1565
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1566
+ end
1567
+
1568
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1569
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1570
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1571
+
1572
+ result
1573
+ end
1574
+
1575
+ promise.execute
1576
+ end
1577
+
1578
+ #
1579
+ # Creates or updates a domain.
1580
+ #
1581
+ # Description for Creates or updates a domain.
1582
+ #
1583
+ # @param resource_group_name [String] Name of the resource group to which the
1584
+ # resource belongs.
1585
+ # @param domain_name [String] Name of the domain.
1586
+ # @param domain [Domain] Domain registration information.
1587
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1588
+ # will be added to the HTTP request.
1589
+ #
1590
+ # @return [Domain] operation results.
1591
+ #
1592
+ def begin_create_or_update(resource_group_name, domain_name, domain, custom_headers:nil)
1593
+ response = begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers:custom_headers).value!
1594
+ response.body unless response.nil?
1595
+ end
1596
+
1597
+ #
1598
+ # Creates or updates a domain.
1599
+ #
1600
+ # Description for Creates or updates a domain.
1601
+ #
1602
+ # @param resource_group_name [String] Name of the resource group to which the
1603
+ # resource belongs.
1604
+ # @param domain_name [String] Name of the domain.
1605
+ # @param domain [Domain] Domain registration information.
1606
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1607
+ # will be added to the HTTP request.
1608
+ #
1609
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1610
+ #
1611
+ def begin_create_or_update_with_http_info(resource_group_name, domain_name, domain, custom_headers:nil)
1612
+ begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers:custom_headers).value!
1613
+ end
1614
+
1615
+ #
1616
+ # Creates or updates a domain.
1617
+ #
1618
+ # Description for Creates or updates a domain.
1619
+ #
1620
+ # @param resource_group_name [String] Name of the resource group to which the
1621
+ # resource belongs.
1622
+ # @param domain_name [String] Name of the domain.
1623
+ # @param domain [Domain] Domain registration information.
1624
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1625
+ # to the HTTP request.
1626
+ #
1627
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1628
+ #
1629
+ def begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers:nil)
1630
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1631
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1632
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1633
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1634
+ fail ArgumentError, 'domain_name is nil' if domain_name.nil?
1635
+ fail ArgumentError, "'domain_name' should satisfy the constraint - 'Pattern': '[a-zA-Z0-9][a-zA-Z0-9\.-]+'" if !domain_name.nil? && domain_name.match(Regexp.new('^[a-zA-Z0-9][a-zA-Z0-9\.-]+$')).nil?
1636
+ fail ArgumentError, 'domain is nil' if domain.nil?
1637
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1638
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1639
+
1640
+
1641
+ request_headers = {}
1642
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1643
+
1644
+ # Set Headers
1645
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1646
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1647
+
1648
+ # Serialize Request
1649
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::Domain.mapper()
1650
+ request_content = @client.serialize(request_mapper, domain)
1651
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1652
+
1653
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}'
1654
+
1655
+ request_url = @base_url || @client.base_url
1656
+
1657
+ options = {
1658
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1659
+ path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'subscriptionId' => @client.subscription_id},
1660
+ query_params: {'api-version' => @client.api_version},
1661
+ body: request_content,
1662
+ headers: request_headers.merge(custom_headers || {}),
1663
+ base_url: request_url
1664
+ }
1665
+ promise = @client.make_request_async(:put, path_template, options)
1666
+
1667
+ promise = promise.then do |result|
1668
+ http_response = result.response
1669
+ status_code = http_response.status
1670
+ response_content = http_response.body
1671
+ unless status_code == 202 || status_code == 200
1672
+ error_model = JSON.load(response_content)
1673
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1674
+ end
1675
+
1676
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1677
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1678
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1679
+ # Deserialize Response
1680
+ if status_code == 202
1681
+ begin
1682
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1683
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::Domain.mapper()
1684
+ result.body = @client.deserialize(result_mapper, parsed_response)
1685
+ rescue Exception => e
1686
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1687
+ end
1688
+ end
1689
+ # Deserialize Response
1690
+ if status_code == 200
1691
+ begin
1692
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1693
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::Domain.mapper()
1694
+ result.body = @client.deserialize(result_mapper, parsed_response)
1695
+ rescue Exception => e
1696
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1697
+ end
1698
+ end
1699
+
1700
+ result
1701
+ end
1702
+
1703
+ promise.execute
1704
+ end
1705
+
1706
+ #
1707
+ # Get all domains in a subscription.
1708
+ #
1709
+ # Description for Get all domains in a subscription.
1710
+ #
1711
+ # @param next_page_link [String] The NextLink from the previous successful call
1712
+ # to List operation.
1713
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1714
+ # will be added to the HTTP request.
1715
+ #
1716
+ # @return [DomainCollection] operation results.
1717
+ #
1718
+ def list_next(next_page_link, custom_headers:nil)
1719
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1720
+ response.body unless response.nil?
1721
+ end
1722
+
1723
+ #
1724
+ # Get all domains in a subscription.
1725
+ #
1726
+ # Description for Get all domains in a subscription.
1727
+ #
1728
+ # @param next_page_link [String] The NextLink from the previous successful call
1729
+ # to List operation.
1730
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1731
+ # will be added to the HTTP request.
1732
+ #
1733
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1734
+ #
1735
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1736
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1737
+ end
1738
+
1739
+ #
1740
+ # Get all domains in a subscription.
1741
+ #
1742
+ # Description for Get all domains in a subscription.
1743
+ #
1744
+ # @param next_page_link [String] The NextLink from the previous successful call
1745
+ # to List operation.
1746
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1747
+ # to the HTTP request.
1748
+ #
1749
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1750
+ #
1751
+ def list_next_async(next_page_link, custom_headers:nil)
1752
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1753
+
1754
+
1755
+ request_headers = {}
1756
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1757
+
1758
+ # Set Headers
1759
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1760
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1761
+ path_template = '{nextLink}'
1762
+
1763
+ request_url = @base_url || @client.base_url
1764
+
1765
+ options = {
1766
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1767
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1768
+ headers: request_headers.merge(custom_headers || {}),
1769
+ base_url: request_url
1770
+ }
1771
+ promise = @client.make_request_async(:get, path_template, options)
1772
+
1773
+ promise = promise.then do |result|
1774
+ http_response = result.response
1775
+ status_code = http_response.status
1776
+ response_content = http_response.body
1777
+ unless status_code == 200
1778
+ error_model = JSON.load(response_content)
1779
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1780
+ end
1781
+
1782
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1783
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1784
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1785
+ # Deserialize Response
1786
+ if status_code == 200
1787
+ begin
1788
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1789
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DomainCollection.mapper()
1790
+ result.body = @client.deserialize(result_mapper, parsed_response)
1791
+ rescue Exception => e
1792
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1793
+ end
1794
+ end
1795
+
1796
+ result
1797
+ end
1798
+
1799
+ promise.execute
1800
+ end
1801
+
1802
+ #
1803
+ # Get domain name recommendations based on keywords.
1804
+ #
1805
+ # Description for Get domain name recommendations based on keywords.
1806
+ #
1807
+ # @param next_page_link [String] The NextLink from the previous successful call
1808
+ # to List operation.
1809
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1810
+ # will be added to the HTTP request.
1811
+ #
1812
+ # @return [NameIdentifierCollection] operation results.
1813
+ #
1814
+ def list_recommendations_next(next_page_link, custom_headers:nil)
1815
+ response = list_recommendations_next_async(next_page_link, custom_headers:custom_headers).value!
1816
+ response.body unless response.nil?
1817
+ end
1818
+
1819
+ #
1820
+ # Get domain name recommendations based on keywords.
1821
+ #
1822
+ # Description for Get domain name recommendations based on keywords.
1823
+ #
1824
+ # @param next_page_link [String] The NextLink from the previous successful call
1825
+ # to List operation.
1826
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1827
+ # will be added to the HTTP request.
1828
+ #
1829
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1830
+ #
1831
+ def list_recommendations_next_with_http_info(next_page_link, custom_headers:nil)
1832
+ list_recommendations_next_async(next_page_link, custom_headers:custom_headers).value!
1833
+ end
1834
+
1835
+ #
1836
+ # Get domain name recommendations based on keywords.
1837
+ #
1838
+ # Description for Get domain name recommendations based on keywords.
1839
+ #
1840
+ # @param next_page_link [String] The NextLink from the previous successful call
1841
+ # to List operation.
1842
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1843
+ # to the HTTP request.
1844
+ #
1845
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1846
+ #
1847
+ def list_recommendations_next_async(next_page_link, custom_headers:nil)
1848
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1849
+
1850
+
1851
+ request_headers = {}
1852
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1853
+
1854
+ # Set Headers
1855
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1856
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1857
+ path_template = '{nextLink}'
1858
+
1859
+ request_url = @base_url || @client.base_url
1860
+
1861
+ options = {
1862
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1863
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1864
+ headers: request_headers.merge(custom_headers || {}),
1865
+ base_url: request_url
1866
+ }
1867
+ promise = @client.make_request_async(:post, path_template, options)
1868
+
1869
+ promise = promise.then do |result|
1870
+ http_response = result.response
1871
+ status_code = http_response.status
1872
+ response_content = http_response.body
1873
+ unless status_code == 200
1874
+ error_model = JSON.load(response_content)
1875
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1876
+ end
1877
+
1878
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1879
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1880
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1881
+ # Deserialize Response
1882
+ if status_code == 200
1883
+ begin
1884
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1885
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::NameIdentifierCollection.mapper()
1886
+ result.body = @client.deserialize(result_mapper, parsed_response)
1887
+ rescue Exception => e
1888
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1889
+ end
1890
+ end
1891
+
1892
+ result
1893
+ end
1894
+
1895
+ promise.execute
1896
+ end
1897
+
1898
+ #
1899
+ # Get all domains in a resource group.
1900
+ #
1901
+ # Description for Get all domains in a resource group.
1902
+ #
1903
+ # @param next_page_link [String] The NextLink from the previous successful call
1904
+ # to List operation.
1905
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1906
+ # will be added to the HTTP request.
1907
+ #
1908
+ # @return [DomainCollection] operation results.
1909
+ #
1910
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1911
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1912
+ response.body unless response.nil?
1913
+ end
1914
+
1915
+ #
1916
+ # Get all domains in a resource group.
1917
+ #
1918
+ # Description for Get all domains in a resource group.
1919
+ #
1920
+ # @param next_page_link [String] The NextLink from the previous successful call
1921
+ # to List operation.
1922
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1923
+ # will be added to the HTTP request.
1924
+ #
1925
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1926
+ #
1927
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1928
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1929
+ end
1930
+
1931
+ #
1932
+ # Get all domains in a resource group.
1933
+ #
1934
+ # Description for Get all domains in a resource group.
1935
+ #
1936
+ # @param next_page_link [String] The NextLink from the previous successful call
1937
+ # to List operation.
1938
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1939
+ # to the HTTP request.
1940
+ #
1941
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1942
+ #
1943
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1944
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1945
+
1946
+
1947
+ request_headers = {}
1948
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1949
+
1950
+ # Set Headers
1951
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1952
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1953
+ path_template = '{nextLink}'
1954
+
1955
+ request_url = @base_url || @client.base_url
1956
+
1957
+ options = {
1958
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1959
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1960
+ headers: request_headers.merge(custom_headers || {}),
1961
+ base_url: request_url
1962
+ }
1963
+ promise = @client.make_request_async(:get, path_template, options)
1964
+
1965
+ promise = promise.then do |result|
1966
+ http_response = result.response
1967
+ status_code = http_response.status
1968
+ response_content = http_response.body
1969
+ unless status_code == 200
1970
+ error_model = JSON.load(response_content)
1971
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1972
+ end
1973
+
1974
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1975
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1976
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1977
+ # Deserialize Response
1978
+ if status_code == 200
1979
+ begin
1980
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1981
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DomainCollection.mapper()
1982
+ result.body = @client.deserialize(result_mapper, parsed_response)
1983
+ rescue Exception => e
1984
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1985
+ end
1986
+ end
1987
+
1988
+ result
1989
+ end
1990
+
1991
+ promise.execute
1992
+ end
1993
+
1994
+ #
1995
+ # Lists domain ownership identifiers.
1996
+ #
1997
+ # Description for Lists domain ownership identifiers.
1998
+ #
1999
+ # @param next_page_link [String] The NextLink from the previous successful call
2000
+ # to List operation.
2001
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2002
+ # will be added to the HTTP request.
2003
+ #
2004
+ # @return [DomainOwnershipIdentifierCollection] operation results.
2005
+ #
2006
+ def list_ownership_identifiers_next(next_page_link, custom_headers:nil)
2007
+ response = list_ownership_identifiers_next_async(next_page_link, custom_headers:custom_headers).value!
2008
+ response.body unless response.nil?
2009
+ end
2010
+
2011
+ #
2012
+ # Lists domain ownership identifiers.
2013
+ #
2014
+ # Description for Lists domain ownership identifiers.
2015
+ #
2016
+ # @param next_page_link [String] The NextLink from the previous successful call
2017
+ # to List operation.
2018
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2019
+ # will be added to the HTTP request.
2020
+ #
2021
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2022
+ #
2023
+ def list_ownership_identifiers_next_with_http_info(next_page_link, custom_headers:nil)
2024
+ list_ownership_identifiers_next_async(next_page_link, custom_headers:custom_headers).value!
2025
+ end
2026
+
2027
+ #
2028
+ # Lists domain ownership identifiers.
2029
+ #
2030
+ # Description for Lists domain ownership identifiers.
2031
+ #
2032
+ # @param next_page_link [String] The NextLink from the previous successful call
2033
+ # to List operation.
2034
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2035
+ # to the HTTP request.
2036
+ #
2037
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2038
+ #
2039
+ def list_ownership_identifiers_next_async(next_page_link, custom_headers:nil)
2040
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2041
+
2042
+
2043
+ request_headers = {}
2044
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2045
+
2046
+ # Set Headers
2047
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2048
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2049
+ path_template = '{nextLink}'
2050
+
2051
+ request_url = @base_url || @client.base_url
2052
+
2053
+ options = {
2054
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2055
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2056
+ headers: request_headers.merge(custom_headers || {}),
2057
+ base_url: request_url
2058
+ }
2059
+ promise = @client.make_request_async(:get, path_template, options)
2060
+
2061
+ promise = promise.then do |result|
2062
+ http_response = result.response
2063
+ status_code = http_response.status
2064
+ response_content = http_response.body
2065
+ unless status_code == 200
2066
+ error_model = JSON.load(response_content)
2067
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2068
+ end
2069
+
2070
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2071
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2072
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2073
+ # Deserialize Response
2074
+ if status_code == 200
2075
+ begin
2076
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2077
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::DomainOwnershipIdentifierCollection.mapper()
2078
+ result.body = @client.deserialize(result_mapper, parsed_response)
2079
+ rescue Exception => e
2080
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2081
+ end
2082
+ end
2083
+
2084
+ result
2085
+ end
2086
+
2087
+ promise.execute
2088
+ end
2089
+
2090
+ #
2091
+ # Get all domains in a subscription.
2092
+ #
2093
+ # Description for Get all domains in a subscription.
2094
+ #
2095
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2096
+ # will be added to the HTTP request.
2097
+ #
2098
+ # @return [DomainCollection] which provide lazy access to pages of the
2099
+ # response.
2100
+ #
2101
+ def list_as_lazy(custom_headers:nil)
2102
+ response = list_async(custom_headers:custom_headers).value!
2103
+ unless response.nil?
2104
+ page = response.body
2105
+ page.next_method = Proc.new do |next_page_link|
2106
+ list_next_async(next_page_link, custom_headers:custom_headers)
2107
+ end
2108
+ page
2109
+ end
2110
+ end
2111
+
2112
+ #
2113
+ # Get domain name recommendations based on keywords.
2114
+ #
2115
+ # Description for Get domain name recommendations based on keywords.
2116
+ #
2117
+ # @param parameters [DomainRecommendationSearchParameters] Search parameters
2118
+ # for domain name recommendations.
2119
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2120
+ # will be added to the HTTP request.
2121
+ #
2122
+ # @return [NameIdentifierCollection] which provide lazy access to pages of the
2123
+ # response.
2124
+ #
2125
+ def list_recommendations_as_lazy(parameters, custom_headers:nil)
2126
+ response = list_recommendations_async(parameters, custom_headers:custom_headers).value!
2127
+ unless response.nil?
2128
+ page = response.body
2129
+ page.next_method = Proc.new do |next_page_link|
2130
+ list_recommendations_next_async(next_page_link, custom_headers:custom_headers)
2131
+ end
2132
+ page
2133
+ end
2134
+ end
2135
+
2136
+ #
2137
+ # Get all domains in a resource group.
2138
+ #
2139
+ # Description for Get all domains in a resource group.
2140
+ #
2141
+ # @param resource_group_name [String] Name of the resource group to which the
2142
+ # resource belongs.
2143
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2144
+ # will be added to the HTTP request.
2145
+ #
2146
+ # @return [DomainCollection] which provide lazy access to pages of the
2147
+ # response.
2148
+ #
2149
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
2150
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
2151
+ unless response.nil?
2152
+ page = response.body
2153
+ page.next_method = Proc.new do |next_page_link|
2154
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
2155
+ end
2156
+ page
2157
+ end
2158
+ end
2159
+
2160
+ #
2161
+ # Lists domain ownership identifiers.
2162
+ #
2163
+ # Description for Lists domain ownership identifiers.
2164
+ #
2165
+ # @param resource_group_name [String] Name of the resource group to which the
2166
+ # resource belongs.
2167
+ # @param domain_name [String] Name of domain.
2168
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2169
+ # will be added to the HTTP request.
2170
+ #
2171
+ # @return [DomainOwnershipIdentifierCollection] which provide lazy access to
2172
+ # pages of the response.
2173
+ #
2174
+ def list_ownership_identifiers_as_lazy(resource_group_name, domain_name, custom_headers:nil)
2175
+ response = list_ownership_identifiers_async(resource_group_name, domain_name, custom_headers:custom_headers).value!
2176
+ unless response.nil?
2177
+ page = response.body
2178
+ page.next_method = Proc.new do |next_page_link|
2179
+ list_ownership_identifiers_next_async(next_page_link, custom_headers:custom_headers)
2180
+ end
2181
+ page
2182
+ end
2183
+ end
2184
+
2185
+ end
2186
+ end