azure_mgmt_web 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (236) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_web/app_service_certificate_orders.rb +128 -128
  3. data/lib/generated/azure_mgmt_web/app_service_environments.rb +1 -1
  4. data/lib/generated/azure_mgmt_web/app_service_plans.rb +1 -1
  5. data/lib/generated/azure_mgmt_web/certificates.rb +1 -1
  6. data/lib/generated/azure_mgmt_web/deleted_web_apps.rb +1 -1
  7. data/lib/generated/azure_mgmt_web/domains.rb +1 -1
  8. data/lib/generated/azure_mgmt_web/models/access_control_entry_action.rb +1 -1
  9. data/lib/generated/azure_mgmt_web/models/address.rb +1 -1
  10. data/lib/generated/azure_mgmt_web/models/address_response.rb +1 -1
  11. data/lib/generated/azure_mgmt_web/models/api_definition_info.rb +1 -1
  12. data/lib/generated/azure_mgmt_web/models/app_service_certificate.rb +1 -1
  13. data/lib/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +1 -1
  14. data/lib/generated/azure_mgmt_web/models/app_service_certificate_order.rb +1 -1
  15. data/lib/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +1 -1
  16. data/lib/generated/azure_mgmt_web/models/app_service_environment.rb +1 -1
  17. data/lib/generated/azure_mgmt_web/models/app_service_environment_collection.rb +1 -1
  18. data/lib/generated/azure_mgmt_web/models/app_service_plan.rb +1 -1
  19. data/lib/generated/azure_mgmt_web/models/app_service_plan_collection.rb +1 -1
  20. data/lib/generated/azure_mgmt_web/models/app_service_plan_restrictions.rb +1 -1
  21. data/lib/generated/azure_mgmt_web/models/application_logs_config.rb +1 -1
  22. data/lib/generated/azure_mgmt_web/models/auto_heal_action_type.rb +1 -1
  23. data/lib/generated/azure_mgmt_web/models/auto_heal_actions.rb +1 -1
  24. data/lib/generated/azure_mgmt_web/models/auto_heal_custom_action.rb +1 -1
  25. data/lib/generated/azure_mgmt_web/models/auto_heal_rules.rb +1 -1
  26. data/lib/generated/azure_mgmt_web/models/auto_heal_triggers.rb +1 -1
  27. data/lib/generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb +1 -1
  28. data/lib/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb +1 -1
  29. data/lib/generated/azure_mgmt_web/models/azure_resource_type.rb +1 -1
  30. data/lib/generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb +1 -1
  31. data/lib/generated/azure_mgmt_web/models/backup_item.rb +1 -1
  32. data/lib/generated/azure_mgmt_web/models/backup_item_collection.rb +1 -1
  33. data/lib/generated/azure_mgmt_web/models/backup_item_status.rb +1 -1
  34. data/lib/generated/azure_mgmt_web/models/backup_request.rb +1 -1
  35. data/lib/generated/azure_mgmt_web/models/backup_restore_operation_type.rb +1 -1
  36. data/lib/generated/azure_mgmt_web/models/backup_schedule.rb +1 -1
  37. data/lib/generated/azure_mgmt_web/models/built_in_authentication_provider.rb +1 -1
  38. data/lib/generated/azure_mgmt_web/models/capability.rb +1 -1
  39. data/lib/generated/azure_mgmt_web/models/certificate.rb +1 -1
  40. data/lib/generated/azure_mgmt_web/models/certificate_collection.rb +1 -1
  41. data/lib/generated/azure_mgmt_web/models/certificate_details.rb +1 -1
  42. data/lib/generated/azure_mgmt_web/models/certificate_email.rb +1 -1
  43. data/lib/generated/azure_mgmt_web/models/certificate_order_action.rb +1 -1
  44. data/lib/generated/azure_mgmt_web/models/certificate_order_action_type.rb +1 -1
  45. data/lib/generated/azure_mgmt_web/models/certificate_order_status.rb +1 -1
  46. data/lib/generated/azure_mgmt_web/models/certificate_product_type.rb +1 -1
  47. data/lib/generated/azure_mgmt_web/models/channels.rb +1 -1
  48. data/lib/generated/azure_mgmt_web/models/check_name_resource_types.rb +1 -1
  49. data/lib/generated/azure_mgmt_web/models/clone_ability_result.rb +1 -1
  50. data/lib/generated/azure_mgmt_web/models/cloning_info.rb +1 -1
  51. data/lib/generated/azure_mgmt_web/models/compute_mode_options.rb +1 -1
  52. data/lib/generated/azure_mgmt_web/models/conn_string_info.rb +1 -1
  53. data/lib/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb +1 -1
  54. data/lib/generated/azure_mgmt_web/models/connection_string_dictionary.rb +1 -1
  55. data/lib/generated/azure_mgmt_web/models/connection_string_type.rb +1 -1
  56. data/lib/generated/azure_mgmt_web/models/contact.rb +1 -1
  57. data/lib/generated/azure_mgmt_web/models/cors_settings.rb +1 -1
  58. data/lib/generated/azure_mgmt_web/models/csm_move_resource_envelope.rb +1 -1
  59. data/lib/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb +1 -1
  60. data/lib/generated/azure_mgmt_web/models/csm_site_recovery_entity.rb +1 -1
  61. data/lib/generated/azure_mgmt_web/models/csm_slot_entity.rb +1 -1
  62. data/lib/generated/azure_mgmt_web/models/csm_usage_quota.rb +1 -1
  63. data/lib/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +1 -1
  64. data/lib/generated/azure_mgmt_web/models/csr.rb +1 -1
  65. data/lib/generated/azure_mgmt_web/models/csr_collection.rb +1 -1
  66. data/lib/generated/azure_mgmt_web/models/custom_host_name_dns_record_type.rb +1 -1
  67. data/lib/generated/azure_mgmt_web/models/custom_hostname_analysis_result.rb +1 -1
  68. data/lib/generated/azure_mgmt_web/models/database_backup_setting.rb +1 -1
  69. data/lib/generated/azure_mgmt_web/models/database_type.rb +1 -1
  70. data/lib/generated/azure_mgmt_web/models/deleted_site.rb +1 -1
  71. data/lib/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +1 -1
  72. data/lib/generated/azure_mgmt_web/models/deployment.rb +1 -1
  73. data/lib/generated/azure_mgmt_web/models/deployment_collection.rb +1 -1
  74. data/lib/generated/azure_mgmt_web/models/dns_verification_test_result.rb +1 -1
  75. data/lib/generated/azure_mgmt_web/models/domain.rb +1 -1
  76. data/lib/generated/azure_mgmt_web/models/domain_availablility_check_result.rb +1 -1
  77. data/lib/generated/azure_mgmt_web/models/domain_collection.rb +1 -1
  78. data/lib/generated/azure_mgmt_web/models/domain_control_center_sso_request.rb +1 -1
  79. data/lib/generated/azure_mgmt_web/models/domain_ownership_identifier.rb +1 -1
  80. data/lib/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +1 -1
  81. data/lib/generated/azure_mgmt_web/models/domain_purchase_consent.rb +1 -1
  82. data/lib/generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb +1 -1
  83. data/lib/generated/azure_mgmt_web/models/domain_status.rb +1 -1
  84. data/lib/generated/azure_mgmt_web/models/domain_type.rb +1 -1
  85. data/lib/generated/azure_mgmt_web/models/enabled_config.rb +1 -1
  86. data/lib/generated/azure_mgmt_web/models/error_entity.rb +1 -1
  87. data/lib/generated/azure_mgmt_web/models/experiments.rb +1 -1
  88. data/lib/generated/azure_mgmt_web/models/file_system_application_logs_config.rb +1 -1
  89. data/lib/generated/azure_mgmt_web/models/file_system_http_logs_config.rb +1 -1
  90. data/lib/generated/azure_mgmt_web/models/frequency_unit.rb +1 -1
  91. data/lib/generated/azure_mgmt_web/models/geo_region.rb +1 -1
  92. data/lib/generated/azure_mgmt_web/models/geo_region_collection.rb +1 -1
  93. data/lib/generated/azure_mgmt_web/models/global_csm_sku_description.rb +1 -1
  94. data/lib/generated/azure_mgmt_web/models/handler_mapping.rb +1 -1
  95. data/lib/generated/azure_mgmt_web/models/host_name.rb +1 -1
  96. data/lib/generated/azure_mgmt_web/models/host_name_binding.rb +1 -1
  97. data/lib/generated/azure_mgmt_web/models/host_name_binding_collection.rb +1 -1
  98. data/lib/generated/azure_mgmt_web/models/host_name_ssl_state.rb +13 -1
  99. data/lib/generated/azure_mgmt_web/models/host_name_type.rb +1 -1
  100. data/lib/generated/azure_mgmt_web/models/host_type.rb +16 -0
  101. data/lib/generated/azure_mgmt_web/models/hosting_environment_diagnostics.rb +1 -1
  102. data/lib/generated/azure_mgmt_web/models/hosting_environment_profile.rb +1 -1
  103. data/lib/generated/azure_mgmt_web/models/hosting_environment_status.rb +1 -1
  104. data/lib/generated/azure_mgmt_web/models/http_logs_config.rb +1 -1
  105. data/lib/generated/azure_mgmt_web/models/hybrid_connection.rb +1 -1
  106. data/lib/generated/azure_mgmt_web/models/hybrid_connection_collection.rb +1 -1
  107. data/lib/generated/azure_mgmt_web/models/hybrid_connection_key.rb +1 -1
  108. data/lib/generated/azure_mgmt_web/models/hybrid_connection_limits.rb +1 -1
  109. data/lib/generated/azure_mgmt_web/models/identifier.rb +1 -1
  110. data/lib/generated/azure_mgmt_web/models/identifier_collection.rb +1 -1
  111. data/lib/generated/azure_mgmt_web/models/in_availability_reason_type.rb +1 -1
  112. data/lib/generated/azure_mgmt_web/models/internal_load_balancing_mode.rb +1 -1
  113. data/lib/generated/azure_mgmt_web/models/ip_security_restriction.rb +1 -1
  114. data/lib/generated/azure_mgmt_web/models/key_vault_secret_status.rb +1 -1
  115. data/lib/generated/azure_mgmt_web/models/localizable_string.rb +1 -1
  116. data/lib/generated/azure_mgmt_web/models/log_level.rb +1 -1
  117. data/lib/generated/azure_mgmt_web/models/managed_pipeline_mode.rb +1 -1
  118. data/lib/generated/azure_mgmt_web/models/metric_availabilily.rb +1 -1
  119. data/lib/generated/azure_mgmt_web/models/metric_definition.rb +1 -1
  120. data/lib/generated/azure_mgmt_web/models/migrate_my_sql_request.rb +1 -1
  121. data/lib/generated/azure_mgmt_web/models/name_identifier.rb +1 -1
  122. data/lib/generated/azure_mgmt_web/models/name_identifier_collection.rb +1 -1
  123. data/lib/generated/azure_mgmt_web/models/name_value_pair.rb +1 -1
  124. data/lib/generated/azure_mgmt_web/models/network_access_control_entry.rb +1 -1
  125. data/lib/generated/azure_mgmt_web/models/network_features.rb +1 -1
  126. data/lib/generated/azure_mgmt_web/models/notification_level.rb +1 -1
  127. data/lib/generated/azure_mgmt_web/models/operation.rb +1 -1
  128. data/lib/generated/azure_mgmt_web/models/operation_status.rb +1 -1
  129. data/lib/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +1 -1
  130. data/lib/generated/azure_mgmt_web/models/perf_mon_response.rb +1 -1
  131. data/lib/generated/azure_mgmt_web/models/perf_mon_sample.rb +1 -1
  132. data/lib/generated/azure_mgmt_web/models/perf_mon_set.rb +1 -1
  133. data/lib/generated/azure_mgmt_web/models/premier_add_on.rb +1 -1
  134. data/lib/generated/azure_mgmt_web/models/premier_add_on_offer.rb +1 -1
  135. data/lib/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +1 -1
  136. data/lib/generated/azure_mgmt_web/models/provisioning_state.rb +1 -1
  137. data/lib/generated/azure_mgmt_web/models/publishing_profile_format.rb +1 -1
  138. data/lib/generated/azure_mgmt_web/models/push_settings.rb +1 -1
  139. data/lib/generated/azure_mgmt_web/models/ramp_up_rule.rb +1 -1
  140. data/lib/generated/azure_mgmt_web/models/recommendation.rb +1 -1
  141. data/lib/generated/azure_mgmt_web/models/recommendation_rule.rb +1 -1
  142. data/lib/generated/azure_mgmt_web/models/recover_response.rb +1 -1
  143. data/lib/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb +1 -1
  144. data/lib/generated/azure_mgmt_web/models/relay_service_connection_entity.rb +1 -1
  145. data/lib/generated/azure_mgmt_web/models/renew_certificate_order_request.rb +1 -1
  146. data/lib/generated/azure_mgmt_web/models/requests_based_trigger.rb +1 -1
  147. data/lib/generated/azure_mgmt_web/models/resource.rb +1 -1
  148. data/lib/generated/azure_mgmt_web/models/resource_collection.rb +1 -1
  149. data/lib/generated/azure_mgmt_web/models/resource_metric.rb +1 -1
  150. data/lib/generated/azure_mgmt_web/models/resource_metric_availability.rb +1 -1
  151. data/lib/generated/azure_mgmt_web/models/resource_metric_collection.rb +1 -1
  152. data/lib/generated/azure_mgmt_web/models/resource_metric_definition.rb +1 -1
  153. data/lib/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +1 -1
  154. data/lib/generated/azure_mgmt_web/models/resource_metric_name.rb +1 -1
  155. data/lib/generated/azure_mgmt_web/models/resource_metric_property.rb +1 -1
  156. data/lib/generated/azure_mgmt_web/models/resource_metric_value.rb +1 -1
  157. data/lib/generated/azure_mgmt_web/models/resource_name_availability.rb +1 -1
  158. data/lib/generated/azure_mgmt_web/models/resource_name_availability_request.rb +1 -1
  159. data/lib/generated/azure_mgmt_web/models/resource_scope_type.rb +1 -1
  160. data/lib/generated/azure_mgmt_web/models/restore_request.rb +1 -1
  161. data/lib/generated/azure_mgmt_web/models/restore_response.rb +1 -1
  162. data/lib/generated/azure_mgmt_web/models/route_type.rb +1 -1
  163. data/lib/generated/azure_mgmt_web/models/scm_type.rb +1 -1
  164. data/lib/generated/azure_mgmt_web/models/site.rb +1 -1
  165. data/lib/generated/azure_mgmt_web/models/site_auth_settings.rb +1 -1
  166. data/lib/generated/azure_mgmt_web/models/site_availability_state.rb +1 -1
  167. data/lib/generated/azure_mgmt_web/models/site_cloneability.rb +1 -1
  168. data/lib/generated/azure_mgmt_web/models/site_cloneability_criterion.rb +1 -1
  169. data/lib/generated/azure_mgmt_web/models/site_config.rb +1 -1
  170. data/lib/generated/azure_mgmt_web/models/site_configuration_snapshot_info.rb +1 -1
  171. data/lib/generated/azure_mgmt_web/models/site_instance.rb +1 -1
  172. data/lib/generated/azure_mgmt_web/models/site_limits.rb +1 -1
  173. data/lib/generated/azure_mgmt_web/models/site_load_balancing.rb +1 -1
  174. data/lib/generated/azure_mgmt_web/models/site_logs_config.rb +1 -1
  175. data/lib/generated/azure_mgmt_web/models/site_machine_key.rb +1 -1
  176. data/lib/generated/azure_mgmt_web/models/site_php_error_log_flag.rb +1 -1
  177. data/lib/generated/azure_mgmt_web/models/site_seal.rb +1 -1
  178. data/lib/generated/azure_mgmt_web/models/site_seal_request.rb +1 -1
  179. data/lib/generated/azure_mgmt_web/models/site_source_control.rb +1 -1
  180. data/lib/generated/azure_mgmt_web/models/sku_capacity.rb +1 -1
  181. data/lib/generated/azure_mgmt_web/models/sku_description.rb +1 -1
  182. data/lib/generated/azure_mgmt_web/models/sku_info.rb +1 -1
  183. data/lib/generated/azure_mgmt_web/models/sku_info_collection.rb +1 -1
  184. data/lib/generated/azure_mgmt_web/models/sku_infos.rb +1 -1
  185. data/lib/generated/azure_mgmt_web/models/sku_name.rb +1 -1
  186. data/lib/generated/azure_mgmt_web/models/slot_config_names_resource.rb +1 -1
  187. data/lib/generated/azure_mgmt_web/models/slot_difference.rb +1 -1
  188. data/lib/generated/azure_mgmt_web/models/slot_difference_collection.rb +1 -1
  189. data/lib/generated/azure_mgmt_web/models/slot_swap_status.rb +1 -1
  190. data/lib/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb +1 -1
  191. data/lib/generated/azure_mgmt_web/models/snapshot.rb +1 -1
  192. data/lib/generated/azure_mgmt_web/models/snapshot_collection.rb +1 -1
  193. data/lib/generated/azure_mgmt_web/models/source_control.rb +1 -1
  194. data/lib/generated/azure_mgmt_web/models/source_control_collection.rb +1 -1
  195. data/lib/generated/azure_mgmt_web/models/ssl_state.rb +1 -1
  196. data/lib/generated/azure_mgmt_web/models/stamp_capacity.rb +1 -1
  197. data/lib/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +1 -1
  198. data/lib/generated/azure_mgmt_web/models/status_codes_based_trigger.rb +1 -1
  199. data/lib/generated/azure_mgmt_web/models/status_options.rb +1 -1
  200. data/lib/generated/azure_mgmt_web/models/storage_migration_options.rb +1 -1
  201. data/lib/generated/azure_mgmt_web/models/storage_migration_response.rb +1 -1
  202. data/lib/generated/azure_mgmt_web/models/string_dictionary.rb +1 -1
  203. data/lib/generated/azure_mgmt_web/models/tld_legal_agreement.rb +1 -1
  204. data/lib/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +1 -1
  205. data/lib/generated/azure_mgmt_web/models/top_level_domain.rb +1 -1
  206. data/lib/generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb +1 -1
  207. data/lib/generated/azure_mgmt_web/models/top_level_domain_collection.rb +1 -1
  208. data/lib/generated/azure_mgmt_web/models/unauthenticated_client_action.rb +1 -1
  209. data/lib/generated/azure_mgmt_web/models/usage.rb +1 -1
  210. data/lib/generated/azure_mgmt_web/models/usage_collection.rb +1 -1
  211. data/lib/generated/azure_mgmt_web/models/usage_state.rb +1 -1
  212. data/lib/generated/azure_mgmt_web/models/user.rb +1 -1
  213. data/lib/generated/azure_mgmt_web/models/validate_request.rb +1 -1
  214. data/lib/generated/azure_mgmt_web/models/validate_resource_types.rb +1 -1
  215. data/lib/generated/azure_mgmt_web/models/validate_response.rb +1 -1
  216. data/lib/generated/azure_mgmt_web/models/validate_response_error.rb +1 -1
  217. data/lib/generated/azure_mgmt_web/models/virtual_application.rb +1 -1
  218. data/lib/generated/azure_mgmt_web/models/virtual_directory.rb +1 -1
  219. data/lib/generated/azure_mgmt_web/models/virtual_ipmapping.rb +1 -1
  220. data/lib/generated/azure_mgmt_web/models/virtual_network_profile.rb +1 -1
  221. data/lib/generated/azure_mgmt_web/models/vnet_gateway.rb +1 -1
  222. data/lib/generated/azure_mgmt_web/models/vnet_info.rb +1 -1
  223. data/lib/generated/azure_mgmt_web/models/vnet_route.rb +1 -1
  224. data/lib/generated/azure_mgmt_web/models/web_app_collection.rb +1 -1
  225. data/lib/generated/azure_mgmt_web/models/web_app_instance_collection.rb +1 -1
  226. data/lib/generated/azure_mgmt_web/models/worker_pool.rb +1 -1
  227. data/lib/generated/azure_mgmt_web/models/worker_pool_collection.rb +1 -1
  228. data/lib/generated/azure_mgmt_web/models/worker_size_options.rb +1 -1
  229. data/lib/generated/azure_mgmt_web/module_definition.rb +1 -1
  230. data/lib/generated/azure_mgmt_web/recommendations.rb +1 -1
  231. data/lib/generated/azure_mgmt_web/top_level_domains.rb +1 -1
  232. data/lib/generated/azure_mgmt_web/version.rb +2 -2
  233. data/lib/generated/azure_mgmt_web/web_apps.rb +1 -1
  234. data/lib/generated/azure_mgmt_web/web_site_management_client.rb +172 -179
  235. data/lib/generated/azure_mgmt_web.rb +2 -1
  236. metadata +3 -2
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -143,45 +143,45 @@ module Azure::ARM::Web
143
143
  end
