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,2704 @@
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 AppServiceCertificateOrders
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the AppServiceCertificateOrders 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
+ # List all certificate orders in a subscription.
26
+ #
27
+ # Description for List all certificate orders in a subscription.
28
+ #
29
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ # @return [Array<AppServiceCertificateOrder>] operation results.
33
+ #
34
+ def list(custom_headers:nil)
35
+ first_page = list_as_lazy(custom_headers:custom_headers)
36
+ first_page.get_all_items
37
+ end
38
+
39
+ #
40
+ # List all certificate orders in a subscription.
41
+ #
42
+ # Description for List all certificate orders in a subscription.
43
+ #
44
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
+ # will be added to the HTTP request.
46
+ #
47
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
+ #
49
+ def list_with_http_info(custom_headers:nil)
50
+ list_async(custom_headers:custom_headers).value!
51
+ end
52
+
53
+ #
54
+ # List all certificate orders in a subscription.
55
+ #
56
+ # Description for List all certificate orders in a subscription.
57
+ #
58
+ # @param [Hash{String => String}] A hash of custom headers that will be added
59
+ # to the HTTP request.
60
+ #
61
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
+ #
63
+ def list_async(custom_headers:nil)
64
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
65
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
66
+
67
+
68
+ request_headers = {}
69
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
70
+
71
+ # Set Headers
72
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
73
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
74
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/certificateOrders'
75
+
76
+ request_url = @base_url || @client.base_url
77
+
78
+ options = {
79
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
80
+ path_params: {'subscriptionId' => @client.subscription_id},
81
+ query_params: {'api-version' => @client.api_version},
82
+ headers: request_headers.merge(custom_headers || {}),
83
+ base_url: request_url
84
+ }
85
+ promise = @client.make_request_async(:get, path_template, options)
86
+
87
+ promise = promise.then do |result|
88
+ http_response = result.response
89
+ status_code = http_response.status
90
+ response_content = http_response.body
91
+ unless status_code == 200
92
+ error_model = JSON.load(response_content)
93
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
94
+ end
95
+
96
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
97
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
98
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
99
+ # Deserialize Response
100
+ if status_code == 200
101
+ begin
102
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
103
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateOrderCollection.mapper()
104
+ result.body = @client.deserialize(result_mapper, parsed_response)
105
+ rescue Exception => e
106
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
107
+ end
108
+ end
109
+
110
+ result
111
+ end
112
+
113
+ promise.execute
114
+ end
115
+
116
+ #
117
+ # Validate information for a certificate order.
118
+ #
119
+ # Description for Validate information for a certificate order.
120
+ #
121
+ # @param app_service_certificate_order [AppServiceCertificateOrder] Information
122
+ # for a certificate order.
123
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
124
+ # will be added to the HTTP request.
125
+ #
126
+ #
127
+ def validate_purchase_information(app_service_certificate_order, custom_headers:nil)
128
+ response = validate_purchase_information_async(app_service_certificate_order, custom_headers:custom_headers).value!
129
+ nil
130
+ end
131
+
132
+ #
133
+ # Validate information for a certificate order.
134
+ #
135
+ # Description for Validate information for a certificate order.
136
+ #
137
+ # @param app_service_certificate_order [AppServiceCertificateOrder] Information
138
+ # for a certificate order.
139
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
140
+ # will be added to the HTTP request.
141
+ #
142
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
143
+ #
144
+ def validate_purchase_information_with_http_info(app_service_certificate_order, custom_headers:nil)
145
+ validate_purchase_information_async(app_service_certificate_order, custom_headers:custom_headers).value!
146
+ end
147
+
148
+ #
149
+ # Validate information for a certificate order.
150
+ #
151
+ # Description for Validate information for a certificate order.
152
+ #
153
+ # @param app_service_certificate_order [AppServiceCertificateOrder] Information
154
+ # for a certificate order.
155
+ # @param [Hash{String => String}] A hash of custom headers that will be added
156
+ # to the HTTP request.
157
+ #
158
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
159
+ #
160
+ def validate_purchase_information_async(app_service_certificate_order, custom_headers:nil)
161
+ fail ArgumentError, 'app_service_certificate_order is nil' if app_service_certificate_order.nil?
162
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
163
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
164
+
165
+
166
+ request_headers = {}
167
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
168
+
169
+ # Set Headers
170
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
171
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
172
+
173
+ # Serialize Request
174
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateOrder.mapper()
175
+ request_content = @client.serialize(request_mapper, app_service_certificate_order)
176
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
177
+
178
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation'
179
+
180
+ request_url = @base_url || @client.base_url
181
+
182
+ options = {
183
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
184
+ path_params: {'subscriptionId' => @client.subscription_id},
185
+ query_params: {'api-version' => @client.api_version},
186
+ body: request_content,
187
+ headers: request_headers.merge(custom_headers || {}),
188
+ base_url: request_url
189
+ }
190
+ promise = @client.make_request_async(:post, path_template, options)
191
+
192
+ promise = promise.then do |result|
193
+ http_response = result.response
194
+ status_code = http_response.status
195
+ response_content = http_response.body
196
+ unless status_code == 204
197
+ error_model = JSON.load(response_content)
198
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
199
+ end
200
+
201
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
202
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
203
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
204
+
205
+ result
206
+ end
207
+
208
+ promise.execute
209
+ end
210
+
211
+ #
212
+ # Get certificate orders in a resource group.
213
+ #
214
+ # Description for Get certificate orders in a resource group.
215
+ #
216
+ # @param resource_group_name [String] Name of the resource group to which the
217
+ # resource belongs.
218
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
219
+ # will be added to the HTTP request.
220
+ #
221
+ # @return [Array<AppServiceCertificateOrder>] operation results.
222
+ #
223
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
224
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
225
+ first_page.get_all_items
226
+ end
227
+
228
+ #
229
+ # Get certificate orders in a resource group.
230
+ #
231
+ # Description for Get certificate orders in a resource group.
232
+ #
233
+ # @param resource_group_name [String] Name of the resource group to which the
234
+ # resource belongs.
235
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
236
+ # will be added to the HTTP request.
237
+ #
238
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
239
+ #
240
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
241
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
242
+ end
243
+
244
+ #
245
+ # Get certificate orders in a resource group.
246
+ #
247
+ # Description for Get certificate orders in a resource group.
248
+ #
249
+ # @param resource_group_name [String] Name of the resource group to which the
250
+ # resource belongs.
251
+ # @param [Hash{String => String}] A hash of custom headers that will be added
252
+ # to the HTTP request.
253
+ #
254
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
255
+ #
256
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
257
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
258
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
259
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
260
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
261
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
262
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
263
+
264
+
265
+ request_headers = {}
266
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
267
+
268
+ # Set Headers
269
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
270
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
271
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders'
272
+
273
+ request_url = @base_url || @client.base_url
274
+
275
+ options = {
276
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
277
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
278
+ query_params: {'api-version' => @client.api_version},
279
+ headers: request_headers.merge(custom_headers || {}),
280
+ base_url: request_url
281
+ }
282
+ promise = @client.make_request_async(:get, path_template, options)
283
+
284
+ promise = promise.then do |result|
285
+ http_response = result.response
286
+ status_code = http_response.status
287
+ response_content = http_response.body
288
+ unless status_code == 200
289
+ error_model = JSON.load(response_content)
290
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
291
+ end
292
+
293
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
294
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
295
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
296
+ # Deserialize Response
297
+ if status_code == 200
298
+ begin
299
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
300
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateOrderCollection.mapper()
301
+ result.body = @client.deserialize(result_mapper, parsed_response)
302
+ rescue Exception => e
303
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
304
+ end
305
+ end
306
+
307
+ result
308
+ end
309
+
310
+ promise.execute
311
+ end
312
+
313
+ #
314
+ # Get a certificate order.
315
+ #
316
+ # Description for Get a certificate order.
317
+ #
318
+ # @param resource_group_name [String] Name of the resource group to which the
319
+ # resource belongs.
320
+ # @param certificate_order_name [String] Name of the certificate order..
321
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
322
+ # will be added to the HTTP request.
323
+ #
324
+ # @return [AppServiceCertificateOrder] operation results.
325
+ #
326
+ def get(resource_group_name, certificate_order_name, custom_headers:nil)
327
+ response = get_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value!
328
+ response.body unless response.nil?
329
+ end
330
+
331
+ #
332
+ # Get a certificate order.
333
+ #
334
+ # Description for Get a certificate order.
335
+ #
336
+ # @param resource_group_name [String] Name of the resource group to which the
337
+ # resource belongs.
338
+ # @param certificate_order_name [String] Name of the certificate order..
339
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
340
+ # will be added to the HTTP request.
341
+ #
342
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
343
+ #
344
+ def get_with_http_info(resource_group_name, certificate_order_name, custom_headers:nil)
345
+ get_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value!
346
+ end
347
+
348
+ #
349
+ # Get a certificate order.
350
+ #
351
+ # Description for Get a certificate order.
352
+ #
353
+ # @param resource_group_name [String] Name of the resource group to which the
354
+ # resource belongs.
355
+ # @param certificate_order_name [String] Name of the certificate order..
356
+ # @param [Hash{String => String}] A hash of custom headers that will be added
357
+ # to the HTTP request.
358
+ #
359
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
360
+ #
361
+ def get_async(resource_group_name, certificate_order_name, custom_headers:nil)
362
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
363
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
364
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
365
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
366
+ fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil?
367
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
368
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
369
+
370
+
371
+ request_headers = {}
372
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
373
+
374
+ # Set Headers
375
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
376
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
377
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}'
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: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id},
384
+ query_params: {'api-version' => @client.api_version},
385
+ headers: request_headers.merge(custom_headers || {}),
386
+ base_url: request_url
387
+ }
388
+ promise = @client.make_request_async(:get, path_template, options)
389
+
390
+ promise = promise.then do |result|
391
+ http_response = result.response
392
+ status_code = http_response.status
393
+ response_content = http_response.body
394
+ unless status_code == 200
395
+ error_model = JSON.load(response_content)
396
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
397
+ end
398
+
399
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
400
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
401
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
402
+ # Deserialize Response
403
+ if status_code == 200
404
+ begin
405
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
406
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateOrder.mapper()
407
+ result.body = @client.deserialize(result_mapper, parsed_response)
408
+ rescue Exception => e
409
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
410
+ end
411
+ end
412
+
413
+ result
414
+ end
415
+
416
+ promise.execute
417
+ end
418
+
419
+ #
420
+ # Create or update a certificate purchase order.
421
+ #
422
+ # Description for Create or update a certificate purchase order.
423
+ #
424
+ # @param resource_group_name [String] Name of the resource group to which the
425
+ # resource belongs.
426
+ # @param certificate_order_name [String] Name of the certificate order.
427
+ # @param certificate_distinguished_name [AppServiceCertificateOrder]
428
+ # Distinguished name to use for the certificate order.
429
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
430
+ # will be added to the HTTP request.
431
+ #
432
+ # @return [AppServiceCertificateOrder] operation results.
433
+ #
434
+ def create_or_update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:nil)
435
+ response = create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:custom_headers).value!
436
+ response.body unless response.nil?
437
+ end
438
+
439
+ #
440
+ # @param resource_group_name [String] Name of the resource group to which the
441
+ # resource belongs.
442
+ # @param certificate_order_name [String] Name of the certificate order.
443
+ # @param certificate_distinguished_name [AppServiceCertificateOrder]
444
+ # Distinguished name to use for the certificate order.
445
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
446
+ # will be added to the HTTP request.
447
+ #
448
+ # @return [Concurrent::Promise] promise which provides async access to http
449
+ # response.
450
+ #
451
+ def create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:nil)
452
+ # Send request
453
+ promise = begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:custom_headers)
454
+
455
+ promise = promise.then do |response|
456
+ # Defining deserialization method.
457
+ deserialize_method = lambda do |parsed_response|
458
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateOrder.mapper()
459
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
460
+ end
461
+
462
+ # Waiting for response.
463
+ @client.get_long_running_operation_result(response, deserialize_method)
464
+ end
465
+
466
+ promise
467
+ end
468
+
469
+ #
470
+ # Delete an existing certificate order.
471
+ #
472
+ # Description for Delete an existing certificate order.
473
+ #
474
+ # @param resource_group_name [String] Name of the resource group to which the
475
+ # resource belongs.
476
+ # @param certificate_order_name [String] Name of the certificate order.
477
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
478
+ # will be added to the HTTP request.
479
+ #
480
+ #
481
+ def delete(resource_group_name, certificate_order_name, custom_headers:nil)
482
+ response = delete_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value!
483
+ nil
484
+ end
485
+
486
+ #
487
+ # Delete an existing certificate order.
488
+ #
489
+ # Description for Delete an existing certificate order.
490
+ #
491
+ # @param resource_group_name [String] Name of the resource group to which the
492
+ # resource belongs.
493
+ # @param certificate_order_name [String] Name of the certificate order.
494
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
495
+ # will be added to the HTTP request.
496
+ #
497
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
498
+ #
499
+ def delete_with_http_info(resource_group_name, certificate_order_name, custom_headers:nil)
500
+ delete_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value!
501
+ end
502
+
503
+ #
504
+ # Delete an existing certificate order.
505
+ #
506
+ # Description for Delete an existing certificate order.
507
+ #
508
+ # @param resource_group_name [String] Name of the resource group to which the
509
+ # resource belongs.
510
+ # @param certificate_order_name [String] Name of the certificate order.
511
+ # @param [Hash{String => String}] A hash of custom headers that will be added
512
+ # to the HTTP request.
513
+ #
514
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
515
+ #
516
+ def delete_async(resource_group_name, certificate_order_name, custom_headers:nil)
517
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
518
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
519
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
520
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
521
+ fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil?
522
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
523
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
524
+
525
+
526
+ request_headers = {}
527
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
528
+
529
+ # Set Headers
530
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
531
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
532
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}'
533
+
534
+ request_url = @base_url || @client.base_url
535
+
536
+ options = {
537
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
538
+ path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id},
539
+ query_params: {'api-version' => @client.api_version},
540
+ headers: request_headers.merge(custom_headers || {}),
541
+ base_url: request_url
542
+ }
543
+ promise = @client.make_request_async(:delete, path_template, options)
544
+
545
+ promise = promise.then do |result|
546
+ http_response = result.response
547
+ status_code = http_response.status
548
+ response_content = http_response.body
549
+ unless status_code == 200 || status_code == 204
550
+ error_model = JSON.load(response_content)
551
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
552
+ end
553
+
554
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
555
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
556
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
557
+
558
+ result
559
+ end
560
+
561
+ promise.execute
562
+ end
563
+
564
+ #
565
+ # Create or update a certificate purchase order.
566
+ #
567
+ # Description for Create or update a certificate purchase order.
568
+ #
569
+ # @param resource_group_name [String] Name of the resource group to which the
570
+ # resource belongs.
571
+ # @param certificate_order_name [String] Name of the certificate order.
572
+ # @param certificate_distinguished_name
573
+ # [AppServiceCertificateOrderPatchResource] Distinguished name to use for the
574
+ # certificate order.
575
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
576
+ # will be added to the HTTP request.
577
+ #
578
+ # @return [AppServiceCertificateOrder] operation results.
579
+ #
580
+ def update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:nil)
581
+ response = update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:custom_headers).value!
582
+ response.body unless response.nil?
583
+ end
584
+
585
+ #
586
+ # Create or update a certificate purchase order.
587
+ #
588
+ # Description for Create or update a certificate purchase order.
589
+ #
590
+ # @param resource_group_name [String] Name of the resource group to which the
591
+ # resource belongs.
592
+ # @param certificate_order_name [String] Name of the certificate order.
593
+ # @param certificate_distinguished_name
594
+ # [AppServiceCertificateOrderPatchResource] Distinguished name to use for the
595
+ # certificate order.
596
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
597
+ # will be added to the HTTP request.
598
+ #
599
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
600
+ #
601
+ def update_with_http_info(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:nil)
602
+ update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:custom_headers).value!
603
+ end
604
+
605
+ #
606
+ # Create or update a certificate purchase order.
607
+ #
608
+ # Description for Create or update a certificate purchase order.
609
+ #
610
+ # @param resource_group_name [String] Name of the resource group to which the
611
+ # resource belongs.
612
+ # @param certificate_order_name [String] Name of the certificate order.
613
+ # @param certificate_distinguished_name
614
+ # [AppServiceCertificateOrderPatchResource] Distinguished name to use for the
615
+ # certificate order.
616
+ # @param [Hash{String => String}] A hash of custom headers that will be added
617
+ # to the HTTP request.
618
+ #
619
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
620
+ #
621
+ def update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:nil)
622
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
623
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
624
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
625
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
626
+ fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil?
627
+ fail ArgumentError, 'certificate_distinguished_name is nil' if certificate_distinguished_name.nil?
628
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
629
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
630
+
631
+
632
+ request_headers = {}
633
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
634
+
635
+ # Set Headers
636
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
637
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
638
+
639
+ # Serialize Request
640
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateOrderPatchResource.mapper()
641
+ request_content = @client.serialize(request_mapper, certificate_distinguished_name)
642
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
643
+
644
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}'
645
+
646
+ request_url = @base_url || @client.base_url
647
+
648
+ options = {
649
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
650
+ path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id},
651
+ query_params: {'api-version' => @client.api_version},
652
+ body: request_content,
653
+ headers: request_headers.merge(custom_headers || {}),
654
+ base_url: request_url
655
+ }
656
+ promise = @client.make_request_async(:patch, path_template, options)
657
+
658
+ promise = promise.then do |result|
659
+ http_response = result.response
660
+ status_code = http_response.status
661
+ response_content = http_response.body
662
+ unless status_code == 200 || status_code == 201
663
+ error_model = JSON.load(response_content)
664
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
665
+ end
666
+
667
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
668
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
669
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
670
+ # Deserialize Response
671
+ if status_code == 200
672
+ begin
673
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
674
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateOrder.mapper()
675
+ result.body = @client.deserialize(result_mapper, parsed_response)
676
+ rescue Exception => e
677
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
678
+ end
679
+ end
680
+ # Deserialize Response
681
+ if status_code == 201
682
+ begin
683
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
684
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateOrder.mapper()
685
+ result.body = @client.deserialize(result_mapper, parsed_response)
686
+ rescue Exception => e
687
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
688
+ end
689
+ end
690
+
691
+ result
692
+ end
693
+
694
+ promise.execute
695
+ end
696
+
697
+ #
698
+ # List all certificates associated with a certificate order.
699
+ #
700
+ # Description for List all certificates associated with a certificate order.
701
+ #
702
+ # @param resource_group_name [String] Name of the resource group to which the
703
+ # resource belongs.
704
+ # @param certificate_order_name [String] Name of the certificate order.
705
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
706
+ # will be added to the HTTP request.
707
+ #
708
+ # @return [Array<AppServiceCertificateResource>] operation results.
709
+ #
710
+ def list_certificates(resource_group_name, certificate_order_name, custom_headers:nil)
711
+ first_page = list_certificates_as_lazy(resource_group_name, certificate_order_name, custom_headers:custom_headers)
712
+ first_page.get_all_items
713
+ end
714
+
715
+ #
716
+ # List all certificates associated with a certificate order.
717
+ #
718
+ # Description for List all certificates associated with a certificate order.
719
+ #
720
+ # @param resource_group_name [String] Name of the resource group to which the
721
+ # resource belongs.
722
+ # @param certificate_order_name [String] Name of the certificate order.
723
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
724
+ # will be added to the HTTP request.
725
+ #
726
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
727
+ #
728
+ def list_certificates_with_http_info(resource_group_name, certificate_order_name, custom_headers:nil)
729
+ list_certificates_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value!
730
+ end
731
+
732
+ #
733
+ # List all certificates associated with a certificate order.
734
+ #
735
+ # Description for List all certificates associated with a certificate order.
736
+ #
737
+ # @param resource_group_name [String] Name of the resource group to which the
738
+ # resource belongs.
739
+ # @param certificate_order_name [String] Name of the certificate order.
740
+ # @param [Hash{String => String}] A hash of custom headers that will be added
741
+ # to the HTTP request.
742
+ #
743
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
744
+ #
745
+ def list_certificates_async(resource_group_name, certificate_order_name, custom_headers:nil)
746
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
747
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
748
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
749
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
750
+ fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil?
751
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
752
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
753
+
754
+
755
+ request_headers = {}
756
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
757
+
758
+ # Set Headers
759
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
760
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
761
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates'
762
+
763
+ request_url = @base_url || @client.base_url
764
+
765
+ options = {
766
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
767
+ path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id},
768
+ query_params: {'api-version' => @client.api_version},
769
+ headers: request_headers.merge(custom_headers || {}),
770
+ base_url: request_url
771
+ }
772
+ promise = @client.make_request_async(:get, path_template, options)
773
+
774
+ promise = promise.then do |result|
775
+ http_response = result.response
776
+ status_code = http_response.status
777
+ response_content = http_response.body
778
+ unless status_code == 200
779
+ error_model = JSON.load(response_content)
780
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
781
+ end
782
+
783
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
784
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
785
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
786
+ # Deserialize Response
787
+ if status_code == 200
788
+ begin
789
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
790
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateCollection.mapper()
791
+ result.body = @client.deserialize(result_mapper, parsed_response)
792
+ rescue Exception => e
793
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
794
+ end
795
+ end
796
+
797
+ result
798
+ end
799
+
800
+ promise.execute
801
+ end
802
+
803
+ #
804
+ # Get the certificate associated with a certificate order.
805
+ #
806
+ # Description for Get the certificate associated with a certificate order.
807
+ #
808
+ # @param resource_group_name [String] Name of the resource group to which the
809
+ # resource belongs.
810
+ # @param certificate_order_name [String] Name of the certificate order.
811
+ # @param name [String] Name of the certificate.
812
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
813
+ # will be added to the HTTP request.
814
+ #
815
+ # @return [AppServiceCertificateResource] operation results.
816
+ #
817
+ def get_certificate(resource_group_name, certificate_order_name, name, custom_headers:nil)
818
+ response = get_certificate_async(resource_group_name, certificate_order_name, name, custom_headers:custom_headers).value!
819
+ response.body unless response.nil?
820
+ end
821
+
822
+ #
823
+ # Get the certificate associated with a certificate order.
824
+ #
825
+ # Description for Get the certificate associated with a certificate order.
826
+ #
827
+ # @param resource_group_name [String] Name of the resource group to which the
828
+ # resource belongs.
829
+ # @param certificate_order_name [String] Name of the certificate order.
830
+ # @param name [String] Name of the certificate.
831
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
832
+ # will be added to the HTTP request.
833
+ #
834
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
835
+ #
836
+ def get_certificate_with_http_info(resource_group_name, certificate_order_name, name, custom_headers:nil)
837
+ get_certificate_async(resource_group_name, certificate_order_name, name, custom_headers:custom_headers).value!
838
+ end
839
+
840
+ #
841
+ # Get the certificate associated with a certificate order.
842
+ #
843
+ # Description for Get the certificate associated with a certificate order.
844
+ #
845
+ # @param resource_group_name [String] Name of the resource group to which the
846
+ # resource belongs.
847
+ # @param certificate_order_name [String] Name of the certificate order.
848
+ # @param name [String] Name of the certificate.
849
+ # @param [Hash{String => String}] A hash of custom headers that will be added
850
+ # to the HTTP request.
851
+ #
852
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
853
+ #
854
+ def get_certificate_async(resource_group_name, certificate_order_name, name, custom_headers:nil)
855
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
856
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
857
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
858
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
859
+ fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil?
860
+ fail ArgumentError, 'name is nil' if name.nil?
861
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
862
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
863
+
864
+
865
+ request_headers = {}
866
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
867
+
868
+ # Set Headers
869
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
870
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
871
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}'
872
+
873
+ request_url = @base_url || @client.base_url
874
+
875
+ options = {
876
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
877
+ path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'name' => name,'subscriptionId' => @client.subscription_id},
878
+ query_params: {'api-version' => @client.api_version},
879
+ headers: request_headers.merge(custom_headers || {}),
880
+ base_url: request_url
881
+ }
882
+ promise = @client.make_request_async(:get, path_template, options)
883
+
884
+ promise = promise.then do |result|
885
+ http_response = result.response
886
+ status_code = http_response.status
887
+ response_content = http_response.body
888
+ unless status_code == 200
889
+ error_model = JSON.load(response_content)
890
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
891
+ end
892
+
893
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
894
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
895
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
896
+ # Deserialize Response
897
+ if status_code == 200
898
+ begin
899
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
900
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateResource.mapper()
901
+ result.body = @client.deserialize(result_mapper, parsed_response)
902
+ rescue Exception => e
903
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
904
+ end
905
+ end
906
+
907
+ result
908
+ end
909
+
910
+ promise.execute
911
+ end
912
+
913
+ #
914
+ # Creates or updates a certificate and associates with key vault secret.
915
+ #
916
+ # Description for Creates or updates a certificate and associates with key
917
+ # vault secret.
918
+ #
919
+ # @param resource_group_name [String] Name of the resource group to which the
920
+ # resource belongs.
921
+ # @param certificate_order_name [String] Name of the certificate order.
922
+ # @param name [String] Name of the certificate.
923
+ # @param key_vault_certificate [AppServiceCertificateResource] Key vault
924
+ # certificate resource Id.
925
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
926
+ # will be added to the HTTP request.
927
+ #
928
+ # @return [AppServiceCertificateResource] operation results.
929
+ #
930
+ def create_or_update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil)
931
+ response = create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:custom_headers).value!
932
+ response.body unless response.nil?
933
+ end
934
+
935
+ #
936
+ # @param resource_group_name [String] Name of the resource group to which the
937
+ # resource belongs.
938
+ # @param certificate_order_name [String] Name of the certificate order.
939
+ # @param name [String] Name of the certificate.
940
+ # @param key_vault_certificate [AppServiceCertificateResource] Key vault
941
+ # certificate resource Id.
942
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
943
+ # will be added to the HTTP request.
944
+ #
945
+ # @return [Concurrent::Promise] promise which provides async access to http
946
+ # response.
947
+ #
948
+ def create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil)
949
+ # Send request
950
+ promise = begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:custom_headers)
951
+
952
+ promise = promise.then do |response|
953
+ # Defining deserialization method.
954
+ deserialize_method = lambda do |parsed_response|
955
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateResource.mapper()
956
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
957
+ end
958
+
959
+ # Waiting for response.
960
+ @client.get_long_running_operation_result(response, deserialize_method)
961
+ end
962
+
963
+ promise
964
+ end
965
+
966
+ #
967
+ # Delete the certificate associated with a certificate order.
968
+ #
969
+ # Description for Delete the certificate associated with a certificate order.
970
+ #
971
+ # @param resource_group_name [String] Name of the resource group to which the
972
+ # resource belongs.
973
+ # @param certificate_order_name [String] Name of the certificate order.
974
+ # @param name [String] Name of the certificate.
975
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
976
+ # will be added to the HTTP request.
977
+ #
978
+ #
979
+ def delete_certificate(resource_group_name, certificate_order_name, name, custom_headers:nil)
980
+ response = delete_certificate_async(resource_group_name, certificate_order_name, name, custom_headers:custom_headers).value!
981
+ nil
982
+ end
983
+
984
+ #
985
+ # Delete the certificate associated with a certificate order.
986
+ #
987
+ # Description for Delete the certificate associated with a certificate order.
988
+ #
989
+ # @param resource_group_name [String] Name of the resource group to which the
990
+ # resource belongs.
991
+ # @param certificate_order_name [String] Name of the certificate order.
992
+ # @param name [String] Name of the certificate.
993
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
994
+ # will be added to the HTTP request.
995
+ #
996
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
997
+ #
998
+ def delete_certificate_with_http_info(resource_group_name, certificate_order_name, name, custom_headers:nil)
999
+ delete_certificate_async(resource_group_name, certificate_order_name, name, custom_headers:custom_headers).value!
1000
+ end
1001
+
1002
+ #
1003
+ # Delete the certificate associated with a certificate order.
1004
+ #
1005
+ # Description for Delete the certificate associated with a certificate order.
1006
+ #
1007
+ # @param resource_group_name [String] Name of the resource group to which the
1008
+ # resource belongs.
1009
+ # @param certificate_order_name [String] Name of the certificate order.
1010
+ # @param name [String] Name of the certificate.
1011
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1012
+ # to the HTTP request.
1013
+ #
1014
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1015
+ #
1016
+ def delete_certificate_async(resource_group_name, certificate_order_name, name, custom_headers:nil)
1017
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1018
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1019
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1020
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1021
+ fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil?
1022
+ fail ArgumentError, 'name is nil' if name.nil?
1023
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1024
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1025
+
1026
+
1027
+ request_headers = {}
1028
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1029
+
1030
+ # Set Headers
1031
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1032
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1033
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}'
1034
+
1035
+ request_url = @base_url || @client.base_url
1036
+
1037
+ options = {
1038
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1039
+ path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'name' => name,'subscriptionId' => @client.subscription_id},
1040
+ query_params: {'api-version' => @client.api_version},
1041
+ headers: request_headers.merge(custom_headers || {}),
1042
+ base_url: request_url
1043
+ }
1044
+ promise = @client.make_request_async(:delete, path_template, options)
1045
+
1046
+ promise = promise.then do |result|
1047
+ http_response = result.response
1048
+ status_code = http_response.status
1049
+ response_content = http_response.body
1050
+ unless status_code == 200 || status_code == 204
1051
+ error_model = JSON.load(response_content)
1052
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1053
+ end
1054
+
1055
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1056
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1057
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1058
+
1059
+ result
1060
+ end
1061
+
1062
+ promise.execute
1063
+ end
1064
+
1065
+ #
1066
+ # Creates or updates a certificate and associates with key vault secret.
1067
+ #
1068
+ # Description for Creates or updates a certificate and associates with key
1069
+ # vault secret.
1070
+ #
1071
+ # @param resource_group_name [String] Name of the resource group to which the
1072
+ # resource belongs.
1073
+ # @param certificate_order_name [String] Name of the certificate order.
1074
+ # @param name [String] Name of the certificate.
1075
+ # @param key_vault_certificate [AppServiceCertificatePatchResource] Key vault
1076
+ # certificate resource Id.
1077
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1078
+ # will be added to the HTTP request.
1079
+ #
1080
+ # @return [AppServiceCertificateResource] operation results.
1081
+ #
1082
+ def update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil)
1083
+ response = update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:custom_headers).value!
1084
+ response.body unless response.nil?
1085
+ end
1086
+
1087
+ #
1088
+ # Creates or updates a certificate and associates with key vault secret.
1089
+ #
1090
+ # Description for Creates or updates a certificate and associates with key
1091
+ # vault secret.
1092
+ #
1093
+ # @param resource_group_name [String] Name of the resource group to which the
1094
+ # resource belongs.
1095
+ # @param certificate_order_name [String] Name of the certificate order.
1096
+ # @param name [String] Name of the certificate.
1097
+ # @param key_vault_certificate [AppServiceCertificatePatchResource] Key vault
1098
+ # certificate resource Id.
1099
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1100
+ # will be added to the HTTP request.
1101
+ #
1102
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1103
+ #
1104
+ def update_certificate_with_http_info(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil)
1105
+ update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:custom_headers).value!
1106
+ end
1107
+
1108
+ #
1109
+ # Creates or updates a certificate and associates with key vault secret.
1110
+ #
1111
+ # Description for Creates or updates a certificate and associates with key
1112
+ # vault secret.
1113
+ #
1114
+ # @param resource_group_name [String] Name of the resource group to which the
1115
+ # resource belongs.
1116
+ # @param certificate_order_name [String] Name of the certificate order.
1117
+ # @param name [String] Name of the certificate.
1118
+ # @param key_vault_certificate [AppServiceCertificatePatchResource] Key vault
1119
+ # certificate resource Id.
1120
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1121
+ # to the HTTP request.
1122
+ #
1123
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1124
+ #
1125
+ def update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil)
1126
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1127
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1128
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1129
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1130
+ fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil?
1131
+ fail ArgumentError, 'name is nil' if name.nil?
1132
+ fail ArgumentError, 'key_vault_certificate is nil' if key_vault_certificate.nil?
1133
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1134
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1135
+
1136
+
1137
+ request_headers = {}
1138
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1139
+
1140
+ # Set Headers
1141
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1142
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1143
+
1144
+ # Serialize Request
1145
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificatePatchResource.mapper()
1146
+ request_content = @client.serialize(request_mapper, key_vault_certificate)
1147
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1148
+
1149
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}'
1150
+
1151
+ request_url = @base_url || @client.base_url
1152
+
1153
+ options = {
1154
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1155
+ path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'name' => name,'subscriptionId' => @client.subscription_id},
1156
+ query_params: {'api-version' => @client.api_version},
1157
+ body: request_content,
1158
+ headers: request_headers.merge(custom_headers || {}),
1159
+ base_url: request_url
1160
+ }
1161
+ promise = @client.make_request_async(:patch, path_template, options)
1162
+
1163
+ promise = promise.then do |result|
1164
+ http_response = result.response
1165
+ status_code = http_response.status
1166
+ response_content = http_response.body
1167
+ unless status_code == 200 || status_code == 201
1168
+ error_model = JSON.load(response_content)
1169
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1170
+ end
1171
+
1172
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1173
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1174
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1175
+ # Deserialize Response
1176
+ if status_code == 200
1177
+ begin
1178
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1179
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateResource.mapper()
1180
+ result.body = @client.deserialize(result_mapper, parsed_response)
1181
+ rescue Exception => e
1182
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1183
+ end
1184
+ end
1185
+ # Deserialize Response
1186
+ if status_code == 201
1187
+ begin
1188
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1189
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateResource.mapper()
1190
+ result.body = @client.deserialize(result_mapper, parsed_response)
1191
+ rescue Exception => e
1192
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1193
+ end
1194
+ end
1195
+
1196
+ result
1197
+ end
1198
+
1199
+ promise.execute
1200
+ end
1201
+
1202
+ #
1203
+ # Reissue an existing certificate order.
1204
+ #
1205
+ # Description for Reissue an existing certificate order.
1206
+ #
1207
+ # @param resource_group_name [String] Name of the resource group to which the
1208
+ # resource belongs.
1209
+ # @param certificate_order_name [String] Name of the certificate order.
1210
+ # @param reissue_certificate_order_request [ReissueCertificateOrderRequest]
1211
+ # Parameters for the reissue.
1212
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1213
+ # will be added to the HTTP request.
1214
+ #
1215
+ #
1216
+ def reissue(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers:nil)
1217
+ response = reissue_async(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers:custom_headers).value!
1218
+ nil
1219
+ end
1220
+
1221
+ #
1222
+ # Reissue an existing certificate order.
1223
+ #
1224
+ # Description for Reissue an existing certificate order.
1225
+ #
1226
+ # @param resource_group_name [String] Name of the resource group to which the
1227
+ # resource belongs.
1228
+ # @param certificate_order_name [String] Name of the certificate order.
1229
+ # @param reissue_certificate_order_request [ReissueCertificateOrderRequest]
1230
+ # Parameters for the reissue.
1231
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1232
+ # will be added to the HTTP request.
1233
+ #
1234
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1235
+ #
1236
+ def reissue_with_http_info(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers:nil)
1237
+ reissue_async(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers:custom_headers).value!
1238
+ end
1239
+
1240
+ #
1241
+ # Reissue an existing certificate order.
1242
+ #
1243
+ # Description for Reissue an existing certificate order.
1244
+ #
1245
+ # @param resource_group_name [String] Name of the resource group to which the
1246
+ # resource belongs.
1247
+ # @param certificate_order_name [String] Name of the certificate order.
1248
+ # @param reissue_certificate_order_request [ReissueCertificateOrderRequest]
1249
+ # Parameters for the reissue.
1250
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1251
+ # to the HTTP request.
1252
+ #
1253
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1254
+ #
1255
+ def reissue_async(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers:nil)
1256
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1257
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1258
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1259
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1260
+ fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil?
1261
+ fail ArgumentError, 'reissue_certificate_order_request is nil' if reissue_certificate_order_request.nil?
1262
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1263
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1264
+
1265
+
1266
+ request_headers = {}
1267
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1268
+
1269
+ # Set Headers
1270
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1271
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1272
+
1273
+ # Serialize Request
1274
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::ReissueCertificateOrderRequest.mapper()
1275
+ request_content = @client.serialize(request_mapper, reissue_certificate_order_request)
1276
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1277
+
1278
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/reissue'
1279
+
1280
+ request_url = @base_url || @client.base_url
1281
+
1282
+ options = {
1283
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1284
+ path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id},
1285
+ query_params: {'api-version' => @client.api_version},
1286
+ body: request_content,
1287
+ headers: request_headers.merge(custom_headers || {}),
1288
+ base_url: request_url
1289
+ }
1290
+ promise = @client.make_request_async(:post, path_template, options)
1291
+
1292
+ promise = promise.then do |result|
1293
+ http_response = result.response
1294
+ status_code = http_response.status
1295
+ response_content = http_response.body
1296
+ unless status_code == 204
1297
+ error_model = JSON.load(response_content)
1298
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1299
+ end
1300
+
1301
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1302
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1303
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1304
+
1305
+ result
1306
+ end
1307
+
1308
+ promise.execute
1309
+ end
1310
+
1311
+ #
1312
+ # Renew an existing certificate order.
1313
+ #
1314
+ # Description for Renew an existing certificate order.
1315
+ #
1316
+ # @param resource_group_name [String] Name of the resource group to which the
1317
+ # resource belongs.
1318
+ # @param certificate_order_name [String] Name of the certificate order.
1319
+ # @param renew_certificate_order_request [RenewCertificateOrderRequest] Renew
1320
+ # parameters
1321
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1322
+ # will be added to the HTTP request.
1323
+ #
1324
+ #
1325
+ def renew(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers:nil)
1326
+ response = renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers:custom_headers).value!
1327
+ nil
1328
+ end
1329
+
1330
+ #
1331
+ # Renew an existing certificate order.
1332
+ #
1333
+ # Description for Renew an existing certificate order.
1334
+ #
1335
+ # @param resource_group_name [String] Name of the resource group to which the
1336
+ # resource belongs.
1337
+ # @param certificate_order_name [String] Name of the certificate order.
1338
+ # @param renew_certificate_order_request [RenewCertificateOrderRequest] Renew
1339
+ # parameters
1340
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1341
+ # will be added to the HTTP request.
1342
+ #
1343
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1344
+ #
1345
+ def renew_with_http_info(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers:nil)
1346
+ renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers:custom_headers).value!
1347
+ end
1348
+
1349
+ #
1350
+ # Renew an existing certificate order.
1351
+ #
1352
+ # Description for Renew an existing certificate order.
1353
+ #
1354
+ # @param resource_group_name [String] Name of the resource group to which the
1355
+ # resource belongs.
1356
+ # @param certificate_order_name [String] Name of the certificate order.
1357
+ # @param renew_certificate_order_request [RenewCertificateOrderRequest] Renew
1358
+ # parameters
1359
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1360
+ # to the HTTP request.
1361
+ #
1362
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1363
+ #
1364
+ def renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers:nil)
1365
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1366
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1367
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1368
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1369
+ fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil?
1370
+ fail ArgumentError, 'renew_certificate_order_request is nil' if renew_certificate_order_request.nil?
1371
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1372
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1373
+
1374
+
1375
+ request_headers = {}
1376
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1377
+
1378
+ # Set Headers
1379
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1380
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1381
+
1382
+ # Serialize Request
1383
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::RenewCertificateOrderRequest.mapper()
1384
+ request_content = @client.serialize(request_mapper, renew_certificate_order_request)
1385
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1386
+
1387
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/renew'
1388
+
1389
+ request_url = @base_url || @client.base_url
1390
+
1391
+ options = {
1392
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1393
+ path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id},
1394
+ query_params: {'api-version' => @client.api_version},
1395
+ body: request_content,
1396
+ headers: request_headers.merge(custom_headers || {}),
1397
+ base_url: request_url
1398
+ }
1399
+ promise = @client.make_request_async(:post, path_template, options)
1400
+
1401
+ promise = promise.then do |result|
1402
+ http_response = result.response
1403
+ status_code = http_response.status
1404
+ response_content = http_response.body
1405
+ unless status_code == 204
1406
+ error_model = JSON.load(response_content)
1407
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1408
+ end
1409
+
1410
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1411
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1412
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1413
+
1414
+ result
1415
+ end
1416
+
1417
+ promise.execute
1418
+ end
1419
+
1420
+ #
1421
+ # Resend certificate email.
1422
+ #
1423
+ # Description for Resend certificate email.
1424
+ #
1425
+ # @param resource_group_name [String] Name of the resource group to which the
1426
+ # resource belongs.
1427
+ # @param certificate_order_name [String] Name of the certificate order.
1428
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1429
+ # will be added to the HTTP request.
1430
+ #
1431
+ #
1432
+ def resend_email(resource_group_name, certificate_order_name, custom_headers:nil)
1433
+ response = resend_email_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value!
1434
+ nil
1435
+ end
1436
+
1437
+ #
1438
+ # Resend certificate email.
1439
+ #
1440
+ # Description for Resend certificate email.
1441
+ #
1442
+ # @param resource_group_name [String] Name of the resource group to which the
1443
+ # resource belongs.
1444
+ # @param certificate_order_name [String] Name of the certificate order.
1445
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1446
+ # will be added to the HTTP request.
1447
+ #
1448
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1449
+ #
1450
+ def resend_email_with_http_info(resource_group_name, certificate_order_name, custom_headers:nil)
1451
+ resend_email_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value!
1452
+ end
1453
+
1454
+ #
1455
+ # Resend certificate email.
1456
+ #
1457
+ # Description for Resend certificate email.
1458
+ #
1459
+ # @param resource_group_name [String] Name of the resource group to which the
1460
+ # resource belongs.
1461
+ # @param certificate_order_name [String] Name of the certificate order.
1462
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1463
+ # to the HTTP request.
1464
+ #
1465
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1466
+ #
1467
+ def resend_email_async(resource_group_name, certificate_order_name, custom_headers:nil)
1468
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1469
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1470
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1471
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1472
+ fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil?
1473
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1474
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1475
+
1476
+
1477
+ request_headers = {}
1478
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1479
+
1480
+ # Set Headers
1481
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1482
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1483
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendEmail'
1484
+
1485
+ request_url = @base_url || @client.base_url
1486
+
1487
+ options = {
1488
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1489
+ path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id},
1490
+ query_params: {'api-version' => @client.api_version},
1491
+ headers: request_headers.merge(custom_headers || {}),
1492
+ base_url: request_url
1493
+ }
1494
+ promise = @client.make_request_async(:post, path_template, options)
1495
+
1496
+ promise = promise.then do |result|
1497
+ http_response = result.response
1498
+ status_code = http_response.status
1499
+ response_content = http_response.body
1500
+ unless status_code == 204
1501
+ error_model = JSON.load(response_content)
1502
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1503
+ end
1504
+
1505
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1506
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1507
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1508
+
1509
+ result
1510
+ end
1511
+
1512
+ promise.execute
1513
+ end
1514
+
1515
+ #
1516
+ # Verify domain ownership for this certificate order.
1517
+ #
1518
+ # Description for Verify domain ownership for this certificate order.
1519
+ #
1520
+ # @param resource_group_name [String] Name of the resource group to which the
1521
+ # resource belongs.
1522
+ # @param certificate_order_name [String] Name of the certificate order.
1523
+ # @param name_identifier [NameIdentifier] Email address
1524
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1525
+ # will be added to the HTTP request.
1526
+ #
1527
+ #
1528
+ def resend_request_emails(resource_group_name, certificate_order_name, name_identifier, custom_headers:nil)
1529
+ response = resend_request_emails_async(resource_group_name, certificate_order_name, name_identifier, custom_headers:custom_headers).value!
1530
+ nil
1531
+ end
1532
+
1533
+ #
1534
+ # Verify domain ownership for this certificate order.
1535
+ #
1536
+ # Description for Verify domain ownership for this certificate order.
1537
+ #
1538
+ # @param resource_group_name [String] Name of the resource group to which the
1539
+ # resource belongs.
1540
+ # @param certificate_order_name [String] Name of the certificate order.
1541
+ # @param name_identifier [NameIdentifier] Email address
1542
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1543
+ # will be added to the HTTP request.
1544
+ #
1545
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1546
+ #
1547
+ def resend_request_emails_with_http_info(resource_group_name, certificate_order_name, name_identifier, custom_headers:nil)
1548
+ resend_request_emails_async(resource_group_name, certificate_order_name, name_identifier, custom_headers:custom_headers).value!
1549
+ end
1550
+
1551
+ #
1552
+ # Verify domain ownership for this certificate order.
1553
+ #
1554
+ # Description for Verify domain ownership for this certificate order.
1555
+ #
1556
+ # @param resource_group_name [String] Name of the resource group to which the
1557
+ # resource belongs.
1558
+ # @param certificate_order_name [String] Name of the certificate order.
1559
+ # @param name_identifier [NameIdentifier] Email address
1560
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1561
+ # to the HTTP request.
1562
+ #
1563
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1564
+ #
1565
+ def resend_request_emails_async(resource_group_name, certificate_order_name, name_identifier, custom_headers:nil)
1566
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1567
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1568
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1569
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1570
+ fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil?
1571
+ fail ArgumentError, 'name_identifier is nil' if name_identifier.nil?
1572
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1573
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1574
+
1575
+
1576
+ request_headers = {}
1577
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1578
+
1579
+ # Set Headers
1580
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1581
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1582
+
1583
+ # Serialize Request
1584
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::NameIdentifier.mapper()
1585
+ request_content = @client.serialize(request_mapper, name_identifier)
1586
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1587
+
1588
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendRequestEmails'
1589
+
1590
+ request_url = @base_url || @client.base_url
1591
+
1592
+ options = {
1593
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1594
+ path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id},
1595
+ query_params: {'api-version' => @client.api_version},
1596
+ body: request_content,
1597
+ headers: request_headers.merge(custom_headers || {}),
1598
+ base_url: request_url
1599
+ }
1600
+ promise = @client.make_request_async(:post, path_template, options)
1601
+
1602
+ promise = promise.then do |result|
1603
+ http_response = result.response
1604
+ status_code = http_response.status
1605
+ response_content = http_response.body
1606
+ unless status_code == 204
1607
+ error_model = JSON.load(response_content)
1608
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1609
+ end
1610
+
1611
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1612
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1613
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1614
+
1615
+ result
1616
+ end
1617
+
1618
+ promise.execute
1619
+ end
1620
+
1621
+ #
1622
+ # Verify domain ownership for this certificate order.
1623
+ #
1624
+ # Description for Verify domain ownership for this certificate order.
1625
+ #
1626
+ # @param resource_group_name [String] Name of the resource group to which the
1627
+ # resource belongs.
1628
+ # @param certificate_order_name [String] Name of the certificate order.
1629
+ # @param site_seal_request [SiteSealRequest] Site seal request.
1630
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1631
+ # will be added to the HTTP request.
1632
+ #
1633
+ # @return [SiteSeal] operation results.
1634
+ #
1635
+ def retrieve_site_seal(resource_group_name, certificate_order_name, site_seal_request, custom_headers:nil)
1636
+ response = retrieve_site_seal_async(resource_group_name, certificate_order_name, site_seal_request, custom_headers:custom_headers).value!
1637
+ response.body unless response.nil?
1638
+ end
1639
+
1640
+ #
1641
+ # Verify domain ownership for this certificate order.
1642
+ #
1643
+ # Description for Verify domain ownership for this certificate order.
1644
+ #
1645
+ # @param resource_group_name [String] Name of the resource group to which the
1646
+ # resource belongs.
1647
+ # @param certificate_order_name [String] Name of the certificate order.
1648
+ # @param site_seal_request [SiteSealRequest] Site seal request.
1649
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1650
+ # will be added to the HTTP request.
1651
+ #
1652
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1653
+ #
1654
+ def retrieve_site_seal_with_http_info(resource_group_name, certificate_order_name, site_seal_request, custom_headers:nil)
1655
+ retrieve_site_seal_async(resource_group_name, certificate_order_name, site_seal_request, custom_headers:custom_headers).value!
1656
+ end
1657
+
1658
+ #
1659
+ # Verify domain ownership for this certificate order.
1660
+ #
1661
+ # Description for Verify domain ownership for this certificate order.
1662
+ #
1663
+ # @param resource_group_name [String] Name of the resource group to which the
1664
+ # resource belongs.
1665
+ # @param certificate_order_name [String] Name of the certificate order.
1666
+ # @param site_seal_request [SiteSealRequest] Site seal request.
1667
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1668
+ # to the HTTP request.
1669
+ #
1670
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1671
+ #
1672
+ def retrieve_site_seal_async(resource_group_name, certificate_order_name, site_seal_request, custom_headers:nil)
1673
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1674
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1675
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1676
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1677
+ fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil?
1678
+ fail ArgumentError, 'site_seal_request is nil' if site_seal_request.nil?
1679
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1680
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1681
+
1682
+
1683
+ request_headers = {}
1684
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1685
+
1686
+ # Set Headers
1687
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1688
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1689
+
1690
+ # Serialize Request
1691
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::SiteSealRequest.mapper()
1692
+ request_content = @client.serialize(request_mapper, site_seal_request)
1693
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1694
+
1695
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/retrieveSiteSeal'
1696
+
1697
+ request_url = @base_url || @client.base_url
1698
+
1699
+ options = {
1700
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1701
+ path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id},
1702
+ query_params: {'api-version' => @client.api_version},
1703
+ body: request_content,
1704
+ headers: request_headers.merge(custom_headers || {}),
1705
+ base_url: request_url
1706
+ }
1707
+ promise = @client.make_request_async(:post, path_template, options)
1708
+
1709
+ promise = promise.then do |result|
1710
+ http_response = result.response
1711
+ status_code = http_response.status
1712
+ response_content = http_response.body
1713
+ unless status_code == 200
1714
+ error_model = JSON.load(response_content)
1715
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1716
+ end
1717
+
1718
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1719
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1720
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1721
+ # Deserialize Response
1722
+ if status_code == 200
1723
+ begin
1724
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1725
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::SiteSeal.mapper()
1726
+ result.body = @client.deserialize(result_mapper, parsed_response)
1727
+ rescue Exception => e
1728
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1729
+ end
1730
+ end
1731
+
1732
+ result
1733
+ end
1734
+
1735
+ promise.execute
1736
+ end
1737
+
1738
+ #
1739
+ # Verify domain ownership for this certificate order.
1740
+ #
1741
+ # Description for Verify domain ownership for this certificate order.
1742
+ #
1743
+ # @param resource_group_name [String] Name of the resource group to which the
1744
+ # resource belongs.
1745
+ # @param certificate_order_name [String] Name of the certificate order.
1746
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1747
+ # will be added to the HTTP request.
1748
+ #
1749
+ #
1750
+ def verify_domain_ownership(resource_group_name, certificate_order_name, custom_headers:nil)
1751
+ response = verify_domain_ownership_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value!
1752
+ nil
1753
+ end
1754
+
1755
+ #
1756
+ # Verify domain ownership for this certificate order.
1757
+ #
1758
+ # Description for Verify domain ownership for this certificate order.
1759
+ #
1760
+ # @param resource_group_name [String] Name of the resource group to which the
1761
+ # resource belongs.
1762
+ # @param certificate_order_name [String] Name of the certificate order.
1763
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1764
+ # will be added to the HTTP request.
1765
+ #
1766
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1767
+ #
1768
+ def verify_domain_ownership_with_http_info(resource_group_name, certificate_order_name, custom_headers:nil)
1769
+ verify_domain_ownership_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value!
1770
+ end
1771
+
1772
+ #
1773
+ # Verify domain ownership for this certificate order.
1774
+ #
1775
+ # Description for Verify domain ownership for this certificate order.
1776
+ #
1777
+ # @param resource_group_name [String] Name of the resource group to which the
1778
+ # resource belongs.
1779
+ # @param certificate_order_name [String] Name of the certificate order.
1780
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1781
+ # to the HTTP request.
1782
+ #
1783
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1784
+ #
1785
+ def verify_domain_ownership_async(resource_group_name, certificate_order_name, custom_headers:nil)
1786
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1787
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1788
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1789
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1790
+ fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil?
1791
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1792
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1793
+
1794
+
1795
+ request_headers = {}
1796
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1797
+
1798
+ # Set Headers
1799
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1800
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1801
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/verifyDomainOwnership'
1802
+
1803
+ request_url = @base_url || @client.base_url
1804
+
1805
+ options = {
1806
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1807
+ path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id},
1808
+ query_params: {'api-version' => @client.api_version},
1809
+ headers: request_headers.merge(custom_headers || {}),
1810
+ base_url: request_url
1811
+ }
1812
+ promise = @client.make_request_async(:post, path_template, options)
1813
+
1814
+ promise = promise.then do |result|
1815
+ http_response = result.response
1816
+ status_code = http_response.status
1817
+ response_content = http_response.body
1818
+ unless status_code == 204
1819
+ error_model = JSON.load(response_content)
1820
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1821
+ end
1822
+
1823
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1824
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1825
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1826
+
1827
+ result
1828
+ end
1829
+
1830
+ promise.execute
1831
+ end
1832
+
1833
+ #
1834
+ # Retrieve the list of certificate actions.
1835
+ #
1836
+ # Description for Retrieve the list of certificate actions.
1837
+ #
1838
+ # @param resource_group_name [String] Name of the resource group to which the
1839
+ # resource belongs.
1840
+ # @param name [String] Name of the certificate order.
1841
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1842
+ # will be added to the HTTP request.
1843
+ #
1844
+ # @return [Array] operation results.
1845
+ #
1846
+ def retrieve_certificate_actions(resource_group_name, name, custom_headers:nil)
1847
+ response = retrieve_certificate_actions_async(resource_group_name, name, custom_headers:custom_headers).value!
1848
+ response.body unless response.nil?
1849
+ end
1850
+
1851
+ #
1852
+ # Retrieve the list of certificate actions.
1853
+ #
1854
+ # Description for Retrieve the list of certificate actions.
1855
+ #
1856
+ # @param resource_group_name [String] Name of the resource group to which the
1857
+ # resource belongs.
1858
+ # @param name [String] Name of the certificate order.
1859
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1860
+ # will be added to the HTTP request.
1861
+ #
1862
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1863
+ #
1864
+ def retrieve_certificate_actions_with_http_info(resource_group_name, name, custom_headers:nil)
1865
+ retrieve_certificate_actions_async(resource_group_name, name, custom_headers:custom_headers).value!
1866
+ end
1867
+
1868
+ #
1869
+ # Retrieve the list of certificate actions.
1870
+ #
1871
+ # Description for Retrieve the list of certificate actions.
1872
+ #
1873
+ # @param resource_group_name [String] Name of the resource group to which the
1874
+ # resource belongs.
1875
+ # @param name [String] Name of the certificate order.
1876
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1877
+ # to the HTTP request.
1878
+ #
1879
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1880
+ #
1881
+ def retrieve_certificate_actions_async(resource_group_name, name, custom_headers:nil)
1882
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1883
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1884
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1885
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1886
+ fail ArgumentError, 'name is nil' if name.nil?
1887
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1888
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1889
+
1890
+
1891
+ request_headers = {}
1892
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1893
+
1894
+ # Set Headers
1895
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1896
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1897
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveCertificateActions'
1898
+
1899
+ request_url = @base_url || @client.base_url
1900
+
1901
+ options = {
1902
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1903
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
1904
+ query_params: {'api-version' => @client.api_version},
1905
+ headers: request_headers.merge(custom_headers || {}),
1906
+ base_url: request_url
1907
+ }
1908
+ promise = @client.make_request_async(:post, path_template, options)
1909
+
1910
+ promise = promise.then do |result|
1911
+ http_response = result.response
1912
+ status_code = http_response.status
1913
+ response_content = http_response.body
1914
+ unless status_code == 200
1915
+ error_model = JSON.load(response_content)
1916
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1917
+ end
1918
+
1919
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1920
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1921
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1922
+ # Deserialize Response
1923
+ if status_code == 200
1924
+ begin
1925
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1926
+ result_mapper = {
1927
+ client_side_validation: true,
1928
+ required: false,
1929
+ serialized_name: 'parsed_response',
1930
+ type: {
1931
+ name: 'Sequence',
1932
+ element: {
1933
+ client_side_validation: true,
1934
+ required: false,
1935
+ serialized_name: 'CertificateOrderActionElementType',
1936
+ type: {
1937
+ name: 'Composite',
1938
+ class_name: 'CertificateOrderAction'
1939
+ }
1940
+ }
1941
+ }
1942
+ }
1943
+ result.body = @client.deserialize(result_mapper, parsed_response)
1944
+ rescue Exception => e
1945
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1946
+ end
1947
+ end
1948
+
1949
+ result
1950
+ end
1951
+
1952
+ promise.execute
1953
+ end
1954
+
1955
+ #
1956
+ # Retrieve email history.
1957
+ #
1958
+ # Description for Retrieve email history.
1959
+ #
1960
+ # @param resource_group_name [String] Name of the resource group to which the
1961
+ # resource belongs.
1962
+ # @param name [String] Name of the certificate order.
1963
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1964
+ # will be added to the HTTP request.
1965
+ #
1966
+ # @return [Array] operation results.
1967
+ #
1968
+ def retrieve_certificate_email_history(resource_group_name, name, custom_headers:nil)
1969
+ response = retrieve_certificate_email_history_async(resource_group_name, name, custom_headers:custom_headers).value!
1970
+ response.body unless response.nil?
1971
+ end
1972
+
1973
+ #
1974
+ # Retrieve email history.
1975
+ #
1976
+ # Description for Retrieve email history.
1977
+ #
1978
+ # @param resource_group_name [String] Name of the resource group to which the
1979
+ # resource belongs.
1980
+ # @param name [String] Name of the certificate order.
1981
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1982
+ # will be added to the HTTP request.
1983
+ #
1984
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1985
+ #
1986
+ def retrieve_certificate_email_history_with_http_info(resource_group_name, name, custom_headers:nil)
1987
+ retrieve_certificate_email_history_async(resource_group_name, name, custom_headers:custom_headers).value!
1988
+ end
1989
+
1990
+ #
1991
+ # Retrieve email history.
1992
+ #
1993
+ # Description for Retrieve email history.
1994
+ #
1995
+ # @param resource_group_name [String] Name of the resource group to which the
1996
+ # resource belongs.
1997
+ # @param name [String] Name of the certificate order.
1998
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1999
+ # to the HTTP request.
2000
+ #
2001
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2002
+ #
2003
+ def retrieve_certificate_email_history_async(resource_group_name, name, custom_headers:nil)
2004
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2005
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2006
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2007
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2008
+ fail ArgumentError, 'name is nil' if name.nil?
2009
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2010
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2011
+
2012
+
2013
+ request_headers = {}
2014
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2015
+
2016
+ # Set Headers
2017
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2018
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2019
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveEmailHistory'
2020
+
2021
+ request_url = @base_url || @client.base_url
2022
+
2023
+ options = {
2024
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2025
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
2026
+ query_params: {'api-version' => @client.api_version},
2027
+ headers: request_headers.merge(custom_headers || {}),
2028
+ base_url: request_url
2029
+ }
2030
+ promise = @client.make_request_async(:post, path_template, options)
2031
+
2032
+ promise = promise.then do |result|
2033
+ http_response = result.response
2034
+ status_code = http_response.status
2035
+ response_content = http_response.body
2036
+ unless status_code == 200
2037
+ error_model = JSON.load(response_content)
2038
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2039
+ end
2040
+
2041
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2042
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2043
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2044
+ # Deserialize Response
2045
+ if status_code == 200
2046
+ begin
2047
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2048
+ result_mapper = {
2049
+ client_side_validation: true,
2050
+ required: false,
2051
+ serialized_name: 'parsed_response',
2052
+ type: {
2053
+ name: 'Sequence',
2054
+ element: {
2055
+ client_side_validation: true,
2056
+ required: false,
2057
+ serialized_name: 'CertificateEmailElementType',
2058
+ type: {
2059
+ name: 'Composite',
2060
+ class_name: 'CertificateEmail'
2061
+ }
2062
+ }
2063
+ }
2064
+ }
2065
+ result.body = @client.deserialize(result_mapper, parsed_response)
2066
+ rescue Exception => e
2067
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2068
+ end
2069
+ end
2070
+
2071
+ result
2072
+ end
2073
+
2074
+ promise.execute
2075
+ end
2076
+
2077
+ #
2078
+ # Create or update a certificate purchase order.
2079
+ #
2080
+ # Description for Create or update a certificate purchase order.
2081
+ #
2082
+ # @param resource_group_name [String] Name of the resource group to which the
2083
+ # resource belongs.
2084
+ # @param certificate_order_name [String] Name of the certificate order.
2085
+ # @param certificate_distinguished_name [AppServiceCertificateOrder]
2086
+ # Distinguished name to use for the certificate order.
2087
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2088
+ # will be added to the HTTP request.
2089
+ #
2090
+ # @return [AppServiceCertificateOrder] operation results.
2091
+ #
2092
+ def begin_create_or_update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:nil)
2093
+ response = begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:custom_headers).value!
2094
+ response.body unless response.nil?
2095
+ end
2096
+
2097
+ #
2098
+ # Create or update a certificate purchase order.
2099
+ #
2100
+ # Description for Create or update a certificate purchase order.
2101
+ #
2102
+ # @param resource_group_name [String] Name of the resource group to which the
2103
+ # resource belongs.
2104
+ # @param certificate_order_name [String] Name of the certificate order.
2105
+ # @param certificate_distinguished_name [AppServiceCertificateOrder]
2106
+ # Distinguished name to use for the certificate order.
2107
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2108
+ # will be added to the HTTP request.
2109
+ #
2110
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2111
+ #
2112
+ def begin_create_or_update_with_http_info(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:nil)
2113
+ begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:custom_headers).value!
2114
+ end
2115
+
2116
+ #
2117
+ # Create or update a certificate purchase order.
2118
+ #
2119
+ # Description for Create or update a certificate purchase order.
2120
+ #
2121
+ # @param resource_group_name [String] Name of the resource group to which the
2122
+ # resource belongs.
2123
+ # @param certificate_order_name [String] Name of the certificate order.
2124
+ # @param certificate_distinguished_name [AppServiceCertificateOrder]
2125
+ # Distinguished name to use for the certificate order.
2126
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2127
+ # to the HTTP request.
2128
+ #
2129
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2130
+ #
2131
+ def begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:nil)
2132
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2133
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2134
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2135
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2136
+ fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil?
2137
+ fail ArgumentError, 'certificate_distinguished_name is nil' if certificate_distinguished_name.nil?
2138
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2139
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2140
+
2141
+
2142
+ request_headers = {}
2143
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2144
+
2145
+ # Set Headers
2146
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2147
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2148
+
2149
+ # Serialize Request
2150
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateOrder.mapper()
2151
+ request_content = @client.serialize(request_mapper, certificate_distinguished_name)
2152
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2153
+
2154
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}'
2155
+
2156
+ request_url = @base_url || @client.base_url
2157
+
2158
+ options = {
2159
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2160
+ path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id},
2161
+ query_params: {'api-version' => @client.api_version},
2162
+ body: request_content,
2163
+ headers: request_headers.merge(custom_headers || {}),
2164
+ base_url: request_url
2165
+ }
2166
+ promise = @client.make_request_async(:put, path_template, options)
2167
+
2168
+ promise = promise.then do |result|
2169
+ http_response = result.response
2170
+ status_code = http_response.status
2171
+ response_content = http_response.body
2172
+ unless status_code == 200 || status_code == 201
2173
+ error_model = JSON.load(response_content)
2174
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2175
+ end
2176
+
2177
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2178
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2179
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2180
+ # Deserialize Response
2181
+ if status_code == 200
2182
+ begin
2183
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2184
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateOrder.mapper()
2185
+ result.body = @client.deserialize(result_mapper, parsed_response)
2186
+ rescue Exception => e
2187
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2188
+ end
2189
+ end
2190
+ # Deserialize Response
2191
+ if status_code == 201
2192
+ begin
2193
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2194
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateOrder.mapper()
2195
+ result.body = @client.deserialize(result_mapper, parsed_response)
2196
+ rescue Exception => e
2197
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2198
+ end
2199
+ end
2200
+
2201
+ result
2202
+ end
2203
+
2204
+ promise.execute
2205
+ end
2206
+
2207
+ #
2208
+ # Creates or updates a certificate and associates with key vault secret.
2209
+ #
2210
+ # Description for Creates or updates a certificate and associates with key
2211
+ # vault secret.
2212
+ #
2213
+ # @param resource_group_name [String] Name of the resource group to which the
2214
+ # resource belongs.
2215
+ # @param certificate_order_name [String] Name of the certificate order.
2216
+ # @param name [String] Name of the certificate.
2217
+ # @param key_vault_certificate [AppServiceCertificateResource] Key vault
2218
+ # certificate resource Id.
2219
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2220
+ # will be added to the HTTP request.
2221
+ #
2222
+ # @return [AppServiceCertificateResource] operation results.
2223
+ #
2224
+ def begin_create_or_update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil)
2225
+ response = begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:custom_headers).value!
2226
+ response.body unless response.nil?
2227
+ end
2228
+
2229
+ #
2230
+ # Creates or updates a certificate and associates with key vault secret.
2231
+ #
2232
+ # Description for Creates or updates a certificate and associates with key
2233
+ # vault secret.
2234
+ #
2235
+ # @param resource_group_name [String] Name of the resource group to which the
2236
+ # resource belongs.
2237
+ # @param certificate_order_name [String] Name of the certificate order.
2238
+ # @param name [String] Name of the certificate.
2239
+ # @param key_vault_certificate [AppServiceCertificateResource] Key vault
2240
+ # certificate resource Id.
2241
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2242
+ # will be added to the HTTP request.
2243
+ #
2244
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2245
+ #
2246
+ def begin_create_or_update_certificate_with_http_info(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil)
2247
+ begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:custom_headers).value!
2248
+ end
2249
+
2250
+ #
2251
+ # Creates or updates a certificate and associates with key vault secret.
2252
+ #
2253
+ # Description for Creates or updates a certificate and associates with key
2254
+ # vault secret.
2255
+ #
2256
+ # @param resource_group_name [String] Name of the resource group to which the
2257
+ # resource belongs.
2258
+ # @param certificate_order_name [String] Name of the certificate order.
2259
+ # @param name [String] Name of the certificate.
2260
+ # @param key_vault_certificate [AppServiceCertificateResource] Key vault
2261
+ # certificate resource Id.
2262
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2263
+ # to the HTTP request.
2264
+ #
2265
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2266
+ #
2267
+ def begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil)
2268
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2269
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2270
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2271
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2272
+ fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil?
2273
+ fail ArgumentError, 'name is nil' if name.nil?
2274
+ fail ArgumentError, 'key_vault_certificate is nil' if key_vault_certificate.nil?
2275
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2276
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2277
+
2278
+
2279
+ request_headers = {}
2280
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2281
+
2282
+ # Set Headers
2283
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2284
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2285
+
2286
+ # Serialize Request
2287
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateResource.mapper()
2288
+ request_content = @client.serialize(request_mapper, key_vault_certificate)
2289
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2290
+
2291
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}'
2292
+
2293
+ request_url = @base_url || @client.base_url
2294
+
2295
+ options = {
2296
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2297
+ path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'name' => name,'subscriptionId' => @client.subscription_id},
2298
+ query_params: {'api-version' => @client.api_version},
2299
+ body: request_content,
2300
+ headers: request_headers.merge(custom_headers || {}),
2301
+ base_url: request_url
2302
+ }
2303
+ promise = @client.make_request_async(:put, path_template, options)
2304
+
2305
+ promise = promise.then do |result|
2306
+ http_response = result.response
2307
+ status_code = http_response.status
2308
+ response_content = http_response.body
2309
+ unless status_code == 200 || status_code == 201
2310
+ error_model = JSON.load(response_content)
2311
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2312
+ end
2313
+
2314
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2315
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2316
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2317
+ # Deserialize Response
2318
+ if status_code == 200
2319
+ begin
2320
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2321
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateResource.mapper()
2322
+ result.body = @client.deserialize(result_mapper, parsed_response)
2323
+ rescue Exception => e
2324
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2325
+ end
2326
+ end
2327
+ # Deserialize Response
2328
+ if status_code == 201
2329
+ begin
2330
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2331
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateResource.mapper()
2332
+ result.body = @client.deserialize(result_mapper, parsed_response)
2333
+ rescue Exception => e
2334
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2335
+ end
2336
+ end
2337
+
2338
+ result
2339
+ end
2340
+
2341
+ promise.execute
2342
+ end
2343
+
2344
+ #
2345
+ # List all certificate orders in a subscription.
2346
+ #
2347
+ # Description for List all certificate orders in a subscription.
2348
+ #
2349
+ # @param next_page_link [String] The NextLink from the previous successful call
2350
+ # to List operation.
2351
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2352
+ # will be added to the HTTP request.
2353
+ #
2354
+ # @return [AppServiceCertificateOrderCollection] operation results.
2355
+ #
2356
+ def list_next(next_page_link, custom_headers:nil)
2357
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
2358
+ response.body unless response.nil?
2359
+ end
2360
+
2361
+ #
2362
+ # List all certificate orders in a subscription.
2363
+ #
2364
+ # Description for List all certificate orders in a subscription.
2365
+ #
2366
+ # @param next_page_link [String] The NextLink from the previous successful call
2367
+ # to List operation.
2368
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2369
+ # will be added to the HTTP request.
2370
+ #
2371
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2372
+ #
2373
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
2374
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
2375
+ end
2376
+
2377
+ #
2378
+ # List all certificate orders in a subscription.
2379
+ #
2380
+ # Description for List all certificate orders in a subscription.
2381
+ #
2382
+ # @param next_page_link [String] The NextLink from the previous successful call
2383
+ # to List operation.
2384
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2385
+ # to the HTTP request.
2386
+ #
2387
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2388
+ #
2389
+ def list_next_async(next_page_link, custom_headers:nil)
2390
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2391
+
2392
+
2393
+ request_headers = {}
2394
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2395
+
2396
+ # Set Headers
2397
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2398
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2399
+ path_template = '{nextLink}'
2400
+
2401
+ request_url = @base_url || @client.base_url
2402
+
2403
+ options = {
2404
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2405
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2406
+ headers: request_headers.merge(custom_headers || {}),
2407
+ base_url: request_url
2408
+ }
2409
+ promise = @client.make_request_async(:get, path_template, options)
2410
+
2411
+ promise = promise.then do |result|
2412
+ http_response = result.response
2413
+ status_code = http_response.status
2414
+ response_content = http_response.body
2415
+ unless status_code == 200
2416
+ error_model = JSON.load(response_content)
2417
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2418
+ end
2419
+
2420
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2421
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2422
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2423
+ # Deserialize Response
2424
+ if status_code == 200
2425
+ begin
2426
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2427
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateOrderCollection.mapper()
2428
+ result.body = @client.deserialize(result_mapper, parsed_response)
2429
+ rescue Exception => e
2430
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2431
+ end
2432
+ end
2433
+
2434
+ result
2435
+ end
2436
+
2437
+ promise.execute
2438
+ end
2439
+
2440
+ #
2441
+ # Get certificate orders in a resource group.
2442
+ #
2443
+ # Description for Get certificate orders in a resource group.
2444
+ #
2445
+ # @param next_page_link [String] The NextLink from the previous successful call
2446
+ # to List operation.
2447
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2448
+ # will be added to the HTTP request.
2449
+ #
2450
+ # @return [AppServiceCertificateOrderCollection] operation results.
2451
+ #
2452
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
2453
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
2454
+ response.body unless response.nil?
2455
+ end
2456
+
2457
+ #
2458
+ # Get certificate orders in a resource group.
2459
+ #
2460
+ # Description for Get certificate orders in a resource group.
2461
+ #
2462
+ # @param next_page_link [String] The NextLink from the previous successful call
2463
+ # to List operation.
2464
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2465
+ # will be added to the HTTP request.
2466
+ #
2467
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2468
+ #
2469
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
2470
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
2471
+ end
2472
+
2473
+ #
2474
+ # Get certificate orders in a resource group.
2475
+ #
2476
+ # Description for Get certificate orders in a resource group.
2477
+ #
2478
+ # @param next_page_link [String] The NextLink from the previous successful call
2479
+ # to List operation.
2480
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2481
+ # to the HTTP request.
2482
+ #
2483
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2484
+ #
2485
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
2486
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2487
+
2488
+
2489
+ request_headers = {}
2490
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2491
+
2492
+ # Set Headers
2493
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2494
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2495
+ path_template = '{nextLink}'
2496
+
2497
+ request_url = @base_url || @client.base_url
2498
+
2499
+ options = {
2500
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2501
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2502
+ headers: request_headers.merge(custom_headers || {}),
2503
+ base_url: request_url
2504
+ }
2505
+ promise = @client.make_request_async(:get, path_template, options)
2506
+
2507
+ promise = promise.then do |result|
2508
+ http_response = result.response
2509
+ status_code = http_response.status
2510
+ response_content = http_response.body
2511
+ unless status_code == 200
2512
+ error_model = JSON.load(response_content)
2513
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2514
+ end
2515
+
2516
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2517
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2518
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2519
+ # Deserialize Response
2520
+ if status_code == 200
2521
+ begin
2522
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2523
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateOrderCollection.mapper()
2524
+ result.body = @client.deserialize(result_mapper, parsed_response)
2525
+ rescue Exception => e
2526
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2527
+ end
2528
+ end
2529
+
2530
+ result
2531
+ end
2532
+
2533
+ promise.execute
2534
+ end
2535
+
2536
+ #
2537
+ # List all certificates associated with a certificate order.
2538
+ #
2539
+ # Description for List all certificates associated with a certificate order.
2540
+ #
2541
+ # @param next_page_link [String] The NextLink from the previous successful call
2542
+ # to List operation.
2543
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2544
+ # will be added to the HTTP request.
2545
+ #
2546
+ # @return [AppServiceCertificateCollection] operation results.
2547
+ #
2548
+ def list_certificates_next(next_page_link, custom_headers:nil)
2549
+ response = list_certificates_next_async(next_page_link, custom_headers:custom_headers).value!
2550
+ response.body unless response.nil?
2551
+ end
2552
+
2553
+ #
2554
+ # List all certificates associated with a certificate order.
2555
+ #
2556
+ # Description for List all certificates associated with a certificate order.
2557
+ #
2558
+ # @param next_page_link [String] The NextLink from the previous successful call
2559
+ # to List operation.
2560
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2561
+ # will be added to the HTTP request.
2562
+ #
2563
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2564
+ #
2565
+ def list_certificates_next_with_http_info(next_page_link, custom_headers:nil)
2566
+ list_certificates_next_async(next_page_link, custom_headers:custom_headers).value!
2567
+ end
2568
+
2569
+ #
2570
+ # List all certificates associated with a certificate order.
2571
+ #
2572
+ # Description for List all certificates associated with a certificate order.
2573
+ #
2574
+ # @param next_page_link [String] The NextLink from the previous successful call
2575
+ # to List operation.
2576
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2577
+ # to the HTTP request.
2578
+ #
2579
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2580
+ #
2581
+ def list_certificates_next_async(next_page_link, custom_headers:nil)
2582
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2583
+
2584
+
2585
+ request_headers = {}
2586
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2587
+
2588
+ # Set Headers
2589
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2590
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2591
+ path_template = '{nextLink}'
2592
+
2593
+ request_url = @base_url || @client.base_url
2594
+
2595
+ options = {
2596
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2597
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2598
+ headers: request_headers.merge(custom_headers || {}),
2599
+ base_url: request_url
2600
+ }
2601
+ promise = @client.make_request_async(:get, path_template, options)
2602
+
2603
+ promise = promise.then do |result|
2604
+ http_response = result.response
2605
+ status_code = http_response.status
2606
+ response_content = http_response.body
2607
+ unless status_code == 200
2608
+ error_model = JSON.load(response_content)
2609
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2610
+ end
2611
+
2612
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2613
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2614
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2615
+ # Deserialize Response
2616
+ if status_code == 200
2617
+ begin
2618
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2619
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::AppServiceCertificateCollection.mapper()
2620
+ result.body = @client.deserialize(result_mapper, parsed_response)
2621
+ rescue Exception => e
2622
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2623
+ end
2624
+ end
2625
+
2626
+ result
2627
+ end
2628
+
2629
+ promise.execute
2630
+ end
2631
+
2632
+ #
2633
+ # List all certificate orders in a subscription.
2634
+ #
2635
+ # Description for List all certificate orders in a subscription.
2636
+ #
2637
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2638
+ # will be added to the HTTP request.
2639
+ #
2640
+ # @return [AppServiceCertificateOrderCollection] which provide lazy access to
2641
+ # pages of the response.
2642
+ #
2643
+ def list_as_lazy(custom_headers:nil)
2644
+ response = list_async(custom_headers:custom_headers).value!
2645
+ unless response.nil?
2646
+ page = response.body
2647
+ page.next_method = Proc.new do |next_page_link|
2648
+ list_next_async(next_page_link, custom_headers:custom_headers)
2649
+ end
2650
+ page
2651
+ end
2652
+ end
2653
+
2654
+ #
2655
+ # Get certificate orders in a resource group.
2656
+ #
2657
+ # Description for Get certificate orders in a resource group.
2658
+ #
2659
+ # @param resource_group_name [String] Name of the resource group to which the
2660
+ # resource belongs.
2661
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2662
+ # will be added to the HTTP request.
2663
+ #
2664
+ # @return [AppServiceCertificateOrderCollection] which provide lazy access to
2665
+ # pages of the response.
2666
+ #
2667
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
2668
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
2669
+ unless response.nil?
2670
+ page = response.body
2671
+ page.next_method = Proc.new do |next_page_link|
2672
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
2673
+ end
2674
+ page
2675
+ end
2676
+ end
2677
+
2678
+ #
2679
+ # List all certificates associated with a certificate order.
2680
+ #
2681
+ # Description for List all certificates associated with a certificate order.
2682
+ #
2683
+ # @param resource_group_name [String] Name of the resource group to which the
2684
+ # resource belongs.
2685
+ # @param certificate_order_name [String] Name of the certificate order.
2686
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2687
+ # will be added to the HTTP request.
2688
+ #
2689
+ # @return [AppServiceCertificateCollection] which provide lazy access to pages
2690
+ # of the response.
2691
+ #
2692
+ def list_certificates_as_lazy(resource_group_name, certificate_order_name, custom_headers:nil)
2693
+ response = list_certificates_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value!
2694
+ unless response.nil?
2695
+ page = response.body
2696
+ page.next_method = Proc.new do |next_page_link|
2697
+ list_certificates_next_async(next_page_link, custom_headers:custom_headers)
2698
+ end
2699
+ page
2700
+ end
2701
+ end
2702
+
2703
+ end
2704
+ end