azure_mgmt_web 0.17.3 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (532) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-01/generated/azure_mgmt_web/domain_registration_provider.rb +4 -0
  3. data/lib/2015-04-01/generated/azure_mgmt_web/domains.rb +38 -0
  4. data/lib/2015-04-01/generated/azure_mgmt_web/top_level_domains.rb +10 -0
  5. data/lib/2015-04-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  6. data/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +46 -0
  7. data/lib/2015-08-01/generated/azure_mgmt_web/certificate_registration_provider.rb +4 -0
  8. data/lib/2015-08-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  9. data/lib/2016-03-01/generated/azure_mgmt_web/billing_meters.rb +4 -0
  10. data/lib/2016-03-01/generated/azure_mgmt_web/certificates.rb +16 -0
  11. data/lib/2016-03-01/generated/azure_mgmt_web/deleted_web_apps.rb +4 -0
  12. data/lib/2016-03-01/generated/azure_mgmt_web/diagnostics.rb +66 -0
  13. data/lib/2016-03-01/generated/azure_mgmt_web/provider.rb +12 -0
  14. data/lib/2016-03-01/generated/azure_mgmt_web/recommendations.rb +24 -0
  15. data/lib/2016-03-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +20 -0
  16. data/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb +51 -5
  17. data/lib/2016-06-01/generated/azure_mgmt_web.rb +76 -0
  18. data/lib/2016-06-01/generated/azure_mgmt_web/connection_gateway_installations.rb +240 -0
  19. data/lib/2016-06-01/generated/azure_mgmt_web/connection_gateways.rb +682 -0
  20. data/lib/2016-06-01/generated/azure_mgmt_web/connections.rb +815 -0
  21. data/lib/2016-06-01/generated/azure_mgmt_web/custom_apis.rb +997 -0
  22. data/lib/2016-06-01/generated/azure_mgmt_web/logic_apps_management_client.rb +140 -0
  23. data/lib/2016-06-01/generated/azure_mgmt_web/managed_apis.rb +233 -0
  24. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition.rb +106 -0
  25. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition_collection.rb +55 -0
  26. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition_properties.rb +179 -0
  27. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_test_link.rb +57 -0
  28. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_oauth_settings.rb +130 -0
  29. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_oauth_settings_parameter.rb +68 -0
  30. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_reference.rb +118 -0
  31. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_backend_service.rb +46 -0
  32. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_definitions.rb +57 -0
  33. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_general_information.rb +90 -0
  34. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_metadata.rb +135 -0
  35. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_policies.rb +58 -0
  36. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_properties.rb +186 -0
  37. data/lib/2016-06-01/generated/azure_mgmt_web/models/api_type.rb +17 -0
  38. data/lib/2016-06-01/generated/azure_mgmt_web/models/confirm_consent_code_definition.rb +68 -0
  39. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_error.rb +116 -0
  40. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition.rb +106 -0
  41. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition_collection.rb +56 -0
  42. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition_properties.rb +122 -0
  43. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition.rb +106 -0
  44. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition_collection.rb +57 -0
  45. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition_properties.rb +123 -0
  46. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_reference.rb +73 -0
  47. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_parameter.rb +61 -0
  48. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_parameter_type.rb +23 -0
  49. data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_status_definition.rb +69 -0
  50. data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_collection.rb +55 -0
  51. data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_definition.rb +81 -0
  52. data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_parameter_definition.rb +82 -0
  53. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_definition.rb +106 -0
  54. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_definition_collection.rb +55 -0
  55. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_properties_definition.rb +196 -0
  56. data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_reference.rb +99 -0
  57. data/lib/2016-06-01/generated/azure_mgmt_web/models/link_state.rb +17 -0
  58. data/lib/2016-06-01/generated/azure_mgmt_web/models/list_connection_keys_definition.rb +105 -0
  59. data/lib/2016-06-01/generated/azure_mgmt_web/models/list_consent_links_definition.rb +55 -0
  60. data/lib/2016-06-01/generated/azure_mgmt_web/models/managed_api_definition.rb +106 -0
  61. data/lib/2016-06-01/generated/azure_mgmt_web/models/managed_api_definition_collection.rb +55 -0
  62. data/lib/2016-06-01/generated/azure_mgmt_web/models/resource_definition.rb +112 -0
  63. data/lib/2016-06-01/generated/azure_mgmt_web/models/resource_reference.rb +58 -0
  64. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_definition.rb +81 -0
  65. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_import_method.rb +17 -0
  66. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_service.rb +65 -0
  67. data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_service_collection.rb +55 -0
  68. data/lib/2016-06-01/generated/azure_mgmt_web/module_definition.rb +9 -0
  69. data/lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb +732 -0
  70. data/lib/2016-08-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  71. data/lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb +124 -0
  72. data/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb +74 -0
  73. data/lib/2016-09-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
  74. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +46 -0
  75. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb +128 -0
  76. data/lib/2018-02-01/generated/azure_mgmt_web/app_service_plans.rb +74 -0
  77. data/lib/2018-02-01/generated/azure_mgmt_web/certificate_registration_provider.rb +4 -0
  78. data/lib/2018-02-01/generated/azure_mgmt_web/certificates.rb +16 -0
  79. data/lib/2018-02-01/generated/azure_mgmt_web/deleted_web_apps.rb +4 -0
  80. data/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb +66 -0
  81. data/lib/2018-02-01/generated/azure_mgmt_web/domain_registration_provider.rb +4 -0
  82. data/lib/2018-02-01/generated/azure_mgmt_web/domains.rb +38 -0
  83. data/lib/2018-02-01/generated/azure_mgmt_web/provider.rb +12 -0
  84. data/lib/2018-02-01/generated/azure_mgmt_web/recommendations.rb +24 -0
  85. data/lib/2018-02-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +20 -0
  86. data/lib/2018-02-01/generated/azure_mgmt_web/top_level_domains.rb +10 -0
  87. data/lib/2018-02-01/generated/azure_mgmt_web/web_apps.rb +788 -0
  88. data/lib/2018-02-01/generated/azure_mgmt_web/web_site_management_client.rb +58 -6
  89. data/lib/2020-09-01/generated/azure_mgmt_web.rb +461 -0
  90. data/lib/2020-09-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +2704 -0
  91. data/lib/2020-09-01/generated/azure_mgmt_web/app_service_environments.rb +7327 -0
  92. data/lib/2020-09-01/generated/azure_mgmt_web/app_service_plans.rb +3918 -0
  93. data/lib/2020-09-01/generated/azure_mgmt_web/certificate_registration_provider.rb +247 -0
  94. data/lib/2020-09-01/generated/azure_mgmt_web/certificates.rb +898 -0
  95. data/lib/2020-09-01/generated/azure_mgmt_web/deleted_web_apps.rb +550 -0
  96. data/lib/2020-09-01/generated/azure_mgmt_web/diagnostics.rb +3664 -0
  97. data/lib/2020-09-01/generated/azure_mgmt_web/domain_registration_provider.rb +247 -0
  98. data/lib/2020-09-01/generated/azure_mgmt_web/domains.rb +2186 -0
  99. data/lib/2020-09-01/generated/azure_mgmt_web/models/abnormal_time_period.rb +98 -0
  100. data/lib/2020-09-01/generated/azure_mgmt_web/models/access_control_entry_action.rb +16 -0
  101. data/lib/2020-09-01/generated/azure_mgmt_web/models/address.rb +101 -0
  102. data/lib/2020-09-01/generated/azure_mgmt_web/models/address_response.rb +141 -0
  103. data/lib/2020-09-01/generated/azure_mgmt_web/models/allowed_audiences_validation.rb +99 -0
  104. data/lib/2020-09-01/generated/azure_mgmt_web/models/analysis_data.rb +118 -0
  105. data/lib/2020-09-01/generated/azure_mgmt_web/models/analysis_definition.rb +91 -0
  106. data/lib/2020-09-01/generated/azure_mgmt_web/models/api_definition_info.rb +46 -0
  107. data/lib/2020-09-01/generated/azure_mgmt_web/models/api_management_config.rb +46 -0
  108. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_registration.rb +102 -0
  109. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate.rb +76 -0
  110. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +99 -0
  111. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_order.rb +368 -0
  112. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +99 -0
  113. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_order_patch_resource.rb +344 -0
  114. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_patch_resource.rb +121 -0
  115. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_certificate_resource.rb +145 -0
  116. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_environment.rb +569 -0
  117. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb +99 -0
  118. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_environment_patch_resource.rb +613 -0
  119. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_environment_resource.rb +637 -0
  120. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_plan.rb +352 -0
  121. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_plan_collection.rb +99 -0
  122. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_plan_patch_resource.rb +318 -0
  123. data/lib/2020-09-01/generated/azure_mgmt_web/models/app_service_plan_restrictions.rb +20 -0
  124. data/lib/2020-09-01/generated/azure_mgmt_web/models/application_logs_config.rb +74 -0
  125. data/lib/2020-09-01/generated/azure_mgmt_web/models/application_stack.rb +109 -0
  126. data/lib/2020-09-01/generated/azure_mgmt_web/models/application_stack_collection.rb +99 -0
  127. data/lib/2020-09-01/generated/azure_mgmt_web/models/application_stack_resource.rb +153 -0
  128. data/lib/2020-09-01/generated/azure_mgmt_web/models/appservice_github_token.rb +91 -0
  129. data/lib/2020-09-01/generated/azure_mgmt_web/models/appservice_github_token_request.rb +57 -0
  130. data/lib/2020-09-01/generated/azure_mgmt_web/models/arm_id_wrapper.rb +47 -0
  131. data/lib/2020-09-01/generated/azure_mgmt_web/models/auth_platform.rb +113 -0
  132. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_action_type.rb +17 -0
  133. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_actions.rb +72 -0
  134. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_custom_action.rb +58 -0
  135. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_rules.rb +61 -0
  136. data/lib/2020-09-01/generated/azure_mgmt_web/models/auto_heal_triggers.rb +91 -0
  137. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_active_directory.rb +138 -0
  138. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_active_directory_login.rb +110 -0
  139. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_active_directory_registration.rb +124 -0
  140. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_active_directory_validation.rb +111 -0
  141. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb +73 -0
  142. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb +72 -0
  143. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_resource_type.rb +16 -0
  144. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_storage_info_value.rb +109 -0
  145. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_storage_property_dictionary_resource.rb +99 -0
  146. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_storage_state.rb +17 -0
  147. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_storage_type.rb +16 -0
  148. data/lib/2020-09-01/generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb +60 -0
  149. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_item.rb +266 -0
  150. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_item_collection.rb +99 -0
  151. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_item_status.rb +24 -0
  152. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_request.rb +148 -0
  153. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_restore_operation_type.rb +19 -0
  154. data/lib/2020-09-01/generated/azure_mgmt_web/models/backup_schedule.rb +116 -0
  155. data/lib/2020-09-01/generated/azure_mgmt_web/models/billing_meter.rb +146 -0
  156. data/lib/2020-09-01/generated/azure_mgmt_web/models/billing_meter_collection.rb +99 -0
  157. data/lib/2020-09-01/generated/azure_mgmt_web/models/blob_storage_token_store.rb +91 -0
  158. data/lib/2020-09-01/generated/azure_mgmt_web/models/build_status.rb +21 -0
  159. data/lib/2020-09-01/generated/azure_mgmt_web/models/built_in_authentication_provider.rb +20 -0
  160. data/lib/2020-09-01/generated/azure_mgmt_web/models/capability.rb +68 -0
  161. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate.rb +356 -0
  162. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_collection.rb +99 -0
  163. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_details.rb +143 -0
  164. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_email.rb +101 -0
  165. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_order_action.rb +110 -0
  166. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_order_action_type.rb +28 -0
  167. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_order_status.rb +24 -0
  168. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_patch_resource.rb +332 -0
  169. data/lib/2020-09-01/generated/azure_mgmt_web/models/certificate_product_type.rb +16 -0
  170. data/lib/2020-09-01/generated/azure_mgmt_web/models/channels.rb +19 -0
  171. data/lib/2020-09-01/generated/azure_mgmt_web/models/check_name_resource_types.rb +22 -0
  172. data/lib/2020-09-01/generated/azure_mgmt_web/models/client_cert_mode.rb +16 -0
  173. data/lib/2020-09-01/generated/azure_mgmt_web/models/client_credential_method.rb +15 -0
  174. data/lib/2020-09-01/generated/azure_mgmt_web/models/client_registration.rb +102 -0
  175. data/lib/2020-09-01/generated/azure_mgmt_web/models/clone_ability_result.rb +17 -0
  176. data/lib/2020-09-01/generated/azure_mgmt_web/models/cloning_info.rb +181 -0
  177. data/lib/2020-09-01/generated/azure_mgmt_web/models/compute_mode_options.rb +17 -0
  178. data/lib/2020-09-01/generated/azure_mgmt_web/models/conn_string_info.rb +71 -0
  179. data/lib/2020-09-01/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb +60 -0
  180. data/lib/2020-09-01/generated/azure_mgmt_web/models/connection_string_dictionary.rb +99 -0
  181. data/lib/2020-09-01/generated/azure_mgmt_web/models/connection_string_type.rb +25 -0
  182. data/lib/2020-09-01/generated/azure_mgmt_web/models/contact.rb +138 -0
  183. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_cpu_statistics.rb +82 -0
  184. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_cpu_usage.rb +88 -0
  185. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_info.rb +128 -0
  186. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_memory_statistics.rb +69 -0
  187. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_network_interface_statistics.rb +124 -0
  188. data/lib/2020-09-01/generated/azure_mgmt_web/models/container_throttling_data.rb +69 -0
  189. data/lib/2020-09-01/generated/azure_mgmt_web/models/continuous_web_job.rb +201 -0
  190. data/lib/2020-09-01/generated/azure_mgmt_web/models/continuous_web_job_collection.rb +99 -0
  191. data/lib/2020-09-01/generated/azure_mgmt_web/models/continuous_web_job_status.rb +19 -0
  192. data/lib/2020-09-01/generated/azure_mgmt_web/models/cookie_expiration.rb +104 -0
  193. data/lib/2020-09-01/generated/azure_mgmt_web/models/cookie_expiration_convention.rb +16 -0
  194. data/lib/2020-09-01/generated/azure_mgmt_web/models/cors_settings.rb +70 -0
  195. data/lib/2020-09-01/generated/azure_mgmt_web/models/created_by_type.rb +18 -0
  196. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_copy_slot_entity.rb +63 -0
  197. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_move_resource_envelope.rb +71 -0
  198. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +99 -0
  199. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_operation_description.rb +82 -0
  200. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_operation_description_properties.rb +47 -0
  201. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_operation_display.rb +79 -0
  202. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_publishing_credentials_policies_collection.rb +106 -0
  203. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_publishing_credentials_policies_entity.rb +91 -0
  204. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb +60 -0
  205. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_slot_entity.rb +58 -0
  206. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_usage_quota.rb +91 -0
  207. data/lib/2020-09-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +99 -0
  208. data/lib/2020-09-01/generated/azure_mgmt_web/models/custom_host_name_dns_record_type.rb +16 -0
  209. data/lib/2020-09-01/generated/azure_mgmt_web/models/custom_hostname_analysis_result.rb +258 -0
  210. data/lib/2020-09-01/generated/azure_mgmt_web/models/custom_open_id_connect_provider.rb +115 -0
  211. data/lib/2020-09-01/generated/azure_mgmt_web/models/data_source.rb +74 -0
  212. data/lib/2020-09-01/generated/azure_mgmt_web/models/data_table_response_column.rb +68 -0
  213. data/lib/2020-09-01/generated/azure_mgmt_web/models/data_table_response_object.rb +94 -0
  214. data/lib/2020-09-01/generated/azure_mgmt_web/models/database_backup_setting.rb +84 -0
  215. data/lib/2020-09-01/generated/azure_mgmt_web/models/database_type.rb +18 -0
  216. data/lib/2020-09-01/generated/azure_mgmt_web/models/default_error_response.rb +48 -0
  217. data/lib/2020-09-01/generated/azure_mgmt_web/models/default_error_response_error.rb +104 -0
  218. data/lib/2020-09-01/generated/azure_mgmt_web/models/default_error_response_error_details_item.rb +72 -0
  219. data/lib/2020-09-01/generated/azure_mgmt_web/models/deleted_app_restore_request.rb +128 -0
  220. data/lib/2020-09-01/generated/azure_mgmt_web/models/deleted_site.rb +175 -0
  221. data/lib/2020-09-01/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +99 -0
  222. data/lib/2020-09-01/generated/azure_mgmt_web/models/deployment.rb +179 -0
  223. data/lib/2020-09-01/generated/azure_mgmt_web/models/deployment_collection.rb +99 -0
  224. data/lib/2020-09-01/generated/azure_mgmt_web/models/deployment_locations.rb +98 -0
  225. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_abnormal_time_period.rb +153 -0
  226. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_definition.rb +127 -0
  227. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_info.rb +83 -0
  228. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_response.rb +111 -0
  229. data/lib/2020-09-01/generated/azure_mgmt_web/models/detector_response_collection.rb +99 -0
  230. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_analysis.rb +162 -0
  231. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_analysis_collection.rb +99 -0
  232. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_category.rb +91 -0
  233. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_category_collection.rb +99 -0
  234. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_data.rb +60 -0
  235. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_detector_collection.rb +99 -0
  236. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_detector_response.rb +206 -0
  237. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_metric_sample.rb +109 -0
  238. data/lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_metric_set.rb +113 -0
  239. data/lib/2020-09-01/generated/azure_mgmt_web/models/dimension.rb +81 -0
  240. data/lib/2020-09-01/generated/azure_mgmt_web/models/dns_type.rb +16 -0
  241. data/lib/2020-09-01/generated/azure_mgmt_web/models/dns_verification_test_result.rb +17 -0
  242. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain.rb +381 -0
  243. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_availability_check_result.rb +73 -0
  244. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_collection.rb +99 -0
  245. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_control_center_sso_request.rb +72 -0
  246. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_ownership_identifier.rb +90 -0
  247. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +99 -0
  248. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_patch_resource.rb +357 -0
  249. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_purchase_consent.rb +79 -0
  250. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb +58 -0
  251. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_status.rb +35 -0
  252. data/lib/2020-09-01/generated/azure_mgmt_web/models/domain_type.rb +16 -0
  253. data/lib/2020-09-01/generated/azure_mgmt_web/models/enabled_config.rb +47 -0
  254. data/lib/2020-09-01/generated/azure_mgmt_web/models/endpoint_dependency.rb +68 -0
  255. data/lib/2020-09-01/generated/azure_mgmt_web/models/endpoint_detail.rb +83 -0
  256. data/lib/2020-09-01/generated/azure_mgmt_web/models/error_entity.rb +118 -0
  257. data/lib/2020-09-01/generated/azure_mgmt_web/models/experiments.rb +55 -0
  258. data/lib/2020-09-01/generated/azure_mgmt_web/models/facebook.rb +126 -0
  259. data/lib/2020-09-01/generated/azure_mgmt_web/models/file_system_application_logs_config.rb +49 -0
  260. data/lib/2020-09-01/generated/azure_mgmt_web/models/file_system_http_logs_config.rb +78 -0
  261. data/lib/2020-09-01/generated/azure_mgmt_web/models/file_system_token_store.rb +91 -0
  262. data/lib/2020-09-01/generated/azure_mgmt_web/models/forward_proxy.rb +115 -0
  263. data/lib/2020-09-01/generated/azure_mgmt_web/models/forward_proxy_convention.rb +17 -0
  264. data/lib/2020-09-01/generated/azure_mgmt_web/models/frequency_unit.rb +16 -0
  265. data/lib/2020-09-01/generated/azure_mgmt_web/models/ftps_state.rb +17 -0
  266. data/lib/2020-09-01/generated/azure_mgmt_web/models/function_envelope.rb +231 -0
  267. data/lib/2020-09-01/generated/azure_mgmt_web/models/function_envelope_collection.rb +99 -0
  268. data/lib/2020-09-01/generated/azure_mgmt_web/models/function_secrets.rb +57 -0
  269. data/lib/2020-09-01/generated/azure_mgmt_web/models/geo_region.rb +115 -0
  270. data/lib/2020-09-01/generated/azure_mgmt_web/models/geo_region_collection.rb +99 -0
  271. data/lib/2020-09-01/generated/azure_mgmt_web/models/git_hub.rb +115 -0
  272. data/lib/2020-09-01/generated/azure_mgmt_web/models/global_csm_sku_description.rb +131 -0
  273. data/lib/2020-09-01/generated/azure_mgmt_web/models/global_validation.rb +134 -0
  274. data/lib/2020-09-01/generated/azure_mgmt_web/models/google.rb +127 -0
  275. data/lib/2020-09-01/generated/azure_mgmt_web/models/handler_mapping.rb +73 -0
  276. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_keys.rb +84 -0
  277. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name.rb +119 -0
  278. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name_binding.rb +188 -0
  279. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name_binding_collection.rb +99 -0
  280. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name_ssl_state.rb +106 -0
  281. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_name_type.rb +16 -0
  282. data/lib/2020-09-01/generated/azure_mgmt_web/models/host_type.rb +16 -0
  283. data/lib/2020-09-01/generated/azure_mgmt_web/models/hosting_environment_deployment_info.rb +57 -0
  284. data/lib/2020-09-01/generated/azure_mgmt_web/models/hosting_environment_diagnostics.rb +57 -0
  285. data/lib/2020-09-01/generated/azure_mgmt_web/models/hosting_environment_profile.rb +70 -0
  286. data/lib/2020-09-01/generated/azure_mgmt_web/models/hosting_environment_status.rb +18 -0
  287. data/lib/2020-09-01/generated/azure_mgmt_web/models/http_logs_config.rb +61 -0
  288. data/lib/2020-09-01/generated/azure_mgmt_web/models/http_settings.rb +115 -0
  289. data/lib/2020-09-01/generated/azure_mgmt_web/models/http_settings_routes.rb +91 -0
  290. data/lib/2020-09-01/generated/azure_mgmt_web/models/hybrid_connection.rb +172 -0
  291. data/lib/2020-09-01/generated/azure_mgmt_web/models/hybrid_connection_collection.rb +99 -0
  292. data/lib/2020-09-01/generated/azure_mgmt_web/models/hybrid_connection_key.rb +104 -0
  293. data/lib/2020-09-01/generated/azure_mgmt_web/models/hybrid_connection_limits.rb +104 -0
  294. data/lib/2020-09-01/generated/azure_mgmt_web/models/identifier.rb +90 -0
  295. data/lib/2020-09-01/generated/azure_mgmt_web/models/identifier_collection.rb +99 -0
  296. data/lib/2020-09-01/generated/azure_mgmt_web/models/identity_providers.rb +160 -0
  297. data/lib/2020-09-01/generated/azure_mgmt_web/models/in_availability_reason_type.rb +16 -0
  298. data/lib/2020-09-01/generated/azure_mgmt_web/models/inbound_environment_endpoint.rb +88 -0
  299. data/lib/2020-09-01/generated/azure_mgmt_web/models/inbound_environment_endpoint_collection.rb +99 -0
  300. data/lib/2020-09-01/generated/azure_mgmt_web/models/ip_filter_tag.rb +17 -0
  301. data/lib/2020-09-01/generated/azure_mgmt_web/models/ip_security_restriction.rb +202 -0
  302. data/lib/2020-09-01/generated/azure_mgmt_web/models/issue_type.rb +22 -0
  303. data/lib/2020-09-01/generated/azure_mgmt_web/models/jwt_claim_checks.rb +118 -0
  304. data/lib/2020-09-01/generated/azure_mgmt_web/models/key_info.rb +57 -0
  305. data/lib/2020-09-01/generated/azure_mgmt_web/models/key_vault_secret_status.rb +25 -0
  306. data/lib/2020-09-01/generated/azure_mgmt_web/models/load_balancing_mode.rb +18 -0
  307. data/lib/2020-09-01/generated/azure_mgmt_web/models/localizable_string.rb +57 -0
  308. data/lib/2020-09-01/generated/azure_mgmt_web/models/log_level.rb +19 -0
  309. data/lib/2020-09-01/generated/azure_mgmt_web/models/log_specification.rb +79 -0
  310. data/lib/2020-09-01/generated/azure_mgmt_web/models/login.rb +158 -0
  311. data/lib/2020-09-01/generated/azure_mgmt_web/models/login_routes.rb +91 -0
  312. data/lib/2020-09-01/generated/azure_mgmt_web/models/login_scopes.rb +99 -0
  313. data/lib/2020-09-01/generated/azure_mgmt_web/models/managed_pipeline_mode.rb +16 -0
  314. data/lib/2020-09-01/generated/azure_mgmt_web/models/managed_service_identity.rb +97 -0
  315. data/lib/2020-09-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +18 -0
  316. data/lib/2020-09-01/generated/azure_mgmt_web/models/managed_service_identity_user_assigned_identities_value.rb +61 -0
  317. data/lib/2020-09-01/generated/azure_mgmt_web/models/metric_availability.rb +57 -0
  318. data/lib/2020-09-01/generated/azure_mgmt_web/models/metric_specification.rb +256 -0
  319. data/lib/2020-09-01/generated/azure_mgmt_web/models/migrate_my_sql_request.rb +103 -0
  320. data/lib/2020-09-01/generated/azure_mgmt_web/models/migrate_my_sql_status.rb +117 -0
  321. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy.rb +174 -0
  322. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_log.rb +100 -0
  323. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_log_entry.rb +73 -0
  324. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_log_entry_type.rb +17 -0
  325. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_provisioning_state.rb +19 -0
  326. data/lib/2020-09-01/generated/azure_mgmt_web/models/msdeploy_status.rb +141 -0
  327. data/lib/2020-09-01/generated/azure_mgmt_web/models/my_sql_migration_type.rb +16 -0
  328. data/lib/2020-09-01/generated/azure_mgmt_web/models/name_identifier.rb +46 -0
  329. data/lib/2020-09-01/generated/azure_mgmt_web/models/name_identifier_collection.rb +99 -0
  330. data/lib/2020-09-01/generated/azure_mgmt_web/models/name_value_pair.rb +57 -0
  331. data/lib/2020-09-01/generated/azure_mgmt_web/models/network_access_control_entry.rb +81 -0
  332. data/lib/2020-09-01/generated/azure_mgmt_web/models/network_features.rb +149 -0
  333. data/lib/2020-09-01/generated/azure_mgmt_web/models/network_trace.rb +70 -0
  334. data/lib/2020-09-01/generated/azure_mgmt_web/models/nonce.rb +102 -0
  335. data/lib/2020-09-01/generated/azure_mgmt_web/models/notification_level.rb +18 -0
  336. data/lib/2020-09-01/generated/azure_mgmt_web/models/open_id_connect_client_credential.rb +104 -0
  337. data/lib/2020-09-01/generated/azure_mgmt_web/models/open_id_connect_config.rb +135 -0
  338. data/lib/2020-09-01/generated/azure_mgmt_web/models/open_id_connect_login.rb +110 -0
  339. data/lib/2020-09-01/generated/azure_mgmt_web/models/open_id_connect_registration.rb +115 -0
  340. data/lib/2020-09-01/generated/azure_mgmt_web/models/operation.rb +135 -0
  341. data/lib/2020-09-01/generated/azure_mgmt_web/models/operation_status.rb +19 -0
  342. data/lib/2020-09-01/generated/azure_mgmt_web/models/outbound_environment_endpoint.rb +70 -0
  343. data/lib/2020-09-01/generated/azure_mgmt_web/models/outbound_environment_endpoint_collection.rb +99 -0
  344. data/lib/2020-09-01/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +99 -0
  345. data/lib/2020-09-01/generated/azure_mgmt_web/models/perf_mon_response.rb +69 -0
  346. data/lib/2020-09-01/generated/azure_mgmt_web/models/perf_mon_sample.rb +68 -0
  347. data/lib/2020-09-01/generated/azure_mgmt_web/models/perf_mon_set.rb +100 -0
  348. data/lib/2020-09-01/generated/azure_mgmt_web/models/premier_add_on.rb +158 -0
  349. data/lib/2020-09-01/generated/azure_mgmt_web/models/premier_add_on_offer.rb +193 -0
  350. data/lib/2020-09-01/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +99 -0
  351. data/lib/2020-09-01/generated/azure_mgmt_web/models/premier_add_on_patch_resource.rb +134 -0
  352. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_access.rb +111 -0
  353. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_access_subnet.rb +58 -0
  354. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_access_virtual_network.rb +91 -0
  355. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_endpoint_connection_resource.rb +116 -0
  356. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_connection_approval_request_resource.rb +92 -0
  357. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_connection_state.rb +68 -0
  358. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_resource.rb +81 -0
  359. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_resource_properties.rb +87 -0
  360. data/lib/2020-09-01/generated/azure_mgmt_web/models/private_link_resources_wrapper.rb +55 -0
  361. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_info.rb +518 -0
  362. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_info_collection.rb +99 -0
  363. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_module_info.rb +201 -0
  364. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_module_info_collection.rb +99 -0
  365. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_thread_info.rb +212 -0
  366. data/lib/2020-09-01/generated/azure_mgmt_web/models/process_thread_info_collection.rb +99 -0
  367. data/lib/2020-09-01/generated/azure_mgmt_web/models/provisioning_state.rb +19 -0
  368. data/lib/2020-09-01/generated/azure_mgmt_web/models/proxy_only_resource.rb +95 -0
  369. data/lib/2020-09-01/generated/azure_mgmt_web/models/public_certificate.rb +115 -0
  370. data/lib/2020-09-01/generated/azure_mgmt_web/models/public_certificate_collection.rb +99 -0
  371. data/lib/2020-09-01/generated/azure_mgmt_web/models/public_certificate_location.rb +17 -0
  372. data/lib/2020-09-01/generated/azure_mgmt_web/models/publishing_profile_format.rb +17 -0
  373. data/lib/2020-09-01/generated/azure_mgmt_web/models/push_settings.rb +132 -0
  374. data/lib/2020-09-01/generated/azure_mgmt_web/models/ramp_up_rule.rb +142 -0
  375. data/lib/2020-09-01/generated/azure_mgmt_web/models/recommendation.rb +369 -0
  376. data/lib/2020-09-01/generated/azure_mgmt_web/models/recommendation_collection.rb +99 -0
  377. data/lib/2020-09-01/generated/azure_mgmt_web/models/recommendation_rule.rb +246 -0
  378. data/lib/2020-09-01/generated/azure_mgmt_web/models/redundancy_mode.rb +19 -0
  379. data/lib/2020-09-01/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb +125 -0
  380. data/lib/2020-09-01/generated/azure_mgmt_web/models/relay_service_connection_entity.rb +156 -0
  381. data/lib/2020-09-01/generated/azure_mgmt_web/models/rendering.rb +71 -0
  382. data/lib/2020-09-01/generated/azure_mgmt_web/models/rendering_type.rb +18 -0
  383. data/lib/2020-09-01/generated/azure_mgmt_web/models/renew_certificate_order_request.rb +113 -0
  384. data/lib/2020-09-01/generated/azure_mgmt_web/models/requests_based_trigger.rb +57 -0
  385. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource.rb +133 -0
  386. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_collection.rb +98 -0
  387. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_health_metadata.rb +102 -0
  388. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_health_metadata_collection.rb +99 -0
  389. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_metric_availability.rb +59 -0
  390. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_metric_definition.rb +157 -0
  391. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +99 -0
  392. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_name_availability.rb +78 -0
  393. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_name_availability_request.rb +71 -0
  394. data/lib/2020-09-01/generated/azure_mgmt_web/models/resource_scope_type.rb +17 -0
  395. data/lib/2020-09-01/generated/azure_mgmt_web/models/response_meta_data.rb +48 -0
  396. data/lib/2020-09-01/generated/azure_mgmt_web/models/restore_request.rb +226 -0
  397. data/lib/2020-09-01/generated/azure_mgmt_web/models/route_type.rb +17 -0
  398. data/lib/2020-09-01/generated/azure_mgmt_web/models/scm_type.rb +28 -0
  399. data/lib/2020-09-01/generated/azure_mgmt_web/models/service_specification.rb +76 -0
  400. data/lib/2020-09-01/generated/azure_mgmt_web/models/site.rb +643 -0
  401. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_auth_settings.rb +659 -0
  402. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_auth_settings_v2.rb +140 -0
  403. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_availability_state.rb +17 -0
  404. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_cloneability.rb +113 -0
  405. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_cloneability_criterion.rb +57 -0
  406. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_config.rb +782 -0
  407. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_config_resource.rb +826 -0
  408. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_config_resource_collection.rb +99 -0
  409. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info.rb +103 -0
  410. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info_collection.rb +101 -0
  411. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_extension_info.rb +310 -0
  412. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_extension_info_collection.rb +99 -0
  413. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_extension_type.rb +16 -0
  414. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_limits.rb +68 -0
  415. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_load_balancing.rb +19 -0
  416. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_logs_config.rb +127 -0
  417. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_machine_key.rb +79 -0
  418. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_patch_resource.rb +619 -0
  419. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_php_error_log_flag.rb +123 -0
  420. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_runtime_state.rb +17 -0
  421. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_seal.rb +46 -0
  422. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_seal_request.rb +58 -0
  423. data/lib/2020-09-01/generated/azure_mgmt_web/models/site_source_control.rb +150 -0
  424. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_capacity.rb +83 -0
  425. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_description.rb +142 -0
  426. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_info.rb +70 -0
  427. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_info_collection.rb +99 -0
  428. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_infos.rb +67 -0
  429. data/lib/2020-09-01/generated/azure_mgmt_web/models/sku_name.rb +24 -0
  430. data/lib/2020-09-01/generated/azure_mgmt_web/models/slot_config_names_resource.rb +137 -0
  431. data/lib/2020-09-01/generated/azure_mgmt_web/models/slot_difference.rb +166 -0
  432. data/lib/2020-09-01/generated/azure_mgmt_web/models/slot_difference_collection.rb +99 -0
  433. data/lib/2020-09-01/generated/azure_mgmt_web/models/slot_swap_status.rb +71 -0
  434. data/lib/2020-09-01/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb +68 -0
  435. data/lib/2020-09-01/generated/azure_mgmt_web/models/snapshot.rb +91 -0
  436. data/lib/2020-09-01/generated/azure_mgmt_web/models/snapshot_collection.rb +100 -0
  437. data/lib/2020-09-01/generated/azure_mgmt_web/models/snapshot_recovery_source.rb +62 -0
  438. data/lib/2020-09-01/generated/azure_mgmt_web/models/snapshot_restore_request.rb +154 -0
  439. data/lib/2020-09-01/generated/azure_mgmt_web/models/solution.rb +148 -0
  440. data/lib/2020-09-01/generated/azure_mgmt_web/models/solution_type.rb +17 -0
  441. data/lib/2020-09-01/generated/azure_mgmt_web/models/source_control.rb +123 -0
  442. data/lib/2020-09-01/generated/azure_mgmt_web/models/source_control_collection.rb +99 -0
  443. data/lib/2020-09-01/generated/azure_mgmt_web/models/ssl_state.rb +17 -0
  444. data/lib/2020-09-01/generated/azure_mgmt_web/models/stack_major_version.rb +138 -0
  445. data/lib/2020-09-01/generated/azure_mgmt_web/models/stack_minor_version.rb +81 -0
  446. data/lib/2020-09-01/generated/azure_mgmt_web/models/stamp_capacity.rb +168 -0
  447. data/lib/2020-09-01/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +99 -0
  448. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_armresource.rb +196 -0
  449. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_build_armresource.rb +166 -0
  450. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_build_collection.rb +99 -0
  451. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_build_properties.rb +68 -0
  452. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_collection.rb +99 -0
  453. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_custom_domain_overview_armresource.rb +105 -0
  454. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_custom_domain_overview_collection.rb +102 -0
  455. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_function_overview_armresource.rb +104 -0
  456. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_function_overview_collection.rb +101 -0
  457. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_patch_resource.rb +160 -0
  458. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_reset_properties_armresource.rb +103 -0
  459. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_user_armresource.rb +127 -0
  460. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_user_collection.rb +99 -0
  461. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_user_invitation_request_resource.rb +135 -0
  462. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_site_user_invitation_response_resource.rb +103 -0
  463. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_sites_workflow_preview.rb +103 -0
  464. data/lib/2020-09-01/generated/azure_mgmt_web/models/static_sites_workflow_preview_request.rb +114 -0
  465. data/lib/2020-09-01/generated/azure_mgmt_web/models/status_codes_based_trigger.rb +90 -0
  466. data/lib/2020-09-01/generated/azure_mgmt_web/models/status_options.rb +17 -0
  467. data/lib/2020-09-01/generated/azure_mgmt_web/models/storage_migration_options.rb +128 -0
  468. data/lib/2020-09-01/generated/azure_mgmt_web/models/storage_migration_response.rb +92 -0
  469. data/lib/2020-09-01/generated/azure_mgmt_web/models/string_dictionary.rb +98 -0
  470. data/lib/2020-09-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
  471. data/lib/2020-09-01/generated/azure_mgmt_web/models/swift_virtual_network.rb +105 -0
  472. data/lib/2020-09-01/generated/azure_mgmt_web/models/system_data.rb +105 -0
  473. data/lib/2020-09-01/generated/azure_mgmt_web/models/tld_legal_agreement.rb +79 -0
  474. data/lib/2020-09-01/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +99 -0
  475. data/lib/2020-09-01/generated/azure_mgmt_web/models/token_store.rb +126 -0
  476. data/lib/2020-09-01/generated/azure_mgmt_web/models/top_level_domain.rb +91 -0
  477. data/lib/2020-09-01/generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb +61 -0
  478. data/lib/2020-09-01/generated/azure_mgmt_web/models/top_level_domain_collection.rb +99 -0
  479. data/lib/2020-09-01/generated/azure_mgmt_web/models/trigger_types.rb +16 -0
  480. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_job_history.rb +100 -0
  481. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_job_history_collection.rb +99 -0
  482. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_job_run.rb +202 -0
  483. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_web_job.rb +200 -0
  484. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_web_job_collection.rb +99 -0
  485. data/lib/2020-09-01/generated/azure_mgmt_web/models/triggered_web_job_status.rb +17 -0
  486. data/lib/2020-09-01/generated/azure_mgmt_web/models/twitter.rb +103 -0
  487. data/lib/2020-09-01/generated/azure_mgmt_web/models/twitter_registration.rb +102 -0
  488. data/lib/2020-09-01/generated/azure_mgmt_web/models/unauthenticated_client_action.rb +16 -0
  489. data/lib/2020-09-01/generated/azure_mgmt_web/models/unauthenticated_client_action_v2.rb +18 -0
  490. data/lib/2020-09-01/generated/azure_mgmt_web/models/usage.rb +177 -0
  491. data/lib/2020-09-01/generated/azure_mgmt_web/models/usage_collection.rb +99 -0
  492. data/lib/2020-09-01/generated/azure_mgmt_web/models/usage_state.rb +16 -0
  493. data/lib/2020-09-01/generated/azure_mgmt_web/models/user.rb +134 -0
  494. data/lib/2020-09-01/generated/azure_mgmt_web/models/validate_request.rb +221 -0
  495. data/lib/2020-09-01/generated/azure_mgmt_web/models/validate_resource_types.rb +16 -0
  496. data/lib/2020-09-01/generated/azure_mgmt_web/models/validate_response.rb +59 -0
  497. data/lib/2020-09-01/generated/azure_mgmt_web/models/validate_response_error.rb +57 -0
  498. data/lib/2020-09-01/generated/azure_mgmt_web/models/virtual_application.rb +90 -0
  499. data/lib/2020-09-01/generated/azure_mgmt_web/models/virtual_directory.rb +57 -0
  500. data/lib/2020-09-01/generated/azure_mgmt_web/models/virtual_ipmapping.rb +90 -0
  501. data/lib/2020-09-01/generated/azure_mgmt_web/models/virtual_network_profile.rb +81 -0
  502. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_gateway.rb +102 -0
  503. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_info.rb +173 -0
  504. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_parameters.rb +112 -0
  505. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_route.rb +124 -0
  506. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_validation_failure_details.rb +111 -0
  507. data/lib/2020-09-01/generated/azure_mgmt_web/models/vnet_validation_test_failure.rb +102 -0
  508. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_app_collection.rb +99 -0
  509. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_app_instance_status_collection.rb +99 -0
  510. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_job.rb +166 -0
  511. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_job_collection.rb +99 -0
  512. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_job_type.rb +16 -0
  513. data/lib/2020-09-01/generated/azure_mgmt_web/models/web_site_instance_status.rb +157 -0
  514. data/lib/2020-09-01/generated/azure_mgmt_web/models/worker_pool.rb +102 -0
  515. data/lib/2020-09-01/generated/azure_mgmt_web/models/worker_pool_collection.rb +99 -0
  516. data/lib/2020-09-01/generated/azure_mgmt_web/models/worker_pool_resource.rb +158 -0
  517. data/lib/2020-09-01/generated/azure_mgmt_web/models/worker_size_options.rb +22 -0
  518. data/lib/2020-09-01/generated/azure_mgmt_web/module_definition.rb +9 -0
  519. data/lib/2020-09-01/generated/azure_mgmt_web/provider.rb +681 -0
  520. data/lib/2020-09-01/generated/azure_mgmt_web/recommendations.rb +2306 -0
  521. data/lib/2020-09-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +1194 -0
  522. data/lib/2020-09-01/generated/azure_mgmt_web/static_sites.rb +3889 -0
  523. data/lib/2020-09-01/generated/azure_mgmt_web/top_level_domains.rb +576 -0
  524. data/lib/2020-09-01/generated/azure_mgmt_web/web_apps.rb +52832 -0
  525. data/lib/2020-09-01/generated/azure_mgmt_web/web_site_management_client.rb +2884 -0
  526. data/lib/azure_mgmt_web.rb +7 -4
  527. data/lib/profiles/latest/modules/web_profile_module.rb +1200 -866
  528. data/lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb +1469 -0
  529. data/lib/profiles/v2019_03_01_hybrid/web_module_definition.rb +8 -0
  530. data/lib/profiles/v2019_03_01_hybrid/web_v2019_03_01_hybrid_profile_client.rb +40 -0
  531. data/lib/version.rb +1 -1
  532. metadata +497 -5