144
144
 
145
145
  #
146
- # Gets the source controls available for Azure websites.
146
+ # Gets publishing user
147
147
  #
148
- # Gets the source controls available for Azure websites.
148
+ # Gets publishing user
149
149
  #
150
150
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
151
151
  # will be added to the HTTP request.
152
152
  #
153
- # @return [Array<SourceControl>] operation results.
153
+ # @return [User] operation results.
154
154
  #
155
- def list_source_controls(custom_headers = nil)
156
- first_page = list_source_controls_as_lazy(custom_headers)
157
- first_page.get_all_items
155
+ def get_publishing_user(custom_headers = nil)
156
+ response = get_publishing_user_async(custom_headers).value!
157
+ response.body unless response.nil?
158
158
  end
159
159
 
160
160
  #
161
- # Gets the source controls available for Azure websites.
161
+ # Gets publishing user
162
162
  #
163
- # Gets the source controls available for Azure websites.
163
+ # Gets publishing user
164
164
  #
165
165
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
166
166
  # will be added to the HTTP request.
167
167
  #
168
168
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
169
169
  #
170
- def list_source_controls_with_http_info(custom_headers = nil)
171
- list_source_controls_async(custom_headers).value!
170
+ def get_publishing_user_with_http_info(custom_headers = nil)
171
+ get_publishing_user_async(custom_headers).value!
172
172
  end
173
173
 
174
174
  #
175
- # Gets the source controls available for Azure websites.
175
+ # Gets publishing user
176
176
  #
177
- # Gets the source controls available for Azure websites.
177
+ # Gets publishing user
178
178
  #
179
179
  # @param [Hash{String => String}] A hash of custom headers that will be added
180
180
  # to the HTTP request.
181
181
  #
182
182
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
183
183
  #
184
- def list_source_controls_async(custom_headers = nil)
184
+ def get_publishing_user_async(custom_headers = nil)
185
185
  api_version = '2016-03-01'
186
186
 
187
187
 
@@ -190,7 +190,7 @@ module Azure::ARM::Web
190
190
  # Set Headers
191
191
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
192
192
  request_headers['accept-language'] = accept_language unless accept_language.nil?
193
- path_template = '/providers/Microsoft.Web/sourcecontrols'
193
+ path_template = '/providers/Microsoft.Web/publishingUsers/web'
194
194
 
195
195
  request_url = @base_url || self.base_url
196
196
 
@@ -216,7 +216,7 @@ module Azure::ARM::Web
216
216
  if status_code == 200
217
217
  begin
218
218
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
219
- result_mapper = SourceControlCollection.mapper()
219
+ result_mapper = User.mapper()
220
220
  result.body = self.deserialize(result_mapper, parsed_response, 'result.body')