@@ -0,0 +1,3889 @@
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 StaticSites
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the StaticSites 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
+ # Generates a preview workflow file for the static site
26
+ #
27
+ # Description for Generates a preview workflow file for the static site
28
+ #
29
+ # @param location [String] Location where you plan to create the static site.
30
+ # @param static_sites_workflow_preview_request
31
+ # [StaticSitesWorkflowPreviewRequest] A JSON representation of the
32
+ # StaticSitesWorkflowPreviewRequest properties. See example.
33
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
34
+ # will be added to the HTTP request.
35
+ #
36
+ # @return [StaticSitesWorkflowPreview] operation results.
37
+ #
38
+ def preview_workflow(location, static_sites_workflow_preview_request, custom_headers:nil)
39
+ response = preview_workflow_async(location, static_sites_workflow_preview_request, custom_headers:custom_headers).value!
40
+ response.body unless response.nil?
41
+ end
42
+
43
+ #
44
+ # Generates a preview workflow file for the static site
45
+ #
46
+ # Description for Generates a preview workflow file for the static site
47
+ #
48
+ # @param location [String] Location where you plan to create the static site.
49
+ # @param static_sites_workflow_preview_request
50
+ # [StaticSitesWorkflowPreviewRequest] A JSON representation of the
51
+ # StaticSitesWorkflowPreviewRequest properties. See example.
52
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
53
+ # will be added to the HTTP request.
54
+ #
55
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
56
+ #
57
+ def preview_workflow_with_http_info(location, static_sites_workflow_preview_request, custom_headers:nil)
58
+ preview_workflow_async(location, static_sites_workflow_preview_request, custom_headers:custom_headers).value!
59
+ end
60
+
61
+ #
62
+ # Generates a preview workflow file for the static site
63
+ #
64
+ # Description for Generates a preview workflow file for the static site
65
+ #
66
+ # @param location [String] Location where you plan to create the static site.
67
+ # @param static_sites_workflow_preview_request
68
+ # [StaticSitesWorkflowPreviewRequest] A JSON representation of the
69
+ # StaticSitesWorkflowPreviewRequest properties. See example.
70
+ # @param [Hash{String => String}] A hash of custom headers that will be added
71
+ # to the HTTP request.
72
+ #
73
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
74
+ #
75
+ def preview_workflow_async(location, static_sites_workflow_preview_request, custom_headers:nil)
76
+ fail ArgumentError, 'location is nil' if location.nil?
77
+ fail ArgumentError, 'static_sites_workflow_preview_request is nil' if static_sites_workflow_preview_request.nil?
78
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
79
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
80
+
81
+
82
+ request_headers = {}
83
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
84
+
85
+ # Set Headers
86
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
87
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
88
+
89
+ # Serialize Request
90
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSitesWorkflowPreviewRequest.mapper()
91
+ request_content = @client.serialize(request_mapper, static_sites_workflow_preview_request)
92
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
93
+
94
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/previewStaticSiteWorkflowFile'
95
+
96
+ request_url = @base_url || @client.base_url
97
+
98
+ options = {
99
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
100
+ path_params: {'location' => location,'subscriptionId' => @client.subscription_id},
101
+ query_params: {'api-version' => @client.api_version},
102
+ body: request_content,
103
+ headers: request_headers.merge(custom_headers || {}),
104
+ base_url: request_url
105
+ }
106
+ promise = @client.make_request_async(:post, path_template, options)
107
+
108
+ promise = promise.then do |result|
109
+ http_response = result.response
110
+ status_code = http_response.status
111
+ response_content = http_response.body
112
+ unless status_code == 200
113
+ error_model = JSON.load(response_content)
114
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
115
+ end
116
+
117
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
118
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
119
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
120
+ # Deserialize Response
121
+ if status_code == 200
122
+ begin
123
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
124
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSitesWorkflowPreview.mapper()
125
+ result.body = @client.deserialize(result_mapper, parsed_response)
126
+ rescue Exception => e
127
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
128
+ end
129
+ end
130
+
131
+ result
132
+ end
133
+
134
+ promise.execute
135
+ end
136
+
137
+ #
138
+ # Get all Static Sites for a subscription.
139
+ #
140
+ # Description for Get all Static Sites for a subscription.
141
+ #
142
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
143
+ # will be added to the HTTP request.
144
+ #
145
+ # @return [Array<StaticSiteARMResource>] operation results.
146
+ #
147
+ def list(custom_headers:nil)
148
+ first_page = list_as_lazy(custom_headers:custom_headers)
149
+ first_page.get_all_items
150
+ end
151
+
152
+ #
153
+ # Get all Static Sites for a subscription.
154
+ #
155
+ # Description for Get all Static Sites for a subscription.
156
+ #
157
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
158
+ # will be added to the HTTP request.
159
+ #
160
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
161
+ #
162
+ def list_with_http_info(custom_headers:nil)
163
+ list_async(custom_headers:custom_headers).value!
164
+ end
165
+
166
+ #
167
+ # Get all Static Sites for a subscription.
168
+ #
169
+ # Description for Get all Static Sites for a subscription.
170
+ #
171
+ # @param [Hash{String => String}] A hash of custom headers that will be added
172
+ # to the HTTP request.
173
+ #
174
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
175
+ #
176
+ def list_async(custom_headers:nil)
177
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
178
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
179
+
180
+
181
+ request_headers = {}
182
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
183
+
184
+ # Set Headers
185
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
186
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
187
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/staticSites'
188
+
189
+ request_url = @base_url || @client.base_url
190
+
191
+ options = {
192
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
193
+ path_params: {'subscriptionId' => @client.subscription_id},
194
+ query_params: {'api-version' => @client.api_version},
195
+ headers: request_headers.merge(custom_headers || {}),
196
+ base_url: request_url
197
+ }
198
+ promise = @client.make_request_async(:get, path_template, options)
199
+
200
+ promise = promise.then do |result|
201
+ http_response = result.response
202
+ status_code = http_response.status
203
+ response_content = http_response.body
204
+ unless status_code == 200
205
+ error_model = JSON.load(response_content)
206
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
207
+ end
208
+
209
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
210
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
211
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
212
+ # Deserialize Response
213
+ if status_code == 200
214
+ begin
215
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
216
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteCollection.mapper()
217
+ result.body = @client.deserialize(result_mapper, parsed_response)
218
+ rescue Exception => e
219
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
220
+ end
221
+ end
222
+
223
+ result
224
+ end
225
+
226
+ promise.execute
227
+ end
228
+
229
+ #
230
+ # Gets all static sites in the specified resource group.
231
+ #
232
+ # Description for Gets all static sites in the specified resource group.
233
+ #
234
+ # @param resource_group_name [String] Name of the resource group to which the
235
+ # resource belongs.
236
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
237
+ # will be added to the HTTP request.
238
+ #
239
+ # @return [Array<StaticSiteARMResource>] operation results.
240
+ #
241
+ def get_static_sites_by_resource_group(resource_group_name, custom_headers:nil)
242
+ first_page = get_static_sites_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
243
+ first_page.get_all_items
244
+ end
245
+
246
+ #
247
+ # Gets all static sites in the specified resource group.
248
+ #
249
+ # Description for Gets all static sites in the specified resource group.
250
+ #
251
+ # @param resource_group_name [String] Name of the resource group to which the
252
+ # resource belongs.
253
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
254
+ # will be added to the HTTP request.
255
+ #
256
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
257
+ #
258
+ def get_static_sites_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
259
+ get_static_sites_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
260
+ end
261
+
262
+ #
263
+ # Gets all static sites in the specified resource group.
264
+ #
265
+ # Description for Gets all static sites in the specified resource group.
266
+ #
267
+ # @param resource_group_name [String] Name of the resource group to which the
268
+ # resource belongs.
269
+ # @param [Hash{String => String}] A hash of custom headers that will be added
270
+ # to the HTTP request.
271
+ #
272
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
273
+ #
274
+ def get_static_sites_by_resource_group_async(resource_group_name, custom_headers:nil)
275
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
276
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
277
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
278
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
279
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
280
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
281
+
282
+
283
+ request_headers = {}
284
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
285
+
286
+ # Set Headers
287
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
288
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
289
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites'
290
+
291
+ request_url = @base_url || @client.base_url
292
+
293
+ options = {
294
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
295
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
296
+ query_params: {'api-version' => @client.api_version},
297
+ headers: request_headers.merge(custom_headers || {}),
298
+ base_url: request_url
299
+ }
300
+ promise = @client.make_request_async(:get, path_template, options)
301
+
302
+ promise = promise.then do |result|
303
+ http_response = result.response
304
+ status_code = http_response.status
305
+ response_content = http_response.body
306
+ unless status_code == 200
307
+ error_model = JSON.load(response_content)
308
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
309
+ end
310
+
311
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
312
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
313
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
314
+ # Deserialize Response
315
+ if status_code == 200
316
+ begin
317
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
318
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteCollection.mapper()
319
+ result.body = @client.deserialize(result_mapper, parsed_response)
320
+ rescue Exception => e
321
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
322
+ end
323
+ end
324
+
325
+ result
326
+ end
327
+
328
+ promise.execute
329
+ end
330
+
331
+ #
332
+ # Gets the details of a static site.
333
+ #
334
+ # Description for Gets the details of a static site.
335
+ #
336
+ # @param resource_group_name [String] Name of the resource group to which the
337
+ # resource belongs.
338
+ # @param name [String] Name of the static site.
339
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
340
+ # will be added to the HTTP request.
341
+ #
342
+ # @return [StaticSiteARMResource] operation results.
343
+ #
344
+ def get_static_site(resource_group_name, name, custom_headers:nil)
345
+ response = get_static_site_async(resource_group_name, name, custom_headers:custom_headers).value!
346
+ response.body unless response.nil?
347
+ end
348
+
349
+ #
350
+ # Gets the details of a static site.
351
+ #
352
+ # Description for Gets the details of a static site.
353
+ #
354
+ # @param resource_group_name [String] Name of the resource group to which the
355
+ # resource belongs.
356
+ # @param name [String] Name of the static site.
357
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
358
+ # will be added to the HTTP request.
359
+ #
360
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
361
+ #
362
+ def get_static_site_with_http_info(resource_group_name, name, custom_headers:nil)
363
+ get_static_site_async(resource_group_name, name, custom_headers:custom_headers).value!
364
+ end
365
+
366
+ #
367
+ # Gets the details of a static site.
368
+ #
369
+ # Description for Gets the details of a static site.
370
+ #
371
+ # @param resource_group_name [String] Name of the resource group to which the
372
+ # resource belongs.
373
+ # @param name [String] Name of the static site.
374
+ # @param [Hash{String => String}] A hash of custom headers that will be added
375
+ # to the HTTP request.
376
+ #
377
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
378
+ #
379
+ def get_static_site_async(resource_group_name, name, custom_headers:nil)
380
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
381
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
382
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
383
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
384
+ fail ArgumentError, 'name is nil' if name.nil?
385
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
386
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
387
+
388
+
389
+ request_headers = {}
390
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
391
+
392
+ # Set Headers
393
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
394
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
395
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}'
396
+
397
+ request_url = @base_url || @client.base_url
398
+
399
+ options = {
400
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
401
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
402
+ query_params: {'api-version' => @client.api_version},
403
+ headers: request_headers.merge(custom_headers || {}),
404
+ base_url: request_url
405
+ }
406
+ promise = @client.make_request_async(:get, path_template, options)
407
+
408
+ promise = promise.then do |result|
409
+ http_response = result.response
410
+ status_code = http_response.status
411
+ response_content = http_response.body
412
+ unless status_code == 200
413
+ error_model = JSON.load(response_content)
414
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
415
+ end
416
+
417
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
418
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
419
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
420
+ # Deserialize Response
421
+ if status_code == 200
422
+ begin
423
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
424
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteARMResource.mapper()
425
+ result.body = @client.deserialize(result_mapper, parsed_response)
426
+ rescue Exception => e
427
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
428
+ end
429
+ end
430
+
431
+ result
432
+ end
433
+
434
+ promise.execute
435
+ end
436
+
437
+ #
438
+ # Creates a new static site in an existing resource group, or updates an
439
+ # existing static site.
440
+ #
441
+ # Description for Creates a new static site in an existing resource group, or
442
+ # updates an existing static site.
443
+ #
444
+ # @param resource_group_name [String] Name of the resource group to which the
445
+ # resource belongs.
446
+ # @param name [String] Name of the static site to create or update.
447
+ # @param static_site_envelope [StaticSiteARMResource] A JSON representation of
448
+ # the staticsite properties. See example.
449
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
450
+ # will be added to the HTTP request.
451
+ #
452
+ # @return [StaticSiteARMResource] operation results.
453
+ #
454
+ def create_or_update_static_site(resource_group_name, name, static_site_envelope, custom_headers:nil)
455
+ response = create_or_update_static_site_async(resource_group_name, name, static_site_envelope, custom_headers:custom_headers).value!
456
+ response.body unless response.nil?
457
+ end
458
+
459
+ #
460
+ # Creates a new static site in an existing resource group, or updates an
461
+ # existing static site.
462
+ #
463
+ # Description for Creates a new static site in an existing resource group, or
464
+ # updates an existing static site.
465
+ #
466
+ # @param resource_group_name [String] Name of the resource group to which the
467
+ # resource belongs.
468
+ # @param name [String] Name of the static site to create or update.
469
+ # @param static_site_envelope [StaticSiteARMResource] A JSON representation of
470
+ # the staticsite properties. See example.
471
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
472
+ # will be added to the HTTP request.
473
+ #
474
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
475
+ #
476
+ def create_or_update_static_site_with_http_info(resource_group_name, name, static_site_envelope, custom_headers:nil)
477
+ create_or_update_static_site_async(resource_group_name, name, static_site_envelope, custom_headers:custom_headers).value!
478
+ end
479
+
480
+ #
481
+ # Creates a new static site in an existing resource group, or updates an
482
+ # existing static site.
483
+ #
484
+ # Description for Creates a new static site in an existing resource group, or
485
+ # updates an existing static site.
486
+ #
487
+ # @param resource_group_name [String] Name of the resource group to which the
488
+ # resource belongs.
489
+ # @param name [String] Name of the static site to create or update.
490
+ # @param static_site_envelope [StaticSiteARMResource] A JSON representation of
491
+ # the staticsite properties. See example.
492
+ # @param [Hash{String => String}] A hash of custom headers that will be added
493
+ # to the HTTP request.
494
+ #
495
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
496
+ #
497
+ def create_or_update_static_site_async(resource_group_name, name, static_site_envelope, custom_headers:nil)
498
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
499
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
500
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
501
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
502
+ fail ArgumentError, 'name is nil' if name.nil?
503
+ fail ArgumentError, 'static_site_envelope is nil' if static_site_envelope.nil?
504
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
505
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
506
+
507
+
508
+ request_headers = {}
509
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
510
+
511
+ # Set Headers
512
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
513
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
514
+
515
+ # Serialize Request
516
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteARMResource.mapper()
517
+ request_content = @client.serialize(request_mapper, static_site_envelope)
518
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
519
+
520
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}'
521
+
522
+ request_url = @base_url || @client.base_url
523
+
524
+ options = {
525
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
526
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
527
+ query_params: {'api-version' => @client.api_version},
528
+ body: request_content,
529
+ headers: request_headers.merge(custom_headers || {}),
530
+ base_url: request_url
531
+ }
532
+ promise = @client.make_request_async(:put, path_template, options)
533
+
534
+ promise = promise.then do |result|
535
+ http_response = result.response
536
+ status_code = http_response.status
537
+ response_content = http_response.body
538
+ unless status_code == 200 || status_code == 202
539
+ error_model = JSON.load(response_content)
540
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
541
+ end
542
+
543
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
544
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
545
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
546
+ # Deserialize Response
547
+ if status_code == 200
548
+ begin
549
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
550
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteARMResource.mapper()
551
+ result.body = @client.deserialize(result_mapper, parsed_response)
552
+ rescue Exception => e
553
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
554
+ end
555
+ end
556
+ # Deserialize Response
557
+ if status_code == 202
558
+ begin
559
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
560
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteARMResource.mapper()
561
+ result.body = @client.deserialize(result_mapper, parsed_response)
562
+ rescue Exception => e
563
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
564
+ end
565
+ end
566
+
567
+ result
568
+ end
569
+
570
+ promise.execute
571
+ end
572
+
573
+ #
574
+ # Deletes a static site.
575
+ #
576
+ # Description for Deletes a static site.
577
+ #
578
+ # @param resource_group_name [String] Name of the resource group to which the
579
+ # resource belongs.
580
+ # @param name [String] Name of the static site to delete.
581
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
582
+ # will be added to the HTTP request.
583
+ #
584
+ #
585
+ def delete_static_site(resource_group_name, name, custom_headers:nil)
586
+ response = delete_static_site_async(resource_group_name, name, custom_headers:custom_headers).value!
587
+ nil
588
+ end
589
+
590
+ #
591
+ # Deletes a static site.
592
+ #
593
+ # Description for Deletes a static site.
594
+ #
595
+ # @param resource_group_name [String] Name of the resource group to which the
596
+ # resource belongs.
597
+ # @param name [String] Name of the static site to delete.
598
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
599
+ # will be added to the HTTP request.
600
+ #
601
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
602
+ #
603
+ def delete_static_site_with_http_info(resource_group_name, name, custom_headers:nil)
604
+ delete_static_site_async(resource_group_name, name, custom_headers:custom_headers).value!
605
+ end
606
+
607
+ #
608
+ # Deletes a static site.
609
+ #
610
+ # Description for Deletes a static site.
611
+ #
612
+ # @param resource_group_name [String] Name of the resource group to which the
613
+ # resource belongs.
614
+ # @param name [String] Name of the static site to delete.
615
+ # @param [Hash{String => String}] A hash of custom headers that will be added
616
+ # to the HTTP request.
617
+ #
618
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
619
+ #
620
+ def delete_static_site_async(resource_group_name, name, custom_headers:nil)
621
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
622
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
623
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
624
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
625
+ fail ArgumentError, 'name is nil' if name.nil?
626
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
627
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
628
+
629
+
630
+ request_headers = {}
631
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
632
+
633
+ # Set Headers
634
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
635
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
636
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}'
637
+
638
+ request_url = @base_url || @client.base_url
639
+
640
+ options = {
641
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
642
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
643
+ query_params: {'api-version' => @client.api_version},
644
+ headers: request_headers.merge(custom_headers || {}),
645
+ base_url: request_url
646
+ }
647
+ promise = @client.make_request_async(:delete, path_template, options)
648
+
649
+ promise = promise.then do |result|
650
+ http_response = result.response
651
+ status_code = http_response.status
652
+ response_content = http_response.body
653
+ unless status_code == 200 || status_code == 202
654
+ error_model = JSON.load(response_content)
655
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
656
+ end
657
+
658
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
659
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
660
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
661
+
662
+ result
663
+ end
664
+
665
+ promise.execute
666
+ end
667
+
668
+ #
669
+ # Creates a new static site in an existing resource group, or updates an
670
+ # existing static site.
671
+ #
672
+ # Description for Creates a new static site in an existing resource group, or
673
+ # updates an existing static site.
674
+ #
675
+ # @param resource_group_name [String] Name of the resource group to which the
676
+ # resource belongs.
677
+ # @param name [String] Name of the static site to create or update.
678
+ # @param static_site_envelope [StaticSitePatchResource] A JSON representation
679
+ # of the staticsite properties. See example.
680
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
681
+ # will be added to the HTTP request.
682
+ #
683
+ # @return [StaticSiteARMResource] operation results.
684
+ #
685
+ def update_static_site(resource_group_name, name, static_site_envelope, custom_headers:nil)
686
+ response = update_static_site_async(resource_group_name, name, static_site_envelope, custom_headers:custom_headers).value!
687
+ response.body unless response.nil?
688
+ end
689
+
690
+ #
691
+ # Creates a new static site in an existing resource group, or updates an
692
+ # existing static site.
693
+ #
694
+ # Description for Creates a new static site in an existing resource group, or
695
+ # updates an existing static site.
696
+ #
697
+ # @param resource_group_name [String] Name of the resource group to which the
698
+ # resource belongs.
699
+ # @param name [String] Name of the static site to create or update.
700
+ # @param static_site_envelope [StaticSitePatchResource] A JSON representation
701
+ # of the staticsite properties. See example.
702
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
703
+ # will be added to the HTTP request.
704
+ #
705
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
706
+ #
707
+ def update_static_site_with_http_info(resource_group_name, name, static_site_envelope, custom_headers:nil)
708
+ update_static_site_async(resource_group_name, name, static_site_envelope, custom_headers:custom_headers).value!
709
+ end
710
+
711
+ #
712
+ # Creates a new static site in an existing resource group, or updates an
713
+ # existing static site.
714
+ #
715
+ # Description for Creates a new static site in an existing resource group, or
716
+ # updates an existing static site.
717
+ #
718
+ # @param resource_group_name [String] Name of the resource group to which the
719
+ # resource belongs.
720
+ # @param name [String] Name of the static site to create or update.
721
+ # @param static_site_envelope [StaticSitePatchResource] A JSON representation
722
+ # of the staticsite properties. See example.
723
+ # @param [Hash{String => String}] A hash of custom headers that will be added
724
+ # to the HTTP request.
725
+ #
726
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
727
+ #
728
+ def update_static_site_async(resource_group_name, name, static_site_envelope, custom_headers:nil)
729
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
730
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
731
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
732
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
733
+ fail ArgumentError, 'name is nil' if name.nil?
734
+ fail ArgumentError, 'static_site_envelope is nil' if static_site_envelope.nil?
735
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
736
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
737
+
738
+
739
+ request_headers = {}
740
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
741
+
742
+ # Set Headers
743
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
744
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
745
+
746
+ # Serialize Request
747
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSitePatchResource.mapper()
748
+ request_content = @client.serialize(request_mapper, static_site_envelope)
749
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
750
+
751
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}'
752
+
753
+ request_url = @base_url || @client.base_url
754
+
755
+ options = {
756
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
757
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
758
+ query_params: {'api-version' => @client.api_version},
759
+ body: request_content,
760
+ headers: request_headers.merge(custom_headers || {}),
761
+ base_url: request_url
762
+ }
763
+ promise = @client.make_request_async(:patch, path_template, options)
764
+
765
+ promise = promise.then do |result|
766
+ http_response = result.response
767
+ status_code = http_response.status
768
+ response_content = http_response.body
769
+ unless status_code == 200 || status_code == 202
770
+ error_model = JSON.load(response_content)
771
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
772
+ end
773
+
774
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
775
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
776
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
777
+ # Deserialize Response
778
+ if status_code == 200
779
+ begin
780
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
781
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteARMResource.mapper()
782
+ result.body = @client.deserialize(result_mapper, parsed_response)
783
+ rescue Exception => e
784
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
785
+ end
786
+ end
787
+ # Deserialize Response
788
+ if status_code == 202
789
+ begin
790
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
791
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteARMResource.mapper()
792
+ result.body = @client.deserialize(result_mapper, parsed_response)
793
+ rescue Exception => e
794
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
795
+ end
796
+ end
797
+
798
+ result
799
+ end
800
+
801
+ promise.execute
802
+ end
803
+
804
+ #
805
+ # Gets the list of users of a static site.
806
+ #
807
+ # Description for Gets the list of users of a static site.
808
+ #
809
+ # @param resource_group_name [String] Name of the resource group to which the
810
+ # resource belongs.
811
+ # @param name [String] Name of the static site.
812
+ # @param authprovider [String] The auth provider for the users.
813
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
814
+ # will be added to the HTTP request.
815
+ #
816
+ # @return [Array<StaticSiteUserARMResource>] operation results.
817
+ #
818
+ def list_static_site_users(resource_group_name, name, authprovider, custom_headers:nil)
819
+ first_page = list_static_site_users_as_lazy(resource_group_name, name, authprovider, custom_headers:custom_headers)
820
+ first_page.get_all_items
821
+ end
822
+
823
+ #
824
+ # Gets the list of users of a static site.
825
+ #
826
+ # Description for Gets the list of users of a static site.
827
+ #
828
+ # @param resource_group_name [String] Name of the resource group to which the
829
+ # resource belongs.
830
+ # @param name [String] Name of the static site.
831
+ # @param authprovider [String] The auth provider for the users.
832
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
833
+ # will be added to the HTTP request.
834
+ #
835
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
836
+ #
837
+ def list_static_site_users_with_http_info(resource_group_name, name, authprovider, custom_headers:nil)
838
+ list_static_site_users_async(resource_group_name, name, authprovider, custom_headers:custom_headers).value!
839
+ end
840
+
841
+ #
842
+ # Gets the list of users of a static site.
843
+ #
844
+ # Description for Gets the list of users of a static site.
845
+ #
846
+ # @param resource_group_name [String] Name of the resource group to which the
847
+ # resource belongs.
848
+ # @param name [String] Name of the static site.
849
+ # @param authprovider [String] The auth provider for the users.
850
+ # @param [Hash{String => String}] A hash of custom headers that will be added
851
+ # to the HTTP request.
852
+ #
853
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
854
+ #
855
+ def list_static_site_users_async(resource_group_name, name, authprovider, custom_headers:nil)
856
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
857
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
858
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
859
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
860
+ fail ArgumentError, 'name is nil' if name.nil?
861
+ fail ArgumentError, 'authprovider is nil' if authprovider.nil?
862
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
863
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
864
+
865
+
866
+ request_headers = {}
867
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
868
+
869
+ # Set Headers
870
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
871
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
872
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/authproviders/{authprovider}/listUsers'
873
+
874
+ request_url = @base_url || @client.base_url
875
+
876
+ options = {
877
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
878
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'authprovider' => authprovider,'subscriptionId' => @client.subscription_id},
879
+ query_params: {'api-version' => @client.api_version},
880
+ headers: request_headers.merge(custom_headers || {}),
881
+ base_url: request_url
882
+ }
883
+ promise = @client.make_request_async(:post, path_template, options)
884
+
885
+ promise = promise.then do |result|
886
+ http_response = result.response
887
+ status_code = http_response.status
888
+ response_content = http_response.body
889
+ unless status_code == 200
890
+ error_model = JSON.load(response_content)
891
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
892
+ end
893
+
894
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
895
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
896
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
897
+ # Deserialize Response
898
+ if status_code == 200
899
+ begin
900
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
901
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteUserCollection.mapper()
902
+ result.body = @client.deserialize(result_mapper, parsed_response)
903
+ rescue Exception => e
904
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
905
+ end
906
+ end
907
+
908
+ result
909
+ end
910
+
911
+ promise.execute
912
+ end
913
+
914
+ #
915
+ # Deletes the user entry from the static site.
916
+ #
917
+ # Description for Deletes the user entry from the static site.
918
+ #
919
+ # @param resource_group_name [String] Name of the resource group to which the
920
+ # resource belongs.
921
+ # @param name [String] Name of the staticsite.
922
+ # @param authprovider [String] The auth provider for this user.
923
+ # @param userid [String] The user id of the user.
924
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
925
+ # will be added to the HTTP request.
926
+ #
927
+ #
928
+ def delete_static_site_user(resource_group_name, name, authprovider, userid, custom_headers:nil)
929
+ response = delete_static_site_user_async(resource_group_name, name, authprovider, userid, custom_headers:custom_headers).value!
930
+ nil
931
+ end
932
+
933
+ #
934
+ # Deletes the user entry from the static site.
935
+ #
936
+ # Description for Deletes the user entry from the static site.
937
+ #
938
+ # @param resource_group_name [String] Name of the resource group to which the
939
+ # resource belongs.
940
+ # @param name [String] Name of the staticsite.
941
+ # @param authprovider [String] The auth provider for this user.
942
+ # @param userid [String] The user id of the user.
943
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
944
+ # will be added to the HTTP request.
945
+ #
946
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
947
+ #
948
+ def delete_static_site_user_with_http_info(resource_group_name, name, authprovider, userid, custom_headers:nil)
949
+ delete_static_site_user_async(resource_group_name, name, authprovider, userid, custom_headers:custom_headers).value!
950
+ end
951
+
952
+ #
953
+ # Deletes the user entry from the static site.
954
+ #
955
+ # Description for Deletes the user entry from the static site.
956
+ #
957
+ # @param resource_group_name [String] Name of the resource group to which the
958
+ # resource belongs.
959
+ # @param name [String] Name of the staticsite.
960
+ # @param authprovider [String] The auth provider for this user.
961
+ # @param userid [String] The user id of the user.
962
+ # @param [Hash{String => String}] A hash of custom headers that will be added
963
+ # to the HTTP request.
964
+ #
965
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
966
+ #
967
+ def delete_static_site_user_async(resource_group_name, name, authprovider, userid, custom_headers:nil)
968
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
969
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
970
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
971
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
972
+ fail ArgumentError, 'name is nil' if name.nil?
973
+ fail ArgumentError, 'authprovider is nil' if authprovider.nil?
974
+ fail ArgumentError, 'userid is nil' if userid.nil?
975
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
976
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
977
+
978
+
979
+ request_headers = {}
980
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
981
+
982
+ # Set Headers
983
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
984
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
985
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/authproviders/{authprovider}/users/{userid}'
986
+
987
+ request_url = @base_url || @client.base_url
988
+
989
+ options = {
990
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
991
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'authprovider' => authprovider,'userid' => userid,'subscriptionId' => @client.subscription_id},
992
+ query_params: {'api-version' => @client.api_version},
993
+ headers: request_headers.merge(custom_headers || {}),
994
+ base_url: request_url
995
+ }
996
+ promise = @client.make_request_async(:delete, path_template, options)
997
+
998
+ promise = promise.then do |result|
999
+ http_response = result.response
1000
+ status_code = http_response.status
1001
+ response_content = http_response.body
1002
+ unless status_code == 200
1003
+ error_model = JSON.load(response_content)
1004
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1005
+ end
1006
+
1007
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1008
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1009
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1010
+
1011
+ result
1012
+ end
1013
+
1014
+ promise.execute
1015
+ end
1016
+
1017
+ #
1018
+ # Updates a user entry with the listed roles
1019
+ #
1020
+ # Description for Updates a user entry with the listed roles
1021
+ #
1022
+ # @param resource_group_name [String] Name of the resource group to which the
1023
+ # resource belongs.
1024
+ # @param name [String] Name of the static site.
1025
+ # @param authprovider [String] The auth provider for this user.
1026
+ # @param userid [String] The user id of the user.
1027
+ # @param static_site_user_envelope [StaticSiteUserARMResource] A JSON
1028
+ # representation of the StaticSiteUser properties. See example.
1029
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1030
+ # will be added to the HTTP request.
1031
+ #
1032
+ # @return [StaticSiteUserARMResource] operation results.
1033
+ #
1034
+ def update_static_site_user(resource_group_name, name, authprovider, userid, static_site_user_envelope, custom_headers:nil)
1035
+ response = update_static_site_user_async(resource_group_name, name, authprovider, userid, static_site_user_envelope, custom_headers:custom_headers).value!
1036
+ response.body unless response.nil?
1037
+ end
1038
+
1039
+ #
1040
+ # Updates a user entry with the listed roles
1041
+ #
1042
+ # Description for Updates a user entry with the listed roles
1043
+ #
1044
+ # @param resource_group_name [String] Name of the resource group to which the
1045
+ # resource belongs.
1046
+ # @param name [String] Name of the static site.
1047
+ # @param authprovider [String] The auth provider for this user.
1048
+ # @param userid [String] The user id of the user.
1049
+ # @param static_site_user_envelope [StaticSiteUserARMResource] A JSON
1050
+ # representation of the StaticSiteUser properties. See example.
1051
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1052
+ # will be added to the HTTP request.
1053
+ #
1054
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1055
+ #
1056
+ def update_static_site_user_with_http_info(resource_group_name, name, authprovider, userid, static_site_user_envelope, custom_headers:nil)
1057
+ update_static_site_user_async(resource_group_name, name, authprovider, userid, static_site_user_envelope, custom_headers:custom_headers).value!
1058
+ end
1059
+
1060
+ #
1061
+ # Updates a user entry with the listed roles
1062
+ #
1063
+ # Description for Updates a user entry with the listed roles
1064
+ #
1065
+ # @param resource_group_name [String] Name of the resource group to which the
1066
+ # resource belongs.
1067
+ # @param name [String] Name of the static site.
1068
+ # @param authprovider [String] The auth provider for this user.
1069
+ # @param userid [String] The user id of the user.
1070
+ # @param static_site_user_envelope [StaticSiteUserARMResource] A JSON
1071
+ # representation of the StaticSiteUser properties. See example.
1072
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1073
+ # to the HTTP request.
1074
+ #
1075
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1076
+ #
1077
+ def update_static_site_user_async(resource_group_name, name, authprovider, userid, static_site_user_envelope, custom_headers:nil)
1078
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1079
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1080
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1081
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1082
+ fail ArgumentError, 'name is nil' if name.nil?
1083
+ fail ArgumentError, 'authprovider is nil' if authprovider.nil?
1084
+ fail ArgumentError, 'userid is nil' if userid.nil?
1085
+ fail ArgumentError, 'static_site_user_envelope is nil' if static_site_user_envelope.nil?
1086
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1087
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1088
+
1089
+
1090
+ request_headers = {}
1091
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1092
+
1093
+ # Set Headers
1094
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1095
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1096
+
1097
+ # Serialize Request
1098
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteUserARMResource.mapper()
1099
+ request_content = @client.serialize(request_mapper, static_site_user_envelope)
1100
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1101
+
1102
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/authproviders/{authprovider}/users/{userid}'
1103
+
1104
+ request_url = @base_url || @client.base_url
1105
+
1106
+ options = {
1107
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1108
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'authprovider' => authprovider,'userid' => userid,'subscriptionId' => @client.subscription_id},
1109
+ query_params: {'api-version' => @client.api_version},
1110
+ body: request_content,
1111
+ headers: request_headers.merge(custom_headers || {}),
1112
+ base_url: request_url
1113
+ }
1114
+ promise = @client.make_request_async(:patch, path_template, options)
1115
+
1116
+ promise = promise.then do |result|
1117
+ http_response = result.response
1118
+ status_code = http_response.status
1119
+ response_content = http_response.body
1120
+ unless status_code == 200
1121
+ error_model = JSON.load(response_content)
1122
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1123
+ end
1124
+
1125
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1126
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1127
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1128
+ # Deserialize Response
1129
+ if status_code == 200
1130
+ begin
1131
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1132
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteUserARMResource.mapper()
1133
+ result.body = @client.deserialize(result_mapper, parsed_response)
1134
+ rescue Exception => e
1135
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1136
+ end
1137
+ end
1138
+
1139
+ result
1140
+ end
1141
+
1142
+ promise.execute
1143
+ end
1144
+
1145
+ #
1146
+ # Gets all static site builds for a particular static site.
1147
+ #
1148
+ # Description for Gets all static site builds for a particular static site.
1149
+ #
1150
+ # @param resource_group_name [String] Name of the resource group to which the
1151
+ # resource belongs.
1152
+ # @param name [String] Name of the static site.
1153
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1154
+ # will be added to the HTTP request.
1155
+ #
1156
+ # @return [Array<StaticSiteBuildARMResource>] operation results.
1157
+ #
1158
+ def get_static_site_builds(resource_group_name, name, custom_headers:nil)
1159
+ first_page = get_static_site_builds_as_lazy(resource_group_name, name, custom_headers:custom_headers)
1160
+ first_page.get_all_items
1161
+ end
1162
+
1163
+ #
1164
+ # Gets all static site builds for a particular static site.
1165
+ #
1166
+ # Description for Gets all static site builds for a particular static site.
1167
+ #
1168
+ # @param resource_group_name [String] Name of the resource group to which the
1169
+ # resource belongs.
1170
+ # @param name [String] Name of the static site.
1171
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1172
+ # will be added to the HTTP request.
1173
+ #
1174
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1175
+ #
1176
+ def get_static_site_builds_with_http_info(resource_group_name, name, custom_headers:nil)
1177
+ get_static_site_builds_async(resource_group_name, name, custom_headers:custom_headers).value!
1178
+ end
1179
+
1180
+ #
1181
+ # Gets all static site builds for a particular static site.
1182
+ #
1183
+ # Description for Gets all static site builds for a particular static site.
1184
+ #
1185
+ # @param resource_group_name [String] Name of the resource group to which the
1186
+ # resource belongs.
1187
+ # @param name [String] Name of the static site.
1188
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1189
+ # to the HTTP request.
1190
+ #
1191
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1192
+ #
1193
+ def get_static_site_builds_async(resource_group_name, name, custom_headers:nil)
1194
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1195
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1196
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1197
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1198
+ fail ArgumentError, 'name is nil' if name.nil?
1199
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1200
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1201
+
1202
+
1203
+ request_headers = {}
1204
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1205
+
1206
+ # Set Headers
1207
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1208
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1209
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds'
1210
+
1211
+ request_url = @base_url || @client.base_url
1212
+
1213
+ options = {
1214
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1215
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
1216
+ query_params: {'api-version' => @client.api_version},
1217
+ headers: request_headers.merge(custom_headers || {}),
1218
+ base_url: request_url
1219
+ }
1220
+ promise = @client.make_request_async(:get, path_template, options)
1221
+
1222
+ promise = promise.then do |result|
1223
+ http_response = result.response
1224
+ status_code = http_response.status
1225
+ response_content = http_response.body
1226
+ unless status_code == 200
1227
+ error_model = JSON.load(response_content)
1228
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1229
+ end
1230
+
1231
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1232
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1233
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1234
+ # Deserialize Response
1235
+ if status_code == 200
1236
+ begin
1237
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1238
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteBuildCollection.mapper()
1239
+ result.body = @client.deserialize(result_mapper, parsed_response)
1240
+ rescue Exception => e
1241
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1242
+ end
1243
+ end
1244
+
1245
+ result
1246
+ end
1247
+
1248
+ promise.execute
1249
+ end
1250
+
1251
+ #
1252
+ # Gets the details of a static site build.
1253
+ #
1254
+ # Description for Gets the details of a static site build.
1255
+ #
1256
+ # @param resource_group_name [String] Name of the resource group to which the
1257
+ # resource belongs.
1258
+ # @param name [String] Name of the static site.
1259
+ # @param pr_id [String] The stage site identifier.
1260
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1261
+ # will be added to the HTTP request.
1262
+ #
1263
+ # @return [StaticSiteBuildARMResource] operation results.
1264
+ #
1265
+ def get_static_site_build(resource_group_name, name, pr_id, custom_headers:nil)
1266
+ response = get_static_site_build_async(resource_group_name, name, pr_id, custom_headers:custom_headers).value!
1267
+ response.body unless response.nil?
1268
+ end
1269
+
1270
+ #
1271
+ # Gets the details of a static site build.
1272
+ #
1273
+ # Description for Gets the details of a static site build.
1274
+ #
1275
+ # @param resource_group_name [String] Name of the resource group to which the
1276
+ # resource belongs.
1277
+ # @param name [String] Name of the static site.
1278
+ # @param pr_id [String] The stage site identifier.
1279
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1280
+ # will be added to the HTTP request.
1281
+ #
1282
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1283
+ #
1284
+ def get_static_site_build_with_http_info(resource_group_name, name, pr_id, custom_headers:nil)
1285
+ get_static_site_build_async(resource_group_name, name, pr_id, custom_headers:custom_headers).value!
1286
+ end
1287
+
1288
+ #
1289
+ # Gets the details of a static site build.
1290
+ #
1291
+ # Description for Gets the details of a static site build.
1292
+ #
1293
+ # @param resource_group_name [String] Name of the resource group to which the
1294
+ # resource belongs.
1295
+ # @param name [String] Name of the static site.
1296
+ # @param pr_id [String] The stage site identifier.
1297
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1298
+ # to the HTTP request.
1299
+ #
1300
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1301
+ #
1302
+ def get_static_site_build_async(resource_group_name, name, pr_id, custom_headers:nil)
1303
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1304
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1305
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1306
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1307
+ fail ArgumentError, 'name is nil' if name.nil?
1308
+ fail ArgumentError, 'pr_id is nil' if pr_id.nil?
1309
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1310
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1311
+
1312
+
1313
+ request_headers = {}
1314
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1315
+
1316
+ # Set Headers
1317
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1318
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1319
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{prId}'
1320
+
1321
+ request_url = @base_url || @client.base_url
1322
+
1323
+ options = {
1324
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1325
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'prId' => pr_id,'subscriptionId' => @client.subscription_id},
1326
+ query_params: {'api-version' => @client.api_version},
1327
+ headers: request_headers.merge(custom_headers || {}),
1328
+ base_url: request_url
1329
+ }
1330
+ promise = @client.make_request_async(:get, path_template, options)
1331
+
1332
+ promise = promise.then do |result|
1333
+ http_response = result.response
1334
+ status_code = http_response.status
1335
+ response_content = http_response.body
1336
+ unless status_code == 200
1337
+ error_model = JSON.load(response_content)
1338
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1339
+ end
1340
+
1341
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1342
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1343
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1344
+ # Deserialize Response
1345
+ if status_code == 200
1346
+ begin
1347
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1348
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteBuildARMResource.mapper()
1349
+ result.body = @client.deserialize(result_mapper, parsed_response)
1350
+ rescue Exception => e
1351
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1352
+ end
1353
+ end
1354
+
1355
+ result
1356
+ end
1357
+
1358
+ promise.execute
1359
+ end
1360
+
1361
+ #
1362
+ # Deletes a static site build.
1363
+ #
1364
+ # Description for Deletes a static site build.
1365
+ #
1366
+ # @param resource_group_name [String] Name of the resource group to which the
1367
+ # resource belongs.
1368
+ # @param name [String] Name of the static site.
1369
+ # @param pr_id [String] The stage site identifier.
1370
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1371
+ # will be added to the HTTP request.
1372
+ #
1373
+ #
1374
+ def delete_static_site_build(resource_group_name, name, pr_id, custom_headers:nil)
1375
+ response = delete_static_site_build_async(resource_group_name, name, pr_id, custom_headers:custom_headers).value!
1376
+ nil
1377
+ end
1378
+
1379
+ #
1380
+ # Deletes a static site build.
1381
+ #
1382
+ # Description for Deletes a static site build.
1383
+ #
1384
+ # @param resource_group_name [String] Name of the resource group to which the
1385
+ # resource belongs.
1386
+ # @param name [String] Name of the static site.
1387
+ # @param pr_id [String] The stage site identifier.
1388
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1389
+ # will be added to the HTTP request.
1390
+ #
1391
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1392
+ #
1393
+ def delete_static_site_build_with_http_info(resource_group_name, name, pr_id, custom_headers:nil)
1394
+ delete_static_site_build_async(resource_group_name, name, pr_id, custom_headers:custom_headers).value!
1395
+ end
1396
+
1397
+ #
1398
+ # Deletes a static site build.
1399
+ #
1400
+ # Description for Deletes a static site build.
1401
+ #
1402
+ # @param resource_group_name [String] Name of the resource group to which the
1403
+ # resource belongs.
1404
+ # @param name [String] Name of the static site.
1405
+ # @param pr_id [String] The stage site identifier.
1406
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1407
+ # to the HTTP request.
1408
+ #
1409
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1410
+ #
1411
+ def delete_static_site_build_async(resource_group_name, name, pr_id, custom_headers:nil)
1412
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1413
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1414
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1415
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1416
+ fail ArgumentError, 'name is nil' if name.nil?
1417
+ fail ArgumentError, 'pr_id is nil' if pr_id.nil?
1418
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1419
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1420
+
1421
+
1422
+ request_headers = {}
1423
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1424
+
1425
+ # Set Headers
1426
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1427
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1428
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{prId}'
1429
+
1430
+ request_url = @base_url || @client.base_url
1431
+
1432
+ options = {
1433
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1434
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'prId' => pr_id,'subscriptionId' => @client.subscription_id},
1435
+ query_params: {'api-version' => @client.api_version},
1436
+ headers: request_headers.merge(custom_headers || {}),
1437
+ base_url: request_url
1438
+ }
1439
+ promise = @client.make_request_async(:delete, path_template, options)
1440
+
1441
+ promise = promise.then do |result|
1442
+ http_response = result.response
1443
+ status_code = http_response.status
1444
+ response_content = http_response.body
1445
+ unless status_code == 200 || status_code == 202
1446
+ error_model = JSON.load(response_content)
1447
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1448
+ end
1449
+
1450
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1451
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1452
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1453
+
1454
+ result
1455
+ end
1456
+
1457
+ promise.execute
1458
+ end
1459
+
1460
+ #
1461
+ # Creates or updates the function app settings of a static site build.
1462
+ #
1463
+ # Description for Creates or updates the function app settings of a static site
1464
+ # build.
1465
+ #
1466
+ # @param resource_group_name [String] Name of the resource group to which the
1467
+ # resource belongs.
1468
+ # @param name [String] Name of the static site.
1469
+ # @param pr_id [String] The stage site identifier.
1470
+ # @param app_settings [StringDictionary]
1471
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1472
+ # will be added to the HTTP request.
1473
+ #
1474
+ # @return [StringDictionary] operation results.
1475
+ #
1476
+ def create_or_update_static_site_build_function_app_settings(resource_group_name, name, pr_id, app_settings, custom_headers:nil)
1477
+ response = create_or_update_static_site_build_function_app_settings_async(resource_group_name, name, pr_id, app_settings, custom_headers:custom_headers).value!
1478
+ response.body unless response.nil?
1479
+ end
1480
+
1481
+ #
1482
+ # Creates or updates the function app settings of a static site build.
1483
+ #
1484
+ # Description for Creates or updates the function app settings of a static site
1485
+ # build.
1486
+ #
1487
+ # @param resource_group_name [String] Name of the resource group to which the
1488
+ # resource belongs.
1489
+ # @param name [String] Name of the static site.
1490
+ # @param pr_id [String] The stage site identifier.
1491
+ # @param app_settings [StringDictionary]
1492
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1493
+ # will be added to the HTTP request.
1494
+ #
1495
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1496
+ #
1497
+ def create_or_update_static_site_build_function_app_settings_with_http_info(resource_group_name, name, pr_id, app_settings, custom_headers:nil)
1498
+ create_or_update_static_site_build_function_app_settings_async(resource_group_name, name, pr_id, app_settings, custom_headers:custom_headers).value!
1499
+ end
1500
+
1501
+ #
1502
+ # Creates or updates the function app settings of a static site build.
1503
+ #
1504
+ # Description for Creates or updates the function app settings of a static site
1505
+ # build.
1506
+ #
1507
+ # @param resource_group_name [String] Name of the resource group to which the
1508
+ # resource belongs.
1509
+ # @param name [String] Name of the static site.
1510
+ # @param pr_id [String] The stage site identifier.
1511
+ # @param app_settings [StringDictionary]
1512
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1513
+ # to the HTTP request.
1514
+ #
1515
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1516
+ #
1517
+ def create_or_update_static_site_build_function_app_settings_async(resource_group_name, name, pr_id, app_settings, custom_headers:nil)
1518
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1519
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1520
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1521
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1522
+ fail ArgumentError, 'name is nil' if name.nil?
1523
+ fail ArgumentError, 'pr_id is nil' if pr_id.nil?
1524
+ fail ArgumentError, 'app_settings is nil' if app_settings.nil?
1525
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1526
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1527
+
1528
+
1529
+ request_headers = {}
1530
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1531
+
1532
+ # Set Headers
1533
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1534
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1535
+
1536
+ # Serialize Request
1537
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StringDictionary.mapper()
1538
+ request_content = @client.serialize(request_mapper, app_settings)
1539
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1540
+
1541
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{prId}/config/functionappsettings'
1542
+
1543
+ request_url = @base_url || @client.base_url
1544
+
1545
+ options = {
1546
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1547
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'prId' => pr_id,'subscriptionId' => @client.subscription_id},
1548
+ query_params: {'api-version' => @client.api_version},
1549
+ body: request_content,
1550
+ headers: request_headers.merge(custom_headers || {}),
1551
+ base_url: request_url
1552
+ }
1553
+ promise = @client.make_request_async(:put, path_template, options)
1554
+
1555
+ promise = promise.then do |result|
1556
+ http_response = result.response
1557
+ status_code = http_response.status
1558
+ response_content = http_response.body
1559
+ unless status_code == 200 || status_code == 202
1560
+ error_model = JSON.load(response_content)
1561
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1562
+ end
1563
+
1564
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1565
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1566
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1567
+ # Deserialize Response
1568
+ if status_code == 200
1569
+ begin
1570
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1571
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StringDictionary.mapper()
1572
+ result.body = @client.deserialize(result_mapper, parsed_response)
1573
+ rescue Exception => e
1574
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1575
+ end
1576
+ end
1577
+ # Deserialize Response
1578
+ if status_code == 202
1579
+ begin
1580
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1581
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StringDictionary.mapper()
1582
+ result.body = @client.deserialize(result_mapper, parsed_response)
1583
+ rescue Exception => e
1584
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1585
+ end
1586
+ end
1587
+
1588
+ result
1589
+ end
1590
+
1591
+ promise.execute
1592
+ end
1593
+
1594
+ #
1595
+ # Gets the functions of a particular static site build.
1596
+ #
1597
+ # Description for Gets the functions of a particular static site build.
1598
+ #
1599
+ # @param resource_group_name [String] Name of the resource group to which the
1600
+ # resource belongs.
1601
+ # @param name [String] Name of the static site.
1602
+ # @param pr_id [String] The stage site identifier.
1603
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1604
+ # will be added to the HTTP request.
1605
+ #
1606
+ # @return [Array<StaticSiteFunctionOverviewARMResource>] operation results.
1607
+ #
1608
+ def list_static_site_build_functions(resource_group_name, name, pr_id, custom_headers:nil)
1609
+ first_page = list_static_site_build_functions_as_lazy(resource_group_name, name, pr_id, custom_headers:custom_headers)
1610
+ first_page.get_all_items
1611
+ end
1612
+
1613
+ #
1614
+ # Gets the functions of a particular static site build.
1615
+ #
1616
+ # Description for Gets the functions of a particular static site build.
1617
+ #
1618
+ # @param resource_group_name [String] Name of the resource group to which the
1619
+ # resource belongs.
1620
+ # @param name [String] Name of the static site.
1621
+ # @param pr_id [String] The stage site identifier.
1622
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1623
+ # will be added to the HTTP request.
1624
+ #
1625
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1626
+ #
1627
+ def list_static_site_build_functions_with_http_info(resource_group_name, name, pr_id, custom_headers:nil)
1628
+ list_static_site_build_functions_async(resource_group_name, name, pr_id, custom_headers:custom_headers).value!
1629
+ end
1630
+
1631
+ #
1632
+ # Gets the functions of a particular static site build.
1633
+ #
1634
+ # Description for Gets the functions of a particular static site build.
1635
+ #
1636
+ # @param resource_group_name [String] Name of the resource group to which the
1637
+ # resource belongs.
1638
+ # @param name [String] Name of the static site.
1639
+ # @param pr_id [String] The stage site identifier.
1640
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1641
+ # to the HTTP request.
1642
+ #
1643
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1644
+ #
1645
+ def list_static_site_build_functions_async(resource_group_name, name, pr_id, custom_headers:nil)
1646
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1647
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1648
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1649
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1650
+ fail ArgumentError, 'name is nil' if name.nil?
1651
+ fail ArgumentError, 'pr_id is nil' if pr_id.nil?
1652
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1653
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1654
+
1655
+
1656
+ request_headers = {}
1657
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1658
+
1659
+ # Set Headers
1660
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1661
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1662
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{prId}/functions'
1663
+
1664
+ request_url = @base_url || @client.base_url
1665
+
1666
+ options = {
1667
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1668
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'prId' => pr_id,'subscriptionId' => @client.subscription_id},
1669
+ query_params: {'api-version' => @client.api_version},
1670
+ headers: request_headers.merge(custom_headers || {}),
1671
+ base_url: request_url
1672
+ }
1673
+ promise = @client.make_request_async(:get, path_template, options)
1674
+
1675
+ promise = promise.then do |result|
1676
+ http_response = result.response
1677
+ status_code = http_response.status
1678
+ response_content = http_response.body
1679
+ unless status_code == 200
1680
+ error_model = JSON.load(response_content)
1681
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1682
+ end
1683
+
1684
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1685
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1686
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1687
+ # Deserialize Response
1688
+ if status_code == 200
1689
+ begin
1690
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1691
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteFunctionOverviewCollection.mapper()
1692
+ result.body = @client.deserialize(result_mapper, parsed_response)
1693
+ rescue Exception => e
1694
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1695
+ end
1696
+ end
1697
+
1698
+ result
1699
+ end
1700
+
1701
+ promise.execute
1702
+ end
1703
+
1704
+ #
1705
+ # Gets the application settings of a static site.
1706
+ #
1707
+ # Description for Gets the application settings of a static site.
1708
+ #
1709
+ # @param resource_group_name [String] Name of the resource group to which the
1710
+ # resource belongs.
1711
+ # @param name [String] Name of the static site.
1712
+ # @param pr_id [String] The stage site identifier.
1713
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1714
+ # will be added to the HTTP request.
1715
+ #
1716
+ # @return [StringDictionary] operation results.
1717
+ #
1718
+ def list_static_site_build_function_app_settings(resource_group_name, name, pr_id, custom_headers:nil)
1719
+ response = list_static_site_build_function_app_settings_async(resource_group_name, name, pr_id, custom_headers:custom_headers).value!
1720
+ response.body unless response.nil?
1721
+ end
1722
+
1723
+ #
1724
+ # Gets the application settings of a static site.
1725
+ #
1726
+ # Description for Gets the application settings of a static site.
1727
+ #
1728
+ # @param resource_group_name [String] Name of the resource group to which the
1729
+ # resource belongs.
1730
+ # @param name [String] Name of the static site.
1731
+ # @param pr_id [String] The stage site identifier.
1732
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1733
+ # will be added to the HTTP request.
1734
+ #
1735
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1736
+ #
1737
+ def list_static_site_build_function_app_settings_with_http_info(resource_group_name, name, pr_id, custom_headers:nil)
1738
+ list_static_site_build_function_app_settings_async(resource_group_name, name, pr_id, custom_headers:custom_headers).value!
1739
+ end
1740
+
1741
+ #
1742
+ # Gets the application settings of a static site.
1743
+ #
1744
+ # Description for Gets the application settings of a static site.
1745
+ #
1746
+ # @param resource_group_name [String] Name of the resource group to which the
1747
+ # resource belongs.
1748
+ # @param name [String] Name of the static site.
1749
+ # @param pr_id [String] The stage site identifier.
1750
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1751
+ # to the HTTP request.
1752
+ #
1753
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1754
+ #
1755
+ def list_static_site_build_function_app_settings_async(resource_group_name, name, pr_id, custom_headers:nil)
1756
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1757
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1758
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1759
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1760
+ fail ArgumentError, 'name is nil' if name.nil?
1761
+ fail ArgumentError, 'pr_id is nil' if pr_id.nil?
1762
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1763
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1764
+
1765
+
1766
+ request_headers = {}
1767
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1768
+
1769
+ # Set Headers
1770
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1771
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1772
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{prId}/listFunctionAppSettings'
1773
+
1774
+ request_url = @base_url || @client.base_url
1775
+
1776
+ options = {
1777
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1778
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'prId' => pr_id,'subscriptionId' => @client.subscription_id},
1779
+ query_params: {'api-version' => @client.api_version},
1780
+ headers: request_headers.merge(custom_headers || {}),
1781
+ base_url: request_url
1782
+ }
1783
+ promise = @client.make_request_async(:post, path_template, options)
1784
+
1785
+ promise = promise.then do |result|
1786
+ http_response = result.response
1787
+ status_code = http_response.status
1788
+ response_content = http_response.body
1789
+ unless status_code == 200 || status_code == 202
1790
+ error_model = JSON.load(response_content)
1791
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1792
+ end
1793
+
1794
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1795
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1796
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1797
+ # Deserialize Response
1798
+ if status_code == 200
1799
+ begin
1800
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1801
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StringDictionary.mapper()
1802
+ result.body = @client.deserialize(result_mapper, parsed_response)
1803
+ rescue Exception => e
1804
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1805
+ end
1806
+ end
1807
+ # Deserialize Response
1808
+ if status_code == 202
1809
+ begin
1810
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1811
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StringDictionary.mapper()
1812
+ result.body = @client.deserialize(result_mapper, parsed_response)
1813
+ rescue Exception => e
1814
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1815
+ end
1816
+ end
1817
+
1818
+ result
1819
+ end
1820
+
1821
+ promise.execute
1822
+ end
1823
+
1824
+ #
1825
+ # Creates or updates the function app settings of a static site.
1826
+ #
1827
+ # Description for Creates or updates the function app settings of a static
1828
+ # site.
1829
+ #
1830
+ # @param resource_group_name [String] Name of the resource group to which the
1831
+ # resource belongs.
1832
+ # @param name [String] Name of the static site.
1833
+ # @param app_settings [StringDictionary]
1834
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1835
+ # will be added to the HTTP request.
1836
+ #
1837
+ # @return [StringDictionary] operation results.
1838
+ #
1839
+ def create_or_update_static_site_function_app_settings(resource_group_name, name, app_settings, custom_headers:nil)
1840
+ response = create_or_update_static_site_function_app_settings_async(resource_group_name, name, app_settings, custom_headers:custom_headers).value!
1841
+ response.body unless response.nil?
1842
+ end
1843
+
1844
+ #
1845
+ # Creates or updates the function app settings of a static site.
1846
+ #
1847
+ # Description for Creates or updates the function app settings of a static
1848
+ # site.
1849
+ #
1850
+ # @param resource_group_name [String] Name of the resource group to which the
1851
+ # resource belongs.
1852
+ # @param name [String] Name of the static site.
1853
+ # @param app_settings [StringDictionary]
1854
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1855
+ # will be added to the HTTP request.
1856
+ #
1857
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1858
+ #
1859
+ def create_or_update_static_site_function_app_settings_with_http_info(resource_group_name, name, app_settings, custom_headers:nil)
1860
+ create_or_update_static_site_function_app_settings_async(resource_group_name, name, app_settings, custom_headers:custom_headers).value!
1861
+ end
1862
+
1863
+ #
1864
+ # Creates or updates the function app settings of a static site.
1865
+ #
1866
+ # Description for Creates or updates the function app settings of a static
1867
+ # site.
1868
+ #
1869
+ # @param resource_group_name [String] Name of the resource group to which the
1870
+ # resource belongs.
1871
+ # @param name [String] Name of the static site.
1872
+ # @param app_settings [StringDictionary]
1873
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1874
+ # to the HTTP request.
1875
+ #
1876
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1877
+ #
1878
+ def create_or_update_static_site_function_app_settings_async(resource_group_name, name, app_settings, custom_headers:nil)
1879
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1880
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1881
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1882
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
1883
+ fail ArgumentError, 'name is nil' if name.nil?
1884
+ fail ArgumentError, 'app_settings is nil' if app_settings.nil?
1885
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1886
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1887
+
1888
+
1889
+ request_headers = {}
1890
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1891
+
1892
+ # Set Headers
1893
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1894
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1895
+
1896
+ # Serialize Request
1897
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StringDictionary.mapper()
1898
+ request_content = @client.serialize(request_mapper, app_settings)
1899
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1900
+
1901
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/config/functionappsettings'
1902
+
1903
+ request_url = @base_url || @client.base_url
1904
+
1905
+ options = {
1906
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1907
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
1908
+ query_params: {'api-version' => @client.api_version},
1909
+ body: request_content,
1910
+ headers: request_headers.merge(custom_headers || {}),
1911
+ base_url: request_url
1912
+ }
1913
+ promise = @client.make_request_async(:put, path_template, options)
1914
+
1915
+ promise = promise.then do |result|
1916
+ http_response = result.response
1917
+ status_code = http_response.status
1918
+ response_content = http_response.body
1919
+ unless status_code == 200 || status_code == 202
1920
+ error_model = JSON.load(response_content)
1921
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1922
+ end
1923
+
1924
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1925
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1926
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1927
+ # Deserialize Response
1928
+ if status_code == 200
1929
+ begin
1930
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1931
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StringDictionary.mapper()
1932
+ result.body = @client.deserialize(result_mapper, parsed_response)
1933
+ rescue Exception => e
1934
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1935
+ end
1936
+ end
1937
+ # Deserialize Response
1938
+ if status_code == 202
1939
+ begin
1940
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1941
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StringDictionary.mapper()
1942
+ result.body = @client.deserialize(result_mapper, parsed_response)
1943
+ rescue Exception => e
1944
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1945
+ end
1946
+ end
1947
+
1948
+ result
1949
+ end
1950
+
1951
+ promise.execute
1952
+ end
1953
+
1954
+ #
1955
+ # Creates an invitation link for a user with the role
1956
+ #
1957
+ # Description for Creates an invitation link for a user with the role
1958
+ #
1959
+ # @param resource_group_name [String] Name of the resource group to which the
1960
+ # resource belongs.
1961
+ # @param name [String] Name of the static site.
1962
+ # @param static_site_user_roles_invitation_envelope
1963
+ # [StaticSiteUserInvitationRequestResource]
1964
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1965
+ # will be added to the HTTP request.
1966
+ #
1967
+ # @return [StaticSiteUserInvitationResponseResource] operation results.
1968
+ #
1969
+ def create_user_roles_invitation_link(resource_group_name, name, static_site_user_roles_invitation_envelope, custom_headers:nil)
1970
+ response = create_user_roles_invitation_link_async(resource_group_name, name, static_site_user_roles_invitation_envelope, custom_headers:custom_headers).value!
1971
+ response.body unless response.nil?
1972
+ end
1973
+
1974
+ #
1975
+ # Creates an invitation link for a user with the role
1976
+ #
1977
+ # Description for Creates an invitation link for a user with the role
1978
+ #
1979
+ # @param resource_group_name [String] Name of the resource group to which the
1980
+ # resource belongs.
1981
+ # @param name [String] Name of the static site.
1982
+ # @param static_site_user_roles_invitation_envelope
1983
+ # [StaticSiteUserInvitationRequestResource]
1984
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1985
+ # will be added to the HTTP request.
1986
+ #
1987
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1988
+ #
1989
+ def create_user_roles_invitation_link_with_http_info(resource_group_name, name, static_site_user_roles_invitation_envelope, custom_headers:nil)
1990
+ create_user_roles_invitation_link_async(resource_group_name, name, static_site_user_roles_invitation_envelope, custom_headers:custom_headers).value!
1991
+ end
1992
+
1993
+ #
1994
+ # Creates an invitation link for a user with the role
1995
+ #
1996
+ # Description for Creates an invitation link for a user with the role
1997
+ #
1998
+ # @param resource_group_name [String] Name of the resource group to which the
1999
+ # resource belongs.
2000
+ # @param name [String] Name of the static site.
2001
+ # @param static_site_user_roles_invitation_envelope
2002
+ # [StaticSiteUserInvitationRequestResource]
2003
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2004
+ # to the HTTP request.
2005
+ #
2006
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2007
+ #
2008
+ def create_user_roles_invitation_link_async(resource_group_name, name, static_site_user_roles_invitation_envelope, custom_headers:nil)
2009
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2010
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2011
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2012
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2013
+ fail ArgumentError, 'name is nil' if name.nil?
2014
+ fail ArgumentError, 'static_site_user_roles_invitation_envelope is nil' if static_site_user_roles_invitation_envelope.nil?
2015
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2016
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2017
+
2018
+
2019
+ request_headers = {}
2020
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2021
+
2022
+ # Set Headers
2023
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2024
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2025
+
2026
+ # Serialize Request
2027
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteUserInvitationRequestResource.mapper()
2028
+ request_content = @client.serialize(request_mapper, static_site_user_roles_invitation_envelope)
2029
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2030
+
2031
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/createUserInvitation'
2032
+
2033
+ request_url = @base_url || @client.base_url
2034
+
2035
+ options = {
2036
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2037
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
2038
+ query_params: {'api-version' => @client.api_version},
2039
+ body: request_content,
2040
+ headers: request_headers.merge(custom_headers || {}),
2041
+ base_url: request_url
2042
+ }
2043
+ promise = @client.make_request_async(:post, path_template, options)
2044
+
2045
+ promise = promise.then do |result|
2046
+ http_response = result.response
2047
+ status_code = http_response.status
2048
+ response_content = http_response.body
2049
+ unless status_code == 200
2050
+ error_model = JSON.load(response_content)
2051
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2052
+ end
2053
+
2054
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2055
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2056
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2057
+ # Deserialize Response
2058
+ if status_code == 200
2059
+ begin
2060
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2061
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteUserInvitationResponseResource.mapper()
2062
+ result.body = @client.deserialize(result_mapper, parsed_response)
2063
+ rescue Exception => e
2064
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2065
+ end
2066
+ end
2067
+
2068
+ result
2069
+ end
2070
+
2071
+ promise.execute
2072
+ end
2073
+
2074
+ #
2075
+ # Gets all static site custom domains for a particular static site.
2076
+ #
2077
+ # Description for Gets all static site custom domains for a particular static
2078
+ # site.
2079
+ #
2080
+ # @param resource_group_name [String] Name of the resource group to which the
2081
+ # resource belongs.
2082
+ # @param name [String] Name of the static site resource to search in.
2083
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2084
+ # will be added to the HTTP request.
2085
+ #
2086
+ # @return [Array<StaticSiteCustomDomainOverviewARMResource>] operation results.
2087
+ #
2088
+ def list_static_site_custom_domains(resource_group_name, name, custom_headers:nil)
2089
+ first_page = list_static_site_custom_domains_as_lazy(resource_group_name, name, custom_headers:custom_headers)
2090
+ first_page.get_all_items
2091
+ end
2092
+
2093
+ #
2094
+ # Gets all static site custom domains for a particular static site.
2095
+ #
2096
+ # Description for Gets all static site custom domains for a particular static
2097
+ # site.
2098
+ #
2099
+ # @param resource_group_name [String] Name of the resource group to which the
2100
+ # resource belongs.
2101
+ # @param name [String] Name of the static site resource to search in.
2102
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2103
+ # will be added to the HTTP request.
2104
+ #
2105
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2106
+ #
2107
+ def list_static_site_custom_domains_with_http_info(resource_group_name, name, custom_headers:nil)
2108
+ list_static_site_custom_domains_async(resource_group_name, name, custom_headers:custom_headers).value!
2109
+ end
2110
+
2111
+ #
2112
+ # Gets all static site custom domains for a particular static site.
2113
+ #
2114
+ # Description for Gets all static site custom domains for a particular static
2115
+ # site.
2116
+ #
2117
+ # @param resource_group_name [String] Name of the resource group to which the
2118
+ # resource belongs.
2119
+ # @param name [String] Name of the static site resource to search in.
2120
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2121
+ # to the HTTP request.
2122
+ #
2123
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2124
+ #
2125
+ def list_static_site_custom_domains_async(resource_group_name, name, custom_headers:nil)
2126
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2127
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2128
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2129
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2130
+ fail ArgumentError, 'name is nil' if name.nil?
2131
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2132
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2133
+
2134
+
2135
+ request_headers = {}
2136
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2137
+
2138
+ # Set Headers
2139
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2140
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2141
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains'
2142
+
2143
+ request_url = @base_url || @client.base_url
2144
+
2145
+ options = {
2146
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2147
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
2148
+ query_params: {'api-version' => @client.api_version},
2149
+ headers: request_headers.merge(custom_headers || {}),
2150
+ base_url: request_url
2151
+ }
2152
+ promise = @client.make_request_async(:get, path_template, options)
2153
+
2154
+ promise = promise.then do |result|
2155
+ http_response = result.response
2156
+ status_code = http_response.status
2157
+ response_content = http_response.body
2158
+ unless status_code == 200
2159
+ error_model = JSON.load(response_content)
2160
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2161
+ end
2162
+
2163
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2164
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2165
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2166
+ # Deserialize Response
2167
+ if status_code == 200
2168
+ begin
2169
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2170
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteCustomDomainOverviewCollection.mapper()
2171
+ result.body = @client.deserialize(result_mapper, parsed_response)
2172
+ rescue Exception => e
2173
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2174
+ end
2175
+ end
2176
+
2177
+ result
2178
+ end
2179
+
2180
+ promise.execute
2181
+ end
2182
+
2183
+ #
2184
+ # Creates a new static site custom domain in an existing resource group and
2185
+ # static site.
2186
+ #
2187
+ # Description for Creates a new static site custom domain in an existing
2188
+ # resource group and static site.
2189
+ #
2190
+ # @param resource_group_name [String] Name of the resource group to which the
2191
+ # resource belongs.
2192
+ # @param name [String] Name of the static site.
2193
+ # @param domain_name [String] The custom domain to create.
2194
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2195
+ # will be added to the HTTP request.
2196
+ #
2197
+ # @return [StaticSiteCustomDomainOverviewARMResource] operation results.
2198
+ #
2199
+ def create_or_update_static_site_custom_domain(resource_group_name, name, domain_name, custom_headers:nil)
2200
+ response = create_or_update_static_site_custom_domain_async(resource_group_name, name, domain_name, custom_headers:custom_headers).value!
2201
+ response.body unless response.nil?
2202
+ end
2203
+
2204
+ #
2205
+ # Creates a new static site custom domain in an existing resource group and
2206
+ # static site.
2207
+ #
2208
+ # Description for Creates a new static site custom domain in an existing
2209
+ # resource group and static site.
2210
+ #
2211
+ # @param resource_group_name [String] Name of the resource group to which the
2212
+ # resource belongs.
2213
+ # @param name [String] Name of the static site.
2214
+ # @param domain_name [String] The custom domain to create.
2215
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2216
+ # will be added to the HTTP request.
2217
+ #
2218
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2219
+ #
2220
+ def create_or_update_static_site_custom_domain_with_http_info(resource_group_name, name, domain_name, custom_headers:nil)
2221
+ create_or_update_static_site_custom_domain_async(resource_group_name, name, domain_name, custom_headers:custom_headers).value!
2222
+ end
2223
+
2224
+ #
2225
+ # Creates a new static site custom domain in an existing resource group and
2226
+ # static site.
2227
+ #
2228
+ # Description for Creates a new static site custom domain in an existing
2229
+ # resource group and static site.
2230
+ #
2231
+ # @param resource_group_name [String] Name of the resource group to which the
2232
+ # resource belongs.
2233
+ # @param name [String] Name of the static site.
2234
+ # @param domain_name [String] The custom domain to create.
2235
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2236
+ # to the HTTP request.
2237
+ #
2238
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2239
+ #
2240
+ def create_or_update_static_site_custom_domain_async(resource_group_name, name, domain_name, custom_headers:nil)
2241
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2242
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2243
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2244
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2245
+ fail ArgumentError, 'name is nil' if name.nil?
2246
+ fail ArgumentError, 'domain_name is nil' if domain_name.nil?
2247
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2248
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2249
+
2250
+
2251
+ request_headers = {}
2252
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2253
+
2254
+ # Set Headers
2255
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2256
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2257
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}'
2258
+
2259
+ request_url = @base_url || @client.base_url
2260
+
2261
+ options = {
2262
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2263
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'domainName' => domain_name,'subscriptionId' => @client.subscription_id},
2264
+ query_params: {'api-version' => @client.api_version},
2265
+ headers: request_headers.merge(custom_headers || {}),
2266
+ base_url: request_url
2267
+ }
2268
+ promise = @client.make_request_async(:put, path_template, options)
2269
+
2270
+ promise = promise.then do |result|
2271
+ http_response = result.response
2272
+ status_code = http_response.status
2273
+ response_content = http_response.body
2274
+ unless status_code == 200 || status_code == 202
2275
+ error_model = JSON.load(response_content)
2276
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2277
+ end
2278
+
2279
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2280
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2281
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2282
+ # Deserialize Response
2283
+ if status_code == 200
2284
+ begin
2285
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2286
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteCustomDomainOverviewARMResource.mapper()
2287
+ result.body = @client.deserialize(result_mapper, parsed_response)
2288
+ rescue Exception => e
2289
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2290
+ end
2291
+ end
2292
+ # Deserialize Response
2293
+ if status_code == 202
2294
+ begin
2295
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2296
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteCustomDomainOverviewARMResource.mapper()
2297
+ result.body = @client.deserialize(result_mapper, parsed_response)
2298
+ rescue Exception => e
2299
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2300
+ end
2301
+ end
2302
+
2303
+ result
2304
+ end
2305
+
2306
+ promise.execute
2307
+ end
2308
+
2309
+ #
2310
+ # Deletes a custom domain.
2311
+ #
2312
+ # Description for Deletes a custom domain.
2313
+ #
2314
+ # @param resource_group_name [String] Name of the resource group to which the
2315
+ # resource belongs.
2316
+ # @param name [String] Name of the static site.
2317
+ # @param domain_name [String] The custom domain to delete.
2318
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2319
+ # will be added to the HTTP request.
2320
+ #
2321
+ #
2322
+ def delete_static_site_custom_domain(resource_group_name, name, domain_name, custom_headers:nil)
2323
+ response = delete_static_site_custom_domain_async(resource_group_name, name, domain_name, custom_headers:custom_headers).value!
2324
+ nil
2325
+ end
2326
+
2327
+ #
2328
+ # Deletes a custom domain.
2329
+ #
2330
+ # Description for Deletes a custom domain.
2331
+ #
2332
+ # @param resource_group_name [String] Name of the resource group to which the
2333
+ # resource belongs.
2334
+ # @param name [String] Name of the static site.
2335
+ # @param domain_name [String] The custom domain to delete.
2336
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2337
+ # will be added to the HTTP request.
2338
+ #
2339
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2340
+ #
2341
+ def delete_static_site_custom_domain_with_http_info(resource_group_name, name, domain_name, custom_headers:nil)
2342
+ delete_static_site_custom_domain_async(resource_group_name, name, domain_name, custom_headers:custom_headers).value!
2343
+ end
2344
+
2345
+ #
2346
+ # Deletes a custom domain.
2347
+ #
2348
+ # Description for Deletes a custom domain.
2349
+ #
2350
+ # @param resource_group_name [String] Name of the resource group to which the
2351
+ # resource belongs.
2352
+ # @param name [String] Name of the static site.
2353
+ # @param domain_name [String] The custom domain to delete.
2354
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2355
+ # to the HTTP request.
2356
+ #
2357
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2358
+ #
2359
+ def delete_static_site_custom_domain_async(resource_group_name, name, domain_name, custom_headers:nil)
2360
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2361
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2362
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2363
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2364
+ fail ArgumentError, 'name is nil' if name.nil?
2365
+ fail ArgumentError, 'domain_name is nil' if domain_name.nil?
2366
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2367
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2368
+
2369
+
2370
+ request_headers = {}
2371
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2372
+
2373
+ # Set Headers
2374
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2375
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2376
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}'
2377
+
2378
+ request_url = @base_url || @client.base_url
2379
+
2380
+ options = {
2381
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2382
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'domainName' => domain_name,'subscriptionId' => @client.subscription_id},
2383
+ query_params: {'api-version' => @client.api_version},
2384
+ headers: request_headers.merge(custom_headers || {}),
2385
+ base_url: request_url
2386
+ }
2387
+ promise = @client.make_request_async(:delete, path_template, options)
2388
+
2389
+ promise = promise.then do |result|
2390
+ http_response = result.response
2391
+ status_code = http_response.status
2392
+ response_content = http_response.body
2393
+ unless status_code == 200 || status_code == 202
2394
+ error_model = JSON.load(response_content)
2395
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2396
+ end
2397
+
2398
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2399
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2400
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2401
+
2402
+ result
2403
+ end
2404
+
2405
+ promise.execute
2406
+ end
2407
+
2408
+ #
2409
+ # Validates a particular custom domain can be added to a static site.
2410
+ #
2411
+ # Description for Validates a particular custom domain can be added to a static
2412
+ # site.
2413
+ #
2414
+ # @param resource_group_name [String] Name of the resource group to which the
2415
+ # resource belongs.
2416
+ # @param name [String] Name of the static site.
2417
+ # @param domain_name [String] The custom domain to validate.
2418
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2419
+ # will be added to the HTTP request.
2420
+ #
2421
+ #
2422
+ def validate_custom_domain_can_be_added_to_static_site(resource_group_name, name, domain_name, custom_headers:nil)
2423
+ response = validate_custom_domain_can_be_added_to_static_site_async(resource_group_name, name, domain_name, custom_headers:custom_headers).value!
2424
+ nil
2425
+ end
2426
+
2427
+ #
2428
+ # Validates a particular custom domain can be added to a static site.
2429
+ #
2430
+ # Description for Validates a particular custom domain can be added to a static
2431
+ # site.
2432
+ #
2433
+ # @param resource_group_name [String] Name of the resource group to which the
2434
+ # resource belongs.
2435
+ # @param name [String] Name of the static site.
2436
+ # @param domain_name [String] The custom domain to validate.
2437
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2438
+ # will be added to the HTTP request.
2439
+ #
2440
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2441
+ #
2442
+ def validate_custom_domain_can_be_added_to_static_site_with_http_info(resource_group_name, name, domain_name, custom_headers:nil)
2443
+ validate_custom_domain_can_be_added_to_static_site_async(resource_group_name, name, domain_name, custom_headers:custom_headers).value!
2444
+ end
2445
+
2446
+ #
2447
+ # Validates a particular custom domain can be added to a static site.
2448
+ #
2449
+ # Description for Validates a particular custom domain can be added to a static
2450
+ # site.
2451
+ #
2452
+ # @param resource_group_name [String] Name of the resource group to which the
2453
+ # resource belongs.
2454
+ # @param name [String] Name of the static site.
2455
+ # @param domain_name [String] The custom domain to validate.
2456
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2457
+ # to the HTTP request.
2458
+ #
2459
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2460
+ #
2461
+ def validate_custom_domain_can_be_added_to_static_site_async(resource_group_name, name, domain_name, custom_headers:nil)
2462
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2463
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2464
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2465
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2466
+ fail ArgumentError, 'name is nil' if name.nil?
2467
+ fail ArgumentError, 'domain_name is nil' if domain_name.nil?
2468
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2469
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2470
+
2471
+
2472
+ request_headers = {}
2473
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2474
+
2475
+ # Set Headers
2476
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2477
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2478
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}/validate'
2479
+
2480
+ request_url = @base_url || @client.base_url
2481
+
2482
+ options = {
2483
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2484
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'domainName' => domain_name,'subscriptionId' => @client.subscription_id},
2485
+ query_params: {'api-version' => @client.api_version},
2486
+ headers: request_headers.merge(custom_headers || {}),
2487
+ base_url: request_url
2488
+ }
2489
+ promise = @client.make_request_async(:post, path_template, options)
2490
+
2491
+ promise = promise.then do |result|
2492
+ http_response = result.response
2493
+ status_code = http_response.status
2494
+ response_content = http_response.body
2495
+ unless status_code == 200 || status_code == 202
2496
+ error_model = JSON.load(response_content)
2497
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2498
+ end
2499
+
2500
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2501
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2502
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2503
+
2504
+ result
2505
+ end
2506
+
2507
+ promise.execute
2508
+ end
2509
+
2510
+ #
2511
+ # Detaches a static site.
2512
+ #
2513
+ # Description for Detaches a static site.
2514
+ #
2515
+ # @param resource_group_name [String] Name of the resource group to which the
2516
+ # resource belongs.
2517
+ # @param name [String] Name of the static site to detach.
2518
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2519
+ # will be added to the HTTP request.
2520
+ #
2521
+ #
2522
+ def detach_static_site(resource_group_name, name, custom_headers:nil)
2523
+ response = detach_static_site_async(resource_group_name, name, custom_headers:custom_headers).value!
2524
+ nil
2525
+ end
2526
+
2527
+ #
2528
+ # Detaches a static site.
2529
+ #
2530
+ # Description for Detaches a static site.
2531
+ #
2532
+ # @param resource_group_name [String] Name of the resource group to which the
2533
+ # resource belongs.
2534
+ # @param name [String] Name of the static site to detach.
2535
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2536
+ # will be added to the HTTP request.
2537
+ #
2538
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2539
+ #
2540
+ def detach_static_site_with_http_info(resource_group_name, name, custom_headers:nil)
2541
+ detach_static_site_async(resource_group_name, name, custom_headers:custom_headers).value!
2542
+ end
2543
+
2544
+ #
2545
+ # Detaches a static site.
2546
+ #
2547
+ # Description for Detaches a static site.
2548
+ #
2549
+ # @param resource_group_name [String] Name of the resource group to which the
2550
+ # resource belongs.
2551
+ # @param name [String] Name of the static site to detach.
2552
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2553
+ # to the HTTP request.
2554
+ #
2555
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2556
+ #
2557
+ def detach_static_site_async(resource_group_name, name, custom_headers:nil)
2558
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2559
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2560
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2561
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2562
+ fail ArgumentError, 'name is nil' if name.nil?
2563
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2564
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2565
+
2566
+
2567
+ request_headers = {}
2568
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2569
+
2570
+ # Set Headers
2571
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2572
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2573
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/detach'
2574
+
2575
+ request_url = @base_url || @client.base_url
2576
+
2577
+ options = {
2578
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2579
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
2580
+ query_params: {'api-version' => @client.api_version},
2581
+ headers: request_headers.merge(custom_headers || {}),
2582
+ base_url: request_url
2583
+ }
2584
+ promise = @client.make_request_async(:post, path_template, options)
2585
+
2586
+ promise = promise.then do |result|
2587
+ http_response = result.response
2588
+ status_code = http_response.status
2589
+ response_content = http_response.body
2590
+ unless status_code == 200 || status_code == 202
2591
+ error_model = JSON.load(response_content)
2592
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2593
+ end
2594
+
2595
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2596
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2597
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2598
+
2599
+ result
2600
+ end
2601
+
2602
+ promise.execute
2603
+ end
2604
+
2605
+ #
2606
+ # Gets the functions of a static site.
2607
+ #
2608
+ # Description for Gets the functions of a static site.
2609
+ #
2610
+ # @param resource_group_name [String] Name of the resource group to which the
2611
+ # resource belongs.
2612
+ # @param name [String] Name of the static site.
2613
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2614
+ # will be added to the HTTP request.
2615
+ #
2616
+ # @return [Array<StaticSiteFunctionOverviewARMResource>] operation results.
2617
+ #
2618
+ def list_static_site_functions(resource_group_name, name, custom_headers:nil)
2619
+ first_page = list_static_site_functions_as_lazy(resource_group_name, name, custom_headers:custom_headers)
2620
+ first_page.get_all_items
2621
+ end
2622
+
2623
+ #
2624
+ # Gets the functions of a static site.
2625
+ #
2626
+ # Description for Gets the functions of a static site.
2627
+ #
2628
+ # @param resource_group_name [String] Name of the resource group to which the
2629
+ # resource belongs.
2630
+ # @param name [String] Name of the static site.
2631
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2632
+ # will be added to the HTTP request.
2633
+ #
2634
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2635
+ #
2636
+ def list_static_site_functions_with_http_info(resource_group_name, name, custom_headers:nil)
2637
+ list_static_site_functions_async(resource_group_name, name, custom_headers:custom_headers).value!
2638
+ end
2639
+
2640
+ #
2641
+ # Gets the functions of a static site.
2642
+ #
2643
+ # Description for Gets the functions of a static site.
2644
+ #
2645
+ # @param resource_group_name [String] Name of the resource group to which the
2646
+ # resource belongs.
2647
+ # @param name [String] Name of the static site.
2648
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2649
+ # to the HTTP request.
2650
+ #
2651
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2652
+ #
2653
+ def list_static_site_functions_async(resource_group_name, name, custom_headers:nil)
2654
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2655
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2656
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2657
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2658
+ fail ArgumentError, 'name is nil' if name.nil?
2659
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2660
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2661
+
2662
+
2663
+ request_headers = {}
2664
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2665
+
2666
+ # Set Headers
2667
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2668
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2669
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/functions'
2670
+
2671
+ request_url = @base_url || @client.base_url
2672
+
2673
+ options = {
2674
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2675
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
2676
+ query_params: {'api-version' => @client.api_version},
2677
+ headers: request_headers.merge(custom_headers || {}),
2678
+ base_url: request_url
2679
+ }
2680
+ promise = @client.make_request_async(:get, path_template, options)
2681
+
2682
+ promise = promise.then do |result|
2683
+ http_response = result.response
2684
+ status_code = http_response.status
2685
+ response_content = http_response.body
2686
+ unless status_code == 200
2687
+ error_model = JSON.load(response_content)
2688
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2689
+ end
2690
+
2691
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2692
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2693
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2694
+ # Deserialize Response
2695
+ if status_code == 200
2696
+ begin
2697
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2698
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteFunctionOverviewCollection.mapper()
2699
+ result.body = @client.deserialize(result_mapper, parsed_response)
2700
+ rescue Exception => e
2701
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2702
+ end
2703
+ end
2704
+
2705
+ result
2706
+ end
2707
+
2708
+ promise.execute
2709
+ end
2710
+
2711
+ #
2712
+ # Gets the application settings of a static site.
2713
+ #
2714
+ # Description for Gets the application settings of a static site.
2715
+ #
2716
+ # @param resource_group_name [String] Name of the resource group to which the
2717
+ # resource belongs.
2718
+ # @param name [String] Name of the static site.
2719
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2720
+ # will be added to the HTTP request.
2721
+ #
2722
+ # @return [StringDictionary] operation results.
2723
+ #
2724
+ def list_static_site_function_app_settings(resource_group_name, name, custom_headers:nil)
2725
+ response = list_static_site_function_app_settings_async(resource_group_name, name, custom_headers:custom_headers).value!
2726
+ response.body unless response.nil?
2727
+ end
2728
+
2729
+ #
2730
+ # Gets the application settings of a static site.
2731
+ #
2732
+ # Description for Gets the application settings of a static site.
2733
+ #
2734
+ # @param resource_group_name [String] Name of the resource group to which the
2735
+ # resource belongs.
2736
+ # @param name [String] Name of the static site.
2737
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2738
+ # will be added to the HTTP request.
2739
+ #
2740
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2741
+ #
2742
+ def list_static_site_function_app_settings_with_http_info(resource_group_name, name, custom_headers:nil)
2743
+ list_static_site_function_app_settings_async(resource_group_name, name, custom_headers:custom_headers).value!
2744
+ end
2745
+
2746
+ #
2747
+ # Gets the application settings of a static site.
2748
+ #
2749
+ # Description for Gets the application settings of a static site.
2750
+ #
2751
+ # @param resource_group_name [String] Name of the resource group to which the
2752
+ # resource belongs.
2753
+ # @param name [String] Name of the static site.
2754
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2755
+ # to the HTTP request.
2756
+ #
2757
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2758
+ #
2759
+ def list_static_site_function_app_settings_async(resource_group_name, name, custom_headers:nil)
2760
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2761
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2762
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2763
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2764
+ fail ArgumentError, 'name is nil' if name.nil?
2765
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2766
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2767
+
2768
+
2769
+ request_headers = {}
2770
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2771
+
2772
+ # Set Headers
2773
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2774
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2775
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listFunctionAppSettings'
2776
+
2777
+ request_url = @base_url || @client.base_url
2778
+
2779
+ options = {
2780
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2781
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
2782
+ query_params: {'api-version' => @client.api_version},
2783
+ headers: request_headers.merge(custom_headers || {}),
2784
+ base_url: request_url
2785
+ }
2786
+ promise = @client.make_request_async(:post, path_template, options)
2787
+
2788
+ promise = promise.then do |result|
2789
+ http_response = result.response
2790
+ status_code = http_response.status
2791
+ response_content = http_response.body
2792
+ unless status_code == 200 || status_code == 202
2793
+ error_model = JSON.load(response_content)
2794
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2795
+ end
2796
+
2797
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2798
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2799
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2800
+ # Deserialize Response
2801
+ if status_code == 200
2802
+ begin
2803
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2804
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StringDictionary.mapper()
2805
+ result.body = @client.deserialize(result_mapper, parsed_response)
2806
+ rescue Exception => e
2807
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2808
+ end
2809
+ end
2810
+ # Deserialize Response
2811
+ if status_code == 202
2812
+ begin
2813
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2814
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StringDictionary.mapper()
2815
+ result.body = @client.deserialize(result_mapper, parsed_response)
2816
+ rescue Exception => e
2817
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2818
+ end
2819
+ end
2820
+
2821
+ result
2822
+ end
2823
+
2824
+ promise.execute
2825
+ end
2826
+
2827
+ #
2828
+ # Lists the secrets for an existing static site.
2829
+ #
2830
+ # Description for Lists the secrets for an existing static site.
2831
+ #
2832
+ # @param resource_group_name [String] Name of the resource group to which the
2833
+ # resource belongs.
2834
+ # @param name [String] Name of the static site.
2835
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2836
+ # will be added to the HTTP request.
2837
+ #
2838
+ # @return [StringDictionary] operation results.
2839
+ #
2840
+ def list_static_site_secrets(resource_group_name, name, custom_headers:nil)
2841
+ response = list_static_site_secrets_async(resource_group_name, name, custom_headers:custom_headers).value!
2842
+ response.body unless response.nil?
2843
+ end
2844
+
2845
+ #
2846
+ # Lists the secrets for an existing static site.
2847
+ #
2848
+ # Description for Lists the secrets for an existing static site.
2849
+ #
2850
+ # @param resource_group_name [String] Name of the resource group to which the
2851
+ # resource belongs.
2852
+ # @param name [String] Name of the static site.
2853
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2854
+ # will be added to the HTTP request.
2855
+ #
2856
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2857
+ #
2858
+ def list_static_site_secrets_with_http_info(resource_group_name, name, custom_headers:nil)
2859
+ list_static_site_secrets_async(resource_group_name, name, custom_headers:custom_headers).value!
2860
+ end
2861
+
2862
+ #
2863
+ # Lists the secrets for an existing static site.
2864
+ #
2865
+ # Description for Lists the secrets for an existing static site.
2866
+ #
2867
+ # @param resource_group_name [String] Name of the resource group to which the
2868
+ # resource belongs.
2869
+ # @param name [String] Name of the static site.
2870
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2871
+ # to the HTTP request.
2872
+ #
2873
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2874
+ #
2875
+ def list_static_site_secrets_async(resource_group_name, name, custom_headers:nil)
2876
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2877
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2878
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2879
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2880
+ fail ArgumentError, 'name is nil' if name.nil?
2881
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2882
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2883
+
2884
+
2885
+ request_headers = {}
2886
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2887
+
2888
+ # Set Headers
2889
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2890
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2891
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listSecrets'
2892
+
2893
+ request_url = @base_url || @client.base_url
2894
+
2895
+ options = {
2896
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2897
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
2898
+ query_params: {'api-version' => @client.api_version},
2899
+ headers: request_headers.merge(custom_headers || {}),
2900
+ base_url: request_url
2901
+ }
2902
+ promise = @client.make_request_async(:post, path_template, options)
2903
+
2904
+ promise = promise.then do |result|
2905
+ http_response = result.response
2906
+ status_code = http_response.status
2907
+ response_content = http_response.body
2908
+ unless status_code == 200
2909
+ error_model = JSON.load(response_content)
2910
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2911
+ end
2912
+
2913
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2914
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2915
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2916
+ # Deserialize Response
2917
+ if status_code == 200
2918
+ begin
2919
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2920
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StringDictionary.mapper()
2921
+ result.body = @client.deserialize(result_mapper, parsed_response)
2922
+ rescue Exception => e
2923
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2924
+ end
2925
+ end
2926
+
2927
+ result
2928
+ end
2929
+
2930
+ promise.execute
2931
+ end
2932
+
2933
+ #
2934
+ # Resets the api key for an existing static site.
2935
+ #
2936
+ # Description for Resets the api key for an existing static site.
2937
+ #
2938
+ # @param resource_group_name [String] Name of the resource group to which the
2939
+ # resource belongs.
2940
+ # @param name [String] Name of the static site.
2941
+ # @param reset_properties_envelope [StaticSiteResetPropertiesARMResource]
2942
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2943
+ # will be added to the HTTP request.
2944
+ #
2945
+ #
2946
+ def reset_static_site_api_key(resource_group_name, name, reset_properties_envelope, custom_headers:nil)
2947
+ response = reset_static_site_api_key_async(resource_group_name, name, reset_properties_envelope, custom_headers:custom_headers).value!
2948
+ nil
2949
+ end
2950
+
2951
+ #
2952
+ # Resets the api key for an existing static site.
2953
+ #
2954
+ # Description for Resets the api key for an existing static site.
2955
+ #
2956
+ # @param resource_group_name [String] Name of the resource group to which the
2957
+ # resource belongs.
2958
+ # @param name [String] Name of the static site.
2959
+ # @param reset_properties_envelope [StaticSiteResetPropertiesARMResource]
2960
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2961
+ # will be added to the HTTP request.
2962
+ #
2963
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2964
+ #
2965
+ def reset_static_site_api_key_with_http_info(resource_group_name, name, reset_properties_envelope, custom_headers:nil)
2966
+ reset_static_site_api_key_async(resource_group_name, name, reset_properties_envelope, custom_headers:custom_headers).value!
2967
+ end
2968
+
2969
+ #
2970
+ # Resets the api key for an existing static site.
2971
+ #
2972
+ # Description for Resets the api key for an existing static site.
2973
+ #
2974
+ # @param resource_group_name [String] Name of the resource group to which the
2975
+ # resource belongs.
2976
+ # @param name [String] Name of the static site.
2977
+ # @param reset_properties_envelope [StaticSiteResetPropertiesARMResource]
2978
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2979
+ # to the HTTP request.
2980
+ #
2981
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2982
+ #
2983
+ def reset_static_site_api_key_async(resource_group_name, name, reset_properties_envelope, custom_headers:nil)
2984
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2985
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2986
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2987
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
2988
+ fail ArgumentError, 'name is nil' if name.nil?
2989
+ fail ArgumentError, 'reset_properties_envelope is nil' if reset_properties_envelope.nil?
2990
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2991
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2992
+
2993
+
2994
+ request_headers = {}
2995
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2996
+
2997
+ # Set Headers
2998
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2999
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3000
+
3001
+ # Serialize Request
3002
+ request_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteResetPropertiesARMResource.mapper()
3003
+ request_content = @client.serialize(request_mapper, reset_properties_envelope)
3004
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
3005
+
3006
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/resetapikey'
3007
+
3008
+ request_url = @base_url || @client.base_url
3009
+
3010
+ options = {
3011
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3012
+ path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
3013
+ query_params: {'api-version' => @client.api_version},
3014
+ body: request_content,
3015
+ headers: request_headers.merge(custom_headers || {}),
3016
+ base_url: request_url
3017
+ }
3018
+ promise = @client.make_request_async(:post, path_template, options)
3019
+
3020
+ promise = promise.then do |result|
3021
+ http_response = result.response
3022
+ status_code = http_response.status
3023
+ response_content = http_response.body
3024
+ unless status_code == 200
3025
+ error_model = JSON.load(response_content)
3026
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
3027
+ end
3028
+
3029
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3030
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3031
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3032
+
3033
+ result
3034
+ end
3035
+
3036
+ promise.execute
3037
+ end
3038
+
3039
+ #
3040
+ # Get all Static Sites for a subscription.
3041
+ #
3042
+ # Description for Get all Static Sites for a subscription.
3043
+ #
3044
+ # @param next_page_link [String] The NextLink from the previous successful call
3045
+ # to List operation.
3046
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3047
+ # will be added to the HTTP request.
3048
+ #
3049
+ # @return [StaticSiteCollection] operation results.
3050
+ #
3051
+ def list_next(next_page_link, custom_headers:nil)
3052
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
3053
+ response.body unless response.nil?
3054
+ end
3055
+
3056
+ #
3057
+ # Get all Static Sites for a subscription.
3058
+ #
3059
+ # Description for Get all Static Sites for a subscription.
3060
+ #
3061
+ # @param next_page_link [String] The NextLink from the previous successful call
3062
+ # to List operation.
3063
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3064
+ # will be added to the HTTP request.
3065
+ #
3066
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3067
+ #
3068
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
3069
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
3070
+ end
3071
+
3072
+ #
3073
+ # Get all Static Sites for a subscription.
3074
+ #
3075
+ # Description for Get all Static Sites for a subscription.
3076
+ #
3077
+ # @param next_page_link [String] The NextLink from the previous successful call
3078
+ # to List operation.
3079
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3080
+ # to the HTTP request.
3081
+ #
3082
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3083
+ #
3084
+ def list_next_async(next_page_link, custom_headers:nil)
3085
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
3086
+
3087
+
3088
+ request_headers = {}
3089
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3090
+
3091
+ # Set Headers
3092
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3093
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3094
+ path_template = '{nextLink}'
3095
+
3096
+ request_url = @base_url || @client.base_url
3097
+
3098
+ options = {
3099
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3100
+ skip_encoding_path_params: {'nextLink' => next_page_link},
3101
+ headers: request_headers.merge(custom_headers || {}),
3102
+ base_url: request_url
3103
+ }
3104
+ promise = @client.make_request_async(:get, path_template, options)
3105
+
3106
+ promise = promise.then do |result|
3107
+ http_response = result.response
3108
+ status_code = http_response.status
3109
+ response_content = http_response.body
3110
+ unless status_code == 200
3111
+ error_model = JSON.load(response_content)
3112
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
3113
+ end
3114
+
3115
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3116
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3117
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3118
+ # Deserialize Response
3119
+ if status_code == 200
3120
+ begin
3121
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3122
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteCollection.mapper()
3123
+ result.body = @client.deserialize(result_mapper, parsed_response)
3124
+ rescue Exception => e
3125
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3126
+ end
3127
+ end
3128
+
3129
+ result
3130
+ end
3131
+
3132
+ promise.execute
3133
+ end
3134
+
3135
+ #
3136
+ # Gets all static sites in the specified resource group.
3137
+ #
3138
+ # Description for Gets all static sites in the specified resource group.
3139
+ #
3140
+ # @param next_page_link [String] The NextLink from the previous successful call
3141
+ # to List operation.
3142
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3143
+ # will be added to the HTTP request.
3144
+ #
3145
+ # @return [StaticSiteCollection] operation results.
3146
+ #
3147
+ def get_static_sites_by_resource_group_next(next_page_link, custom_headers:nil)
3148
+ response = get_static_sites_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
3149
+ response.body unless response.nil?
3150
+ end
3151
+
3152
+ #
3153
+ # Gets all static sites in the specified resource group.
3154
+ #
3155
+ # Description for Gets all static sites in the specified resource group.
3156
+ #
3157
+ # @param next_page_link [String] The NextLink from the previous successful call
3158
+ # to List operation.
3159
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3160
+ # will be added to the HTTP request.
3161
+ #
3162
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3163
+ #
3164
+ def get_static_sites_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
3165
+ get_static_sites_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
3166
+ end
3167
+
3168
+ #
3169
+ # Gets all static sites in the specified resource group.
3170
+ #
3171
+ # Description for Gets all static sites in the specified resource group.
3172
+ #
3173
+ # @param next_page_link [String] The NextLink from the previous successful call
3174
+ # to List operation.
3175
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3176
+ # to the HTTP request.
3177
+ #
3178
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3179
+ #
3180
+ def get_static_sites_by_resource_group_next_async(next_page_link, custom_headers:nil)
3181
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
3182
+
3183
+
3184
+ request_headers = {}
3185
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3186
+
3187
+ # Set Headers
3188
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3189
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3190
+ path_template = '{nextLink}'
3191
+
3192
+ request_url = @base_url || @client.base_url
3193
+
3194
+ options = {
3195
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3196
+ skip_encoding_path_params: {'nextLink' => next_page_link},
3197
+ headers: request_headers.merge(custom_headers || {}),
3198
+ base_url: request_url
3199
+ }
3200
+ promise = @client.make_request_async(:get, path_template, options)
3201
+
3202
+ promise = promise.then do |result|
3203
+ http_response = result.response
3204
+ status_code = http_response.status
3205
+ response_content = http_response.body
3206
+ unless status_code == 200
3207
+ error_model = JSON.load(response_content)
3208
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
3209
+ end
3210
+
3211
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3212
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3213
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3214
+ # Deserialize Response
3215
+ if status_code == 200
3216
+ begin
3217
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3218
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteCollection.mapper()
3219
+ result.body = @client.deserialize(result_mapper, parsed_response)
3220
+ rescue Exception => e
3221
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3222
+ end
3223
+ end
3224
+
3225
+ result
3226
+ end
3227
+
3228
+ promise.execute
3229
+ end
3230
+
3231
+ #
3232
+ # Gets the list of users of a static site.
3233
+ #
3234
+ # Description for Gets the list of users of a static site.
3235
+ #
3236
+ # @param next_page_link [String] The NextLink from the previous successful call
3237
+ # to List operation.
3238
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3239
+ # will be added to the HTTP request.
3240
+ #
3241
+ # @return [StaticSiteUserCollection] operation results.
3242
+ #
3243
+ def list_static_site_users_next(next_page_link, custom_headers:nil)
3244
+ response = list_static_site_users_next_async(next_page_link, custom_headers:custom_headers).value!
3245
+ response.body unless response.nil?
3246
+ end
3247
+
3248
+ #
3249
+ # Gets the list of users of a static site.
3250
+ #
3251
+ # Description for Gets the list of users of a static site.
3252
+ #
3253
+ # @param next_page_link [String] The NextLink from the previous successful call
3254
+ # to List operation.
3255
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3256
+ # will be added to the HTTP request.
3257
+ #
3258
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3259
+ #
3260
+ def list_static_site_users_next_with_http_info(next_page_link, custom_headers:nil)
3261
+ list_static_site_users_next_async(next_page_link, custom_headers:custom_headers).value!
3262
+ end
3263
+
3264
+ #
3265
+ # Gets the list of users of a static site.
3266
+ #
3267
+ # Description for Gets the list of users of a static site.
3268
+ #
3269
+ # @param next_page_link [String] The NextLink from the previous successful call
3270
+ # to List operation.
3271
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3272
+ # to the HTTP request.
3273
+ #
3274
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3275
+ #
3276
+ def list_static_site_users_next_async(next_page_link, custom_headers:nil)
3277
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
3278
+
3279
+
3280
+ request_headers = {}
3281
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3282
+
3283
+ # Set Headers
3284
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3285
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3286
+ path_template = '{nextLink}'
3287
+
3288
+ request_url = @base_url || @client.base_url
3289
+
3290
+ options = {
3291
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3292
+ skip_encoding_path_params: {'nextLink' => next_page_link},
3293
+ headers: request_headers.merge(custom_headers || {}),
3294
+ base_url: request_url
3295
+ }
3296
+ promise = @client.make_request_async(:post, path_template, options)
3297
+
3298
+ promise = promise.then do |result|
3299
+ http_response = result.response
3300
+ status_code = http_response.status
3301
+ response_content = http_response.body
3302
+ unless status_code == 200
3303
+ error_model = JSON.load(response_content)
3304
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
3305
+ end
3306
+
3307
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3308
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3309
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3310
+ # Deserialize Response
3311
+ if status_code == 200
3312
+ begin
3313
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3314
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteUserCollection.mapper()
3315
+ result.body = @client.deserialize(result_mapper, parsed_response)
3316
+ rescue Exception => e
3317
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3318
+ end
3319
+ end
3320
+
3321
+ result
3322
+ end
3323
+
3324
+ promise.execute
3325
+ end
3326
+
3327
+ #
3328
+ # Gets all static site builds for a particular static site.
3329
+ #
3330
+ # Description for Gets all static site builds for a particular static site.
3331
+ #
3332
+ # @param next_page_link [String] The NextLink from the previous successful call
3333
+ # to List operation.
3334
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3335
+ # will be added to the HTTP request.
3336
+ #
3337
+ # @return [StaticSiteBuildCollection] operation results.
3338
+ #
3339
+ def get_static_site_builds_next(next_page_link, custom_headers:nil)
3340
+ response = get_static_site_builds_next_async(next_page_link, custom_headers:custom_headers).value!
3341
+ response.body unless response.nil?
3342
+ end
3343
+
3344
+ #
3345
+ # Gets all static site builds for a particular static site.
3346
+ #
3347
+ # Description for Gets all static site builds for a particular static site.
3348
+ #
3349
+ # @param next_page_link [String] The NextLink from the previous successful call
3350
+ # to List operation.
3351
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3352
+ # will be added to the HTTP request.
3353
+ #
3354
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3355
+ #
3356
+ def get_static_site_builds_next_with_http_info(next_page_link, custom_headers:nil)
3357
+ get_static_site_builds_next_async(next_page_link, custom_headers:custom_headers).value!
3358
+ end
3359
+
3360
+ #
3361
+ # Gets all static site builds for a particular static site.
3362
+ #
3363
+ # Description for Gets all static site builds for a particular static site.
3364
+ #
3365
+ # @param next_page_link [String] The NextLink from the previous successful call
3366
+ # to List operation.
3367
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3368
+ # to the HTTP request.
3369
+ #
3370
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3371
+ #
3372
+ def get_static_site_builds_next_async(next_page_link, custom_headers:nil)
3373
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
3374
+
3375
+
3376
+ request_headers = {}
3377
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3378
+
3379
+ # Set Headers
3380
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3381
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3382
+ path_template = '{nextLink}'
3383
+
3384
+ request_url = @base_url || @client.base_url
3385
+
3386
+ options = {
3387
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3388
+ skip_encoding_path_params: {'nextLink' => next_page_link},
3389
+ headers: request_headers.merge(custom_headers || {}),
3390
+ base_url: request_url
3391
+ }
3392
+ promise = @client.make_request_async(:get, path_template, options)
3393
+
3394
+ promise = promise.then do |result|
3395
+ http_response = result.response
3396
+ status_code = http_response.status
3397
+ response_content = http_response.body
3398
+ unless status_code == 200
3399
+ error_model = JSON.load(response_content)
3400
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
3401
+ end
3402
+
3403
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3404
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3405
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3406
+ # Deserialize Response
3407
+ if status_code == 200
3408
+ begin
3409
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3410
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteBuildCollection.mapper()
3411
+ result.body = @client.deserialize(result_mapper, parsed_response)
3412
+ rescue Exception => e
3413
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3414
+ end
3415
+ end
3416
+
3417
+ result
3418
+ end
3419
+
3420
+ promise.execute
3421
+ end
3422
+
3423
+ #
3424
+ # Gets the functions of a particular static site build.
3425
+ #
3426
+ # Description for Gets the functions of a particular static site build.
3427
+ #
3428
+ # @param next_page_link [String] The NextLink from the previous successful call
3429
+ # to List operation.
3430
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3431
+ # will be added to the HTTP request.
3432
+ #
3433
+ # @return [StaticSiteFunctionOverviewCollection] operation results.
3434
+ #
3435
+ def list_static_site_build_functions_next(next_page_link, custom_headers:nil)
3436
+ response = list_static_site_build_functions_next_async(next_page_link, custom_headers:custom_headers).value!
3437
+ response.body unless response.nil?
3438
+ end
3439
+
3440
+ #
3441
+ # Gets the functions of a particular static site build.
3442
+ #
3443
+ # Description for Gets the functions of a particular static site build.
3444
+ #
3445
+ # @param next_page_link [String] The NextLink from the previous successful call
3446
+ # to List operation.
3447
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3448
+ # will be added to the HTTP request.
3449
+ #
3450
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3451
+ #
3452
+ def list_static_site_build_functions_next_with_http_info(next_page_link, custom_headers:nil)
3453
+ list_static_site_build_functions_next_async(next_page_link, custom_headers:custom_headers).value!
3454
+ end
3455
+
3456
+ #
3457
+ # Gets the functions of a particular static site build.
3458
+ #
3459
+ # Description for Gets the functions of a particular static site build.
3460
+ #
3461
+ # @param next_page_link [String] The NextLink from the previous successful call
3462
+ # to List operation.
3463
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3464
+ # to the HTTP request.
3465
+ #
3466
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3467
+ #
3468
+ def list_static_site_build_functions_next_async(next_page_link, custom_headers:nil)
3469
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
3470
+
3471
+
3472
+ request_headers = {}
3473
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3474
+
3475
+ # Set Headers
3476
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3477
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3478
+ path_template = '{nextLink}'
3479
+
3480
+ request_url = @base_url || @client.base_url
3481
+
3482
+ options = {
3483
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3484
+ skip_encoding_path_params: {'nextLink' => next_page_link},
3485
+ headers: request_headers.merge(custom_headers || {}),
3486
+ base_url: request_url
3487
+ }
3488
+ promise = @client.make_request_async(:get, path_template, options)
3489
+
3490
+ promise = promise.then do |result|
3491
+ http_response = result.response
3492
+ status_code = http_response.status
3493
+ response_content = http_response.body
3494
+ unless status_code == 200
3495
+ error_model = JSON.load(response_content)
3496
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
3497
+ end
3498
+
3499
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3500
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3501
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3502
+ # Deserialize Response
3503
+ if status_code == 200
3504
+ begin
3505
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3506
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteFunctionOverviewCollection.mapper()
3507
+ result.body = @client.deserialize(result_mapper, parsed_response)
3508
+ rescue Exception => e
3509
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3510
+ end
3511
+ end
3512
+
3513
+ result
3514
+ end
3515
+
3516
+ promise.execute
3517
+ end
3518
+
3519
+ #
3520
+ # Gets all static site custom domains for a particular static site.
3521
+ #
3522
+ # Description for Gets all static site custom domains for a particular static
3523
+ # site.
3524
+ #
3525
+ # @param next_page_link [String] The NextLink from the previous successful call
3526
+ # to List operation.
3527
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3528
+ # will be added to the HTTP request.
3529
+ #
3530
+ # @return [StaticSiteCustomDomainOverviewCollection] operation results.
3531
+ #
3532
+ def list_static_site_custom_domains_next(next_page_link, custom_headers:nil)
3533
+ response = list_static_site_custom_domains_next_async(next_page_link, custom_headers:custom_headers).value!
3534
+ response.body unless response.nil?
3535
+ end
3536
+
3537
+ #
3538
+ # Gets all static site custom domains for a particular static site.
3539
+ #
3540
+ # Description for Gets all static site custom domains for a particular static
3541
+ # site.
3542
+ #
3543
+ # @param next_page_link [String] The NextLink from the previous successful call
3544
+ # to List operation.
3545
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3546
+ # will be added to the HTTP request.
3547
+ #
3548
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3549
+ #
3550
+ def list_static_site_custom_domains_next_with_http_info(next_page_link, custom_headers:nil)
3551
+ list_static_site_custom_domains_next_async(next_page_link, custom_headers:custom_headers).value!
3552
+ end
3553
+
3554
+ #
3555
+ # Gets all static site custom domains for a particular static site.
3556
+ #
3557
+ # Description for Gets all static site custom domains for a particular static
3558
+ # site.
3559
+ #
3560
+ # @param next_page_link [String] The NextLink from the previous successful call
3561
+ # to List operation.
3562
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3563
+ # to the HTTP request.
3564
+ #
3565
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3566
+ #
3567
+ def list_static_site_custom_domains_next_async(next_page_link, custom_headers:nil)
3568
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
3569
+
3570
+
3571
+ request_headers = {}
3572
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3573
+
3574
+ # Set Headers
3575
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3576
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3577
+ path_template = '{nextLink}'
3578
+
3579
+ request_url = @base_url || @client.base_url
3580
+
3581
+ options = {
3582
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3583
+ skip_encoding_path_params: {'nextLink' => next_page_link},
3584
+ headers: request_headers.merge(custom_headers || {}),
3585
+ base_url: request_url
3586
+ }
3587
+ promise = @client.make_request_async(:get, path_template, options)
3588
+
3589
+ promise = promise.then do |result|
3590
+ http_response = result.response
3591
+ status_code = http_response.status
3592
+ response_content = http_response.body
3593
+ unless status_code == 200
3594
+ error_model = JSON.load(response_content)
3595
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
3596
+ end
3597
+
3598
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3599
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3600
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3601
+ # Deserialize Response
3602
+ if status_code == 200
3603
+ begin
3604
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3605
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteCustomDomainOverviewCollection.mapper()
3606
+ result.body = @client.deserialize(result_mapper, parsed_response)
3607
+ rescue Exception => e
3608
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3609
+ end
3610
+ end
3611
+
3612
+ result
3613
+ end
3614
+
3615
+ promise.execute
3616
+ end
3617
+
3618
+ #
3619
+ # Gets the functions of a static site.
3620
+ #
3621
+ # Description for Gets the functions of a static site.
3622
+ #
3623
+ # @param next_page_link [String] The NextLink from the previous successful call
3624
+ # to List operation.
3625
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3626
+ # will be added to the HTTP request.
3627
+ #
3628
+ # @return [StaticSiteFunctionOverviewCollection] operation results.
3629
+ #
3630
+ def list_static_site_functions_next(next_page_link, custom_headers:nil)
3631
+ response = list_static_site_functions_next_async(next_page_link, custom_headers:custom_headers).value!
3632
+ response.body unless response.nil?
3633
+ end
3634
+
3635
+ #
3636
+ # Gets the functions of a static site.
3637
+ #
3638
+ # Description for Gets the functions of a static site.
3639
+ #
3640
+ # @param next_page_link [String] The NextLink from the previous successful call
3641
+ # to List operation.
3642
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3643
+ # will be added to the HTTP request.
3644
+ #
3645
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3646
+ #
3647
+ def list_static_site_functions_next_with_http_info(next_page_link, custom_headers:nil)
3648
+ list_static_site_functions_next_async(next_page_link, custom_headers:custom_headers).value!
3649
+ end
3650
+
3651
+ #
3652
+ # Gets the functions of a static site.
3653
+ #
3654
+ # Description for Gets the functions of a static site.
3655
+ #
3656
+ # @param next_page_link [String] The NextLink from the previous successful call
3657
+ # to List operation.
3658
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3659
+ # to the HTTP request.
3660
+ #
3661
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3662
+ #
3663
+ def list_static_site_functions_next_async(next_page_link, custom_headers:nil)
3664
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
3665
+
3666
+
3667
+ request_headers = {}
3668
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3669
+
3670
+ # Set Headers
3671
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3672
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3673
+ path_template = '{nextLink}'
3674
+
3675
+ request_url = @base_url || @client.base_url
3676
+
3677
+ options = {
3678
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3679
+ skip_encoding_path_params: {'nextLink' => next_page_link},
3680
+ headers: request_headers.merge(custom_headers || {}),
3681
+ base_url: request_url
3682
+ }
3683
+ promise = @client.make_request_async(:get, path_template, options)
3684
+
3685
+ promise = promise.then do |result|
3686
+ http_response = result.response
3687
+ status_code = http_response.status
3688
+ response_content = http_response.body
3689
+ unless status_code == 200
3690
+ error_model = JSON.load(response_content)
3691
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
3692
+ end
3693
+
3694
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3695
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3696
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3697
+ # Deserialize Response
3698
+ if status_code == 200
3699
+ begin
3700
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3701
+ result_mapper = Azure::Web::Mgmt::V2020_09_01::Models::StaticSiteFunctionOverviewCollection.mapper()
3702
+ result.body = @client.deserialize(result_mapper, parsed_response)
3703
+ rescue Exception => e
3704
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3705
+ end
3706
+ end
3707
+
3708
+ result
3709
+ end
3710
+
3711
+ promise.execute
3712
+ end
3713
+
3714
+ #
3715
+ # Get all Static Sites for a subscription.
3716
+ #
3717
+ # Description for Get all Static Sites for a subscription.
3718
+ #
3719
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3720
+ # will be added to the HTTP request.
3721
+ #
3722
+ # @return [StaticSiteCollection] which provide lazy access to pages of the
3723
+ # response.
3724
+ #
3725
+ def list_as_lazy(custom_headers:nil)
3726
+ response = list_async(custom_headers:custom_headers).value!
3727
+ unless response.nil?
3728
+ page = response.body
3729
+ page.next_method = Proc.new do |next_page_link|
3730
+ list_next_async(next_page_link, custom_headers:custom_headers)
3731
+ end
3732
+ page
3733
+ end
3734
+ end
3735
+
3736
+ #
3737
+ # Gets all static sites in the specified resource group.
3738
+ #
3739
+ # Description for Gets all static sites in the specified resource group.
3740
+ #
3741
+ # @param resource_group_name [String] Name of the resource group to which the
3742
+ # resource belongs.
3743
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3744
+ # will be added to the HTTP request.
3745
+ #
3746
+ # @return [StaticSiteCollection] which provide lazy access to pages of the
3747
+ # response.
3748
+ #
3749
+ def get_static_sites_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
3750
+ response = get_static_sites_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
3751
+ unless response.nil?
3752
+ page = response.body
3753
+ page.next_method = Proc.new do |next_page_link|
3754
+ get_static_sites_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
3755
+ end
3756
+ page
3757
+ end
3758
+ end
3759
+
3760
+ #
3761
+ # Gets the list of users of a static site.
3762
+ #
3763
+ # Description for Gets the list of users of a static site.
3764
+ #
3765
+ # @param resource_group_name [String] Name of the resource group to which the
3766
+ # resource belongs.
3767
+ # @param name [String] Name of the static site.
3768
+ # @param authprovider [String] The auth provider for the users.
3769
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3770
+ # will be added to the HTTP request.
3771
+ #
3772
+ # @return [StaticSiteUserCollection] which provide lazy access to pages of the
3773
+ # response.
3774
+ #
3775
+ def list_static_site_users_as_lazy(resource_group_name, name, authprovider, custom_headers:nil)
3776
+ response = list_static_site_users_async(resource_group_name, name, authprovider, custom_headers:custom_headers).value!
3777
+ unless response.nil?
3778
+ page = response.body
3779
+ page.next_method = Proc.new do |next_page_link|
3780
+ list_static_site_users_next_async(next_page_link, custom_headers:custom_headers)
3781
+ end
3782
+ page
3783
+ end
3784
+ end
3785
+
3786
+ #
3787
+ # Gets all static site builds for a particular static site.
3788
+ #
3789
+ # Description for Gets all static site builds for a particular static site.
3790
+ #
3791
+ # @param resource_group_name [String] Name of the resource group to which the
3792
+ # resource belongs.
3793
+ # @param name [String] Name of the static site.
3794
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3795
+ # will be added to the HTTP request.
3796
+ #
3797
+ # @return [StaticSiteBuildCollection] which provide lazy access to pages of the
3798
+ # response.
3799
+ #
3800
+ def get_static_site_builds_as_lazy(resource_group_name, name, custom_headers:nil)
3801
+ response = get_static_site_builds_async(resource_group_name, name, custom_headers:custom_headers).value!
3802
+ unless response.nil?
3803
+ page = response.body
3804
+ page.next_method = Proc.new do |next_page_link|
3805
+ get_static_site_builds_next_async(next_page_link, custom_headers:custom_headers)
3806
+ end
3807
+ page
3808
+ end
3809
+ end
3810
+
3811
+ #
3812
+ # Gets the functions of a particular static site build.
3813
+ #
3814
+ # Description for Gets the functions of a particular static site build.
3815
+ #
3816
+ # @param resource_group_name [String] Name of the resource group to which the
3817
+ # resource belongs.
3818
+ # @param name [String] Name of the static site.
3819
+ # @param pr_id [String] The stage site identifier.
3820
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3821
+ # will be added to the HTTP request.
3822
+ #
3823
+ # @return [StaticSiteFunctionOverviewCollection] which provide lazy access to
3824
+ # pages of the response.
3825
+ #
3826
+ def list_static_site_build_functions_as_lazy(resource_group_name, name, pr_id, custom_headers:nil)
3827
+ response = list_static_site_build_functions_async(resource_group_name, name, pr_id, custom_headers:custom_headers).value!
3828
+ unless response.nil?
3829
+ page = response.body
3830
+ page.next_method = Proc.new do |next_page_link|
3831
+ list_static_site_build_functions_next_async(next_page_link, custom_headers:custom_headers)
3832
+ end
3833
+ page
3834
+ end
3835
+ end
3836
+
3837
+ #
3838
+ # Gets all static site custom domains for a particular static site.
3839
+ #
3840
+ # Description for Gets all static site custom domains for a particular static
3841
+ # site.
3842
+ #
3843
+ # @param resource_group_name [String] Name of the resource group to which the
3844
+ # resource belongs.
3845
+ # @param name [String] Name of the static site resource to search in.
3846
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3847
+ # will be added to the HTTP request.
3848
+ #
3849
+ # @return [StaticSiteCustomDomainOverviewCollection] which provide lazy access
3850
+ # to pages of the response.
3851
+ #
3852
+ def list_static_site_custom_domains_as_lazy(resource_group_name, name, custom_headers:nil)
3853
+ response = list_static_site_custom_domains_async(resource_group_name, name, custom_headers:custom_headers).value!
3854
+ unless response.nil?
3855
+ page = response.body
3856
+ page.next_method = Proc.new do |next_page_link|
3857
+ list_static_site_custom_domains_next_async(next_page_link, custom_headers:custom_headers)
3858
+ end
3859
+ page
3860
+ end
3861
+ end
3862
+
3863
+ #
3864
+ # Gets the functions of a static site.
3865
+ #
3866
+ # Description for Gets the functions of a static site.
3867
+ #
3868
+ # @param resource_group_name [String] Name of the resource group to which the
3869
+ # resource belongs.
3870
+ # @param name [String] Name of the static site.
3871
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3872
+ # will be added to the HTTP request.
3873
+ #
3874
+ # @return [StaticSiteFunctionOverviewCollection] which provide lazy access to
3875
+ # pages of the response.
3876
+ #
3877
+ def list_static_site_functions_as_lazy(resource_group_name, name, custom_headers:nil)
3878
+ response = list_static_site_functions_async(resource_group_name, name, custom_headers:custom_headers).value!
3879
+ unless response.nil?
3880
+ page = response.body
3881
+ page.next_method = Proc.new do |next_page_link|
3882
+ list_static_site_functions_next_async(next_page_link, custom_headers:custom_headers)
3883
+ end
3884
+ page
3885
+ end
3886
+ end
3887
+
3888
+ end
3889
+ end