221
221
  rescue Exception => e
222
222
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -230,53 +230,49 @@ module Azure::ARM::Web
230
230
  end
231
231
 
232
232
  #
233
- # Updates source control token
233
+ # Updates publishing user
234
234
  #
235
- # Updates source control token
235
+ # Updates publishing user
236
236
  #
237
- # @param source_control_type [String] Type of source control
238
- # @param request_message [SourceControl] Source control token information
237
+ # @param user_details [User] Details of publishing user
239
238
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
240
239
  # will be added to the HTTP request.
241
240
  #
242
- # @return [SourceControl] operation results.
241
+ # @return [User] operation results.
243
242
  #
244
- def update_source_control(source_control_type, request_message, custom_headers = nil)
245
- response = update_source_control_async(source_control_type, request_message, custom_headers).value!
243
+ def update_publishing_user(user_details, custom_headers = nil)
244
+ response = update_publishing_user_async(user_details, custom_headers).value!
246
245
  response.body unless response.nil?
247
246
  end
248
247
 
249
248
  #
250
- # Updates source control token
249
+ # Updates publishing user
251
250
  #
252
- # Updates source control token
251
+ # Updates publishing user
253
252
  #
254
- # @param source_control_type [String] Type of source control
255
- # @param request_message [SourceControl] Source control token information
253
+ # @param user_details [User] Details of publishing user
256
254
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
257
255
  # will be added to the HTTP request.
258
256
  #
259
257
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
260
258
  #
261
- def update_source_control_with_http_info(source_control_type, request_message, custom_headers = nil)
262
- update_source_control_async(source_control_type, request_message, custom_headers).value!
259
+ def update_publishing_user_with_http_info(user_details, custom_headers = nil)
260
+ update_publishing_user_async(user_details, custom_headers).value!
263
261
  end
264
262
 
265
263
  #
266
- # Updates source control token
264
+ # Updates publishing user
267
265
  #
268
- # Updates source control token
266
+ # Updates publishing user
269
267
  #
270
- # @param source_control_type [String] Type of source control
271
- # @param request_message [SourceControl] Source control token information
268
+ # @param user_details [User] Details of publishing user
272
269
  # @param [Hash{String => String}] A hash of custom headers that will be added
273
270
  # to the HTTP request.
274
271
  #
275
272
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
276
273
  #
277
- def update_source_control_async(source_control_type, request_message, custom_headers = nil)
278
- fail ArgumentError, 'source_control_type is nil' if source_control_type.nil?
279
- fail ArgumentError, 'request_message is nil' if request_message.nil?
274
+ def update_publishing_user_async(user_details, custom_headers = nil)
275
+ fail ArgumentError, 'user_details is nil' if user_details.nil?
280
276
  api_version = '2016-03-01'
281
277
 
282
278
 
@@ -289,17 +285,16 @@ module Azure::ARM::Web
289
285
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
290
286
 
291
287
  # Serialize Request
292
- request_mapper = SourceControl.mapper()
293
- request_content = self.serialize(request_mapper, request_message, 'request_message')
288
+ request_mapper = User.mapper()
289
+ request_content = self.serialize(request_mapper, user_details, 'user_details')
294
290
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
295
291
 
296
- path_template = '/providers/Microsoft.Web/sourcecontrols/{sourceControlType}'
292
+ path_template = '/providers/Microsoft.Web/publishingUsers/web'
297
293
 
298
294
  request_url = @base_url || self.base_url
299
295
 
300
296
  options = {
301
297
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
302
- path_params: {'sourceControlType' => source_control_type},
303
298
  query_params: {'api-version' => api_version},
304
299
  body: request_content,
305
300
  headers: request_headers.merge(custom_headers || {}),
@@ -321,7 +316,7 @@ module Azure::ARM::Web
321
316
  if status_code == 200
322
317
  begin
323
318
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
324
- result_mapper = SourceControl.mapper()
319
+ result_mapper = User.mapper()
325
320
  result.body = self.deserialize(result_mapper, parsed_response, 'result.body')
326
321
  rescue Exception => e
327
322
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -335,95 +330,64 @@ module Azure::ARM::Web
335
330
  end
336
331
 
337
332
  #
338
- # Check if a resource name is available.
333
+ # Gets the source controls available for Azure websites.
339
334
  #
340
- # Check if a resource name is available.
335
+ # Gets the source controls available for Azure websites.
341
336
  #
342
- # @param name [String] Resource name to verify.
343
- # @param type [CheckNameResourceTypes] Resource type used for verification.
344
- # Possible values include: 'Site', 'Slot', 'HostingEnvironment'
345
- # @param is_fqdn [Boolean] Is fully qualified domain name.
346
337
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
347
338
  # will be added to the HTTP request.
348
339
  #
349
- # @return [ResourceNameAvailability] operation results.
340
+ # @return [Array<SourceControl>] operation results.
350
341
  #
351
- def check_name_availability(name, type, is_fqdn = nil, custom_headers = nil)
352
- response = check_name_availability_async(name, type, is_fqdn, custom_headers).value!
353
- response.body unless response.nil?
342
+ def list_source_controls(custom_headers = nil)
343
+ first_page = list_source_controls_as_lazy(custom_headers)
344
+ first_page.get_all_items
354
345
  end
355
346
 
356
347
  #
357
- # Check if a resource name is available.
348
+ # Gets the source controls available for Azure websites.
358
349
  #
359
- # Check if a resource name is available.
350
+ # Gets the source controls available for Azure websites.
360
351
  #
361
- # @param name [String] Resource name to verify.
362
- # @param type [CheckNameResourceTypes] Resource type used for verification.
363
- # Possible values include: 'Site', 'Slot', 'HostingEnvironment'
364
- # @param is_fqdn [Boolean] Is fully qualified domain name.
365
352
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
366
353
  # will be added to the HTTP request.
367
354
  #
368
355
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
369
356
  #
370
- def check_name_availability_with_http_info(name, type, is_fqdn = nil, custom_headers = nil)
371
- check_name_availability_async(name, type, is_fqdn, custom_headers).value!
357
+ def list_source_controls_with_http_info(custom_headers = nil)
358
+ list_source_controls_async(custom_headers).value!
372
359
  end
373
360
 
374
361
  #
375
- # Check if a resource name is available.
362
+ # Gets the source controls available for Azure websites.
376
363
  #
377
- # Check if a resource name is available.
364
+ # Gets the source controls available for Azure websites.
378
365
  #
379
- # @param name [String] Resource name to verify.
380
- # @param type [CheckNameResourceTypes] Resource type used for verification.
381
- # Possible values include: 'Site', 'Slot', 'HostingEnvironment'
382
- # @param is_fqdn [Boolean] Is fully qualified domain name.
383
366
  # @param [Hash{String => String}] A hash of custom headers that will be added
384
367
  # to the HTTP request.
385
368
  #
386
369
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
387
370
  #
388
- def check_name_availability_async(name, type, is_fqdn = nil, custom_headers = nil)
389
- fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
371
+ def list_source_controls_async(custom_headers = nil)
390
372
  api_version = '2016-03-01'
391
- fail ArgumentError, 'name is nil' if name.nil?
392
- fail ArgumentError, 'type is nil' if type.nil?
393
373
 
394
- request = ResourceNameAvailabilityRequest.new
395
- unless name.nil? && type.nil? && is_fqdn.nil?
396
- request.name = name
397
- request.type = type
398
- request.is_fqdn = is_fqdn
399
- end
400
374
 
401
375
  request_headers = {}
402
376
 
403
377
  # Set Headers
404
378
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
405
379
  request_headers['accept-language'] = accept_language unless accept_language.nil?
406
-
407
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
408
-
409
- # Serialize Request
410
- request_mapper = ResourceNameAvailabilityRequest.mapper()
411
- request_content = self.serialize(request_mapper, request, 'request')
412
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
413
-
414
- path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/checknameavailability'
380
+ path_template = '/providers/Microsoft.Web/sourcecontrols'
415
381
 
416
382
  request_url = @base_url || self.base_url
417
383
 
418
384
  options = {
419
385
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
420
- path_params: {'subscriptionId' => subscription_id},
421
386
  query_params: {'api-version' => api_version},
422
- body: request_content,
423
387
  headers: request_headers.merge(custom_headers || {}),
424
388
  base_url: request_url
425
389
  }
426
- promise = self.make_request_async(:post, path_template, options)
390
+ promise = self.make_request_async(:get, path_template, options)
427
391
 
428
392
  promise = promise.then do |result|
429
393
  http_response = result.response
@@ -439,7 +403,7 @@ module Azure::ARM::Web
439
403
  if status_code == 200
440
404
  begin
441
405
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
442
- result_mapper = ResourceNameAvailability.mapper()
406
+ result_mapper = SourceControlCollection.mapper()
443
407
  result.body = self.deserialize(result_mapper, parsed_response, 'result.body')
444
408
  rescue Exception => e
445
409
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -453,52 +417,53 @@ module Azure::ARM::Web
453
417
  end
454
418
 
455
419
  #
456
- # Get a list of available geographical regions.
420
+ # Updates source control token
457
421
  #
458
- # Get a list of available geographical regions.
422
+ # Updates source control token
459
423
  #
460
- # @param sku [SkuName] Name of SKU used to filter the regions. Possible values
461
- # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic'
424
+ # @param source_control_type [String] Type of source control
425
+ # @param request_message [SourceControl] Source control token information
462
426
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
463
427
  # will be added to the HTTP request.
464
428
  #
465
- # @return [Array<GeoRegion>] operation results.
429
+ # @return [SourceControl] operation results.
466
430
  #
467
- def list_geo_regions(sku = nil, custom_headers = nil)
468
- first_page = list_geo_regions_as_lazy(sku, custom_headers)
469
- first_page.get_all_items
431
+ def update_source_control(source_control_type, request_message, custom_headers = nil)
432
+ response = update_source_control_async(source_control_type, request_message, custom_headers).value!
433
+ response.body unless response.nil?
470
434
  end
471
435
 
472
436
  #
473
- # Get a list of available geographical regions.
437
+ # Updates source control token
474
438
  #
475
- # Get a list of available geographical regions.
439
+ # Updates source control token
476
440
  #
477
- # @param sku [SkuName] Name of SKU used to filter the regions. Possible values
478
- # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic'
441
+ # @param source_control_type [String] Type of source control
442
+ # @param request_message [SourceControl] Source control token information
479
443
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
480
444
  # will be added to the HTTP request.
481
445
  #
482
446
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
483
447
  #
484
- def list_geo_regions_with_http_info(sku = nil, custom_headers = nil)
485
- list_geo_regions_async(sku, custom_headers).value!
448
+ def update_source_control_with_http_info(source_control_type, request_message, custom_headers = nil)
449
+ update_source_control_async(source_control_type, request_message, custom_headers).value!
486
450
  end
487
451
 
488
452
  #
489
- # Get a list of available geographical regions.
453
+ # Updates source control token
490
454
  #
491
- # Get a list of available geographical regions.
455
+ # Updates source control token
492
456
  #
493
- # @param sku [SkuName] Name of SKU used to filter the regions. Possible values
494
- # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic'
457
+ # @param source_control_type [String] Type of source control
458
+ # @param request_message [SourceControl] Source control token information
495
459
  # @param [Hash{String => String}] A hash of custom headers that will be added
496
460
  # to the HTTP request.
497
461
  #
498
462
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
499
463
  #
500
- def list_geo_regions_async(sku = nil, custom_headers = nil)
501
- fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
464
+ def update_source_control_async(source_control_type, request_message, custom_headers = nil)
465
+ fail ArgumentError, 'source_control_type is nil' if source_control_type.nil?
466
+ fail ArgumentError, 'request_message is nil' if request_message.nil?
502
467
  api_version = '2016-03-01'
503
468
 
504
469
 
@@ -507,18 +472,27 @@ module Azure::ARM::Web
507
472
  # Set Headers
508
473
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
509
474
  request_headers['accept-language'] = accept_language unless accept_language.nil?
510
- path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions'
475
+
476
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
477
+
478
+ # Serialize Request
479
+ request_mapper = SourceControl.mapper()
480
+ request_content = self.serialize(request_mapper, request_message, 'request_message')
481
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
482
+
483
+ path_template = '/providers/Microsoft.Web/sourcecontrols/{sourceControlType}'
511
484
 
512
485
  request_url = @base_url || self.base_url
513
486
 
514
487
  options = {
515
488
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
516
- path_params: {'subscriptionId' => subscription_id},
517
- query_params: {'sku' => sku,'api-version' => api_version},
489
+ path_params: {'sourceControlType' => source_control_type},
490
+ query_params: {'api-version' => api_version},
491
+ body: request_content,
518
492
  headers: request_headers.merge(custom_headers || {}),
519
493
  base_url: request_url
520
494
  }
521
- promise = self.make_request_async(:post, path_template, options)
495
+ promise = self.make_request_async(:put, path_template, options)
522
496
 
523
497
  promise = promise.then do |result|
524
498
  http_response = result.response
@@ -534,7 +508,7 @@ module Azure::ARM::Web
534
508
  if status_code == 200
535
509
  begin
536
510
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
537
- result_mapper = GeoRegionCollection.mapper()
511
+ result_mapper = SourceControl.mapper()
538
512
  result.body = self.deserialize(result_mapper, parsed_response, 'result.body')
539
513
  rescue Exception => e
540
514
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -548,55 +522,83 @@ module Azure::ARM::Web
548
522
  end
549
523
 
550
524
  #
551
- # List all premier add-on offers.
525
+ # Check if a resource name is available.
552
526
  #
553
- # List all premier add-on offers.
527
+ # Check if a resource name is available.
554
528
  #
529
+ # @param name [String] Resource name to verify.
530
+ # @param type [CheckNameResourceTypes] Resource type used for verification.
531
+ # Possible values include: 'Site', 'Slot', 'HostingEnvironment'
532
+ # @param is_fqdn [Boolean] Is fully qualified domain name.
555
533
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
556
534
  # will be added to the HTTP request.
557
535
  #
558
- # @return [Array<PremierAddOnOffer>] operation results.
536
+ # @return [ResourceNameAvailability] operation results.
559
537
  #
560
- def list_premier_add_on_offers(custom_headers = nil)
561
- first_page = list_premier_add_on_offers_as_lazy(custom_headers)
562
- first_page.get_all_items
538
+ def check_name_availability(name, type, is_fqdn = nil, custom_headers = nil)
539
+ response = check_name_availability_async(name, type, is_fqdn, custom_headers).value!
540
+ response.body unless response.nil?
563
541
  end
564
542
 
565
543
  #
566
- # List all premier add-on offers.
544
+ # Check if a resource name is available.
567
545
  #
568
- # List all premier add-on offers.
546
+ # Check if a resource name is available.
569
547
  #
548
+ # @param name [String] Resource name to verify.
549
+ # @param type [CheckNameResourceTypes] Resource type used for verification.
550
+ # Possible values include: 'Site', 'Slot', 'HostingEnvironment'
551
+ # @param is_fqdn [Boolean] Is fully qualified domain name.
570
552
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
571
553
  # will be added to the HTTP request.
572
554
  #
573
555
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
574
556
  #
575
- def list_premier_add_on_offers_with_http_info(custom_headers = nil)
576
- list_premier_add_on_offers_async(custom_headers).value!
557
+ def check_name_availability_with_http_info(name, type, is_fqdn = nil, custom_headers = nil)
558
+ check_name_availability_async(name, type, is_fqdn, custom_headers).value!
577
559
  end
578
560
 
579
561
  #
580
- # List all premier add-on offers.
562
+ # Check if a resource name is available.
581
563
  #
582
- # List all premier add-on offers.
564
+ # Check if a resource name is available.
583
565
  #
566
+ # @param name [String] Resource name to verify.
567
+ # @param type [CheckNameResourceTypes] Resource type used for verification.
568
+ # Possible values include: 'Site', 'Slot', 'HostingEnvironment'
569
+ # @param is_fqdn [Boolean] Is fully qualified domain name.
584
570
  # @param [Hash{String => String}] A hash of custom headers that will be added
585
571
  # to the HTTP request.
586
572
  #
587
573
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
588
574
  #
589
- def list_premier_add_on_offers_async(custom_headers = nil)
575
+ def check_name_availability_async(name, type, is_fqdn = nil, custom_headers = nil)
590
576
  fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
591
577
  api_version = '2016-03-01'
578
+ fail ArgumentError, 'name is nil' if name.nil?
579
+ fail ArgumentError, 'type is nil' if type.nil?
592
580
 
581
+ request = ResourceNameAvailabilityRequest.new
582
+ unless name.nil? && type.nil? && is_fqdn.nil?
583
+ request.name = name
584
+ request.type = type
585
+ request.is_fqdn = is_fqdn
586
+ end
593
587
 
594
588
  request_headers = {}
595
589
 
596
590
  # Set Headers
597
591
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
598
592
  request_headers['accept-language'] = accept_language unless accept_language.nil?
599
- path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/premieraddonoffers'
593
+
594
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
595
+
596
+ # Serialize Request
597
+ request_mapper = ResourceNameAvailabilityRequest.mapper()
598
+ request_content = self.serialize(request_mapper, request, 'request')
599
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
600
+
601
+ path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/checknameavailability'
600
602
 
601
603
  request_url = @base_url || self.base_url
602
604
 
@@ -604,10 +606,11 @@ module Azure::ARM::Web
604
606
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
605
607
  path_params: {'subscriptionId' => subscription_id},
606
608
  query_params: {'api-version' => api_version},
609
+ body: request_content,
607
610
  headers: request_headers.merge(custom_headers || {}),
608
611
  base_url: request_url
609
612
  }
610
- promise = self.make_request_async(:get, path_template, options)
613
+ promise = self.make_request_async(:post, path_template, options)
611
614
 
612
615
  promise = promise.then do |result|
613
616
  http_response = result.response
@@ -623,7 +626,7 @@ module Azure::ARM::Web
623
626
  if status_code == 200
624
627
  begin
625
628
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
626
- result_mapper = PremierAddOnOfferCollection.mapper()
629
+ result_mapper = ResourceNameAvailability.mapper()
627
630
  result.body = self.deserialize(result_mapper, parsed_response, 'result.body')
628
631
  rescue Exception => e
629
632
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -637,45 +640,51 @@ module Azure::ARM::Web
637
640
  end
638
641
 
639
642
  #
640
- # Get the publishing credentials for the subscription owner.
643
+ # Get a list of available geographical regions.
641
644
  #
642
- # Get the publishing credentials for the subscription owner.
645
+ # Get a list of available geographical regions.
643
646
  #
647
+ # @param sku [SkuName] Name of SKU used to filter the regions. Possible values
648
+ # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic'
644
649
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
645
650
  # will be added to the HTTP request.
646
651
  #
647
- # @return [User] operation results.
652
+ # @return [Array<GeoRegion>] operation results.
648
653
  #
649
- def get_publishing_credentials(custom_headers = nil)
650
- response = get_publishing_credentials_async(custom_headers).value!
651
- response.body unless response.nil?
654
+ def list_geo_regions(sku = nil, custom_headers = nil)
655
+ first_page = list_geo_regions_as_lazy(sku, custom_headers)
656
+ first_page.get_all_items
652
657
  end
653
658
 
654
659
  #
655
- # Get the publishing credentials for the subscription owner.
660
+ # Get a list of available geographical regions.
656
661
  #
657
- # Get the publishing credentials for the subscription owner.
662
+ # Get a list of available geographical regions.
658
663
  #
664
+ # @param sku [SkuName] Name of SKU used to filter the regions. Possible values
665
+ # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic'
659
666
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
660
667
  # will be added to the HTTP request.
661
668
  #
662
669
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
663
670
  #
664
- def get_publishing_credentials_with_http_info(custom_headers = nil)
665
- get_publishing_credentials_async(custom_headers).value!
671
+ def list_geo_regions_with_http_info(sku = nil, custom_headers = nil)
672
+ list_geo_regions_async(sku, custom_headers).value!
666
673
  end
667
674
 
668
675
  #
669
- # Get the publishing credentials for the subscription owner.
676
+ # Get a list of available geographical regions.
670
677
  #
671
- # Get the publishing credentials for the subscription owner.
678
+ # Get a list of available geographical regions.
672
679
  #
680
+ # @param sku [SkuName] Name of SKU used to filter the regions. Possible values
681
+ # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic'
673
682
  # @param [Hash{String => String}] A hash of custom headers that will be added
674
683
  # to the HTTP request.
675
684
  #
676
685
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
677
686
  #
678
- def get_publishing_credentials_async(custom_headers = nil)
687
+ def list_geo_regions_async(sku = nil, custom_headers = nil)
679
688
  fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
680
689
  api_version = '2016-03-01'
681
690
 
@@ -685,14 +694,14 @@ module Azure::ARM::Web
685
694
  # Set Headers
686
695
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
687
696
  request_headers['accept-language'] = accept_language unless accept_language.nil?
688
- path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/publishingCredentials'
697
+ path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions'
689
698
 
690
699
  request_url = @base_url || self.base_url
691
700
 
692
701
  options = {
693
702
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
694
703
  path_params: {'subscriptionId' => subscription_id},
695
- query_params: {'api-version' => api_version},
704
+ query_params: {'sku' => sku,'api-version' => api_version},
696
705
  headers: request_headers.merge(custom_headers || {}),
697
706
  base_url: request_url
698
707
  }
@@ -712,7 +721,7 @@ module Azure::ARM::Web
712
721
  if status_code == 200
713
722
  begin
714
723
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
715
- result_mapper = User.mapper()
724
+ result_mapper = GeoRegionCollection.mapper()
716
725
  result.body = self.deserialize(result_mapper, parsed_response, 'result.body')
717
726
  rescue Exception => e
718
727
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -726,52 +735,45 @@ module Azure::ARM::Web
726
735
  end
727
736
 
728
737
  #
729
- # Update the publishing credentials for the subscription owner.
738
+ # List all premier add-on offers.
730
739
  #
731
- # Update the publishing credentials for the subscription owner.
740
+ # List all premier add-on offers.
732
741
  #
733
- # @param request_message [User] A request message with the new publishing
734
- # credentials.
735
742
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
736
743
  # will be added to the HTTP request.
737
744
  #
738
- # @return [User] operation results.
745
+ # @return [Array<PremierAddOnOffer>] operation results.
739
746
  #
740
- def update_publishing_credentials(request_message, custom_headers = nil)
741
- response = update_publishing_credentials_async(request_message, custom_headers).value!
742
- response.body unless response.nil?
747
+ def list_premier_add_on_offers(custom_headers = nil)
748
+ first_page = list_premier_add_on_offers_as_lazy(custom_headers)
749
+ first_page.get_all_items
743
750
  end
744
751
 
745
752
  #
746
- # Update the publishing credentials for the subscription owner.
753
+ # List all premier add-on offers.
747
754
  #
748
- # Update the publishing credentials for the subscription owner.
755
+ # List all premier add-on offers.
749
756
  #
750
- # @param request_message [User] A request message with the new publishing
751
- # credentials.
752
757
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
753
758
  # will be added to the HTTP request.
754
759
  #
755
760
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
756
761
  #
757
- def update_publishing_credentials_with_http_info(request_message, custom_headers = nil)
758
- update_publishing_credentials_async(request_message, custom_headers).value!
762
+ def list_premier_add_on_offers_with_http_info(custom_headers = nil)
763
+ list_premier_add_on_offers_async(custom_headers).value!
759
764
  end
760
765
 
761
766
  #
762
- # Update the publishing credentials for the subscription owner.
767
+ # List all premier add-on offers.
763
768
  #
764
- # Update the publishing credentials for the subscription owner.
769
+ # List all premier add-on offers.
765
770
  #
766
- # @param request_message [User] A request message with the new publishing
767
- # credentials.
768
771
  # @param [Hash{String => String}] A hash of custom headers that will be added
769
772
  # to the HTTP request.
770
773
  #
771
774
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
772
775
  #
773
- def update_publishing_credentials_async(request_message, custom_headers = nil)
774
- fail ArgumentError, 'request_message is nil' if request_message.nil?
776
+ def list_premier_add_on_offers_async(custom_headers = nil)
775
777
  fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
776
778
  api_version = '2016-03-01'
777
779
 
@@ -781,15 +783,7 @@ module Azure::ARM::Web
781
783
  # Set Headers
782
784
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
783
785
  request_headers['accept-language'] = accept_language unless accept_language.nil?
784
-
785
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
786
-
787
- # Serialize Request
788
- request_mapper = User.mapper()
789
- request_content = self.serialize(request_mapper, request_message, 'request_message')
790
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
791
-
792
- path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/publishingCredentials'
786
+ path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/premieraddonoffers'
793
787
 
794
788
  request_url = @base_url || self.base_url
795
789
 
@@ -797,11 +791,10 @@ module Azure::ARM::Web
797
791
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
798
792
  path_params: {'subscriptionId' => subscription_id},
799
793
  query_params: {'api-version' => api_version},
800
- body: request_content,
801
794
  headers: request_headers.merge(custom_headers || {}),
802
795
  base_url: request_url
803
796
  }
804
- promise = self.make_request_async(:put, path_template, options)
797
+ promise = self.make_request_async(:get, path_template, options)
805
798
 
806
799
  promise = promise.then do |result|
807
800
  http_response = result.response
@@ -817,7 +810,7 @@ module Azure::ARM::Web
817
810
  if status_code == 200
818
811
  begin
819
812
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
820
- result_mapper = User.mapper()
813
+ result_mapper = PremierAddOnOfferCollection.mapper()
821
814
  result.body = self.deserialize(result_mapper, parsed_response, 'result.body')
822
815
  rescue Exception => e
823
816
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1390,7 +1383,7 @@ module Azure::ARM::Web
1390
1383
  headers: request_headers.merge(custom_headers || {}),
1391
1384
  base_url: request_url
1392
1385
  }
1393
- promise = self.make_request_async(:post, path_template, options)
1386
+ promise = self.make_request_async(:get, path_template, options)
1394
1387
 
1395
1388
  promise = promise.then do |result|
1396
1389
  http_response = result.response
@@ -1655,7 +1648,7 @@ module Azure::ARM::Web
1655
1648
  headers: request_headers.merge(custom_headers || {}),
1656
1649
  base_url: request_url
1657
1650
  }
1658
- promise = self.make_request_async(:post, path_template, options)
1651
+ promise = self.make_request_async(:get, path_template, options)
1659
1652
 
1660
1653
  promise = promise.then do |result|
1661
1654
  http_response = result.response