azure_mgmt_web 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_web.rb +149 -123
  3. data/lib/generated/azure_mgmt_web/app_service_certificate_orders.rb +556 -297
  4. data/lib/generated/azure_mgmt_web/app_service_environments.rb +1584 -1057
  5. data/lib/generated/azure_mgmt_web/app_service_plans.rb +890 -805
  6. data/lib/generated/azure_mgmt_web/certificates.rb +328 -215
  7. data/lib/generated/azure_mgmt_web/deleted_web_apps.rb +443 -0
  8. data/lib/generated/azure_mgmt_web/domains.rb +721 -243
  9. data/lib/generated/azure_mgmt_web/models/address.rb +12 -12
  10. data/lib/generated/azure_mgmt_web/models/address_response.rb +6 -6
  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 +5 -5
  13. data/lib/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +4 -4
  14. data/lib/generated/azure_mgmt_web/models/app_service_certificate_order.rb +36 -16
  15. data/lib/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +4 -4
  16. data/lib/generated/azure_mgmt_web/models/app_service_environment.rb +83 -64
  17. data/lib/generated/azure_mgmt_web/models/app_service_environment_collection.rb +4 -4
  18. data/lib/generated/azure_mgmt_web/models/app_service_plan.rb +69 -17
  19. data/lib/generated/azure_mgmt_web/models/app_service_plan_collection.rb +4 -4
  20. data/lib/generated/azure_mgmt_web/models/app_service_plan_restrictions.rb +20 -0
  21. data/lib/generated/azure_mgmt_web/models/application_logs_config.rb +4 -4
  22. data/lib/generated/azure_mgmt_web/models/auto_heal_actions.rb +6 -8
  23. data/lib/generated/azure_mgmt_web/models/auto_heal_custom_action.rb +3 -3
  24. data/lib/generated/azure_mgmt_web/models/auto_heal_rules.rb +5 -5
  25. data/lib/generated/azure_mgmt_web/models/auto_heal_triggers.rb +6 -9
  26. data/lib/generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb +2 -2
  27. data/lib/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb +3 -3
  28. data/lib/generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb +4 -4
  29. data/lib/generated/azure_mgmt_web/models/backup_item.rb +26 -11
  30. data/lib/generated/azure_mgmt_web/models/backup_item_collection.rb +4 -4
  31. data/lib/generated/azure_mgmt_web/models/backup_request.rb +9 -7
  32. data/lib/generated/azure_mgmt_web/models/backup_schedule.rb +18 -11
  33. data/lib/generated/azure_mgmt_web/models/capability.rb +4 -4
  34. data/lib/generated/azure_mgmt_web/models/certificate.rb +79 -18
  35. data/lib/generated/azure_mgmt_web/models/certificate_collection.rb +4 -4
  36. data/lib/generated/azure_mgmt_web/models/certificate_details.rb +29 -70
  37. data/lib/generated/azure_mgmt_web/models/certificate_email.rb +4 -4
  38. data/lib/generated/azure_mgmt_web/models/certificate_order_action.rb +8 -6
  39. data/lib/generated/azure_mgmt_web/models/certificate_order_action_type.rb +5 -0
  40. data/lib/generated/azure_mgmt_web/models/channels.rb +1 -0
  41. data/lib/generated/azure_mgmt_web/models/cloning_info.rb +24 -22
  42. data/lib/generated/azure_mgmt_web/models/conn_string_info.rb +67 -0
  43. data/lib/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb +3 -3
  44. data/lib/generated/azure_mgmt_web/models/connection_string_dictionary.rb +3 -3
  45. data/lib/generated/azure_mgmt_web/models/contact.rb +16 -15
  46. data/lib/generated/azure_mgmt_web/models/cors_settings.rb +1 -1
  47. data/lib/generated/azure_mgmt_web/models/csm_move_resource_envelope.rb +7 -2
  48. data/lib/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb +3 -3
  49. data/lib/generated/azure_mgmt_web/models/csm_site_recovery_entity.rb +6 -18
  50. data/lib/generated/azure_mgmt_web/models/csm_slot_entity.rb +6 -7
  51. data/lib/generated/azure_mgmt_web/models/csm_usage_quota.rb +6 -6
  52. data/lib/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +4 -4
  53. data/lib/generated/azure_mgmt_web/models/csr.rb +9 -9
  54. data/lib/generated/azure_mgmt_web/models/csr_collection.rb +93 -0
  55. data/lib/generated/azure_mgmt_web/models/custom_hostname_analysis_result.rb +28 -19
  56. data/lib/generated/azure_mgmt_web/models/database_backup_setting.rb +5 -6
  57. data/lib/generated/azure_mgmt_web/models/database_type.rb +17 -0
  58. data/lib/generated/azure_mgmt_web/models/deleted_site.rb +97 -61
  59. data/lib/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +4 -4
  60. data/lib/generated/azure_mgmt_web/models/deployment.rb +12 -12
  61. data/lib/generated/azure_mgmt_web/models/deployment_collection.rb +4 -4
  62. data/lib/generated/azure_mgmt_web/models/domain.rb +30 -20
  63. data/lib/generated/azure_mgmt_web/models/domain_availablility_check_result.rb +8 -6
  64. data/lib/generated/azure_mgmt_web/models/domain_collection.rb +4 -4
  65. data/lib/generated/azure_mgmt_web/models/domain_control_center_sso_request.rb +6 -3
  66. data/lib/generated/azure_mgmt_web/models/{classic_mobile_service.rb → domain_ownership_identifier.rb} +10 -10
  67. data/lib/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +93 -0
  68. data/lib/generated/azure_mgmt_web/models/domain_purchase_consent.rb +6 -6
  69. data/lib/generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb +3 -3
  70. data/lib/generated/azure_mgmt_web/models/enabled_config.rb +2 -2
  71. data/lib/generated/azure_mgmt_web/models/error_entity.rb +6 -6
  72. data/lib/generated/azure_mgmt_web/models/experiments.rb +2 -3
  73. data/lib/generated/azure_mgmt_web/models/file_system_application_logs_config.rb +3 -2
  74. data/lib/generated/azure_mgmt_web/models/file_system_http_logs_config.rb +6 -2
  75. data/lib/generated/azure_mgmt_web/models/geo_region.rb +8 -5
  76. data/lib/generated/azure_mgmt_web/models/geo_region_collection.rb +4 -4
  77. data/lib/generated/azure_mgmt_web/models/global_csm_sku_description.rb +101 -0
  78. data/lib/generated/azure_mgmt_web/models/handler_mapping.rb +1 -1
  79. data/lib/generated/azure_mgmt_web/models/host_name.rb +8 -8
  80. data/lib/generated/azure_mgmt_web/models/host_name_binding.rb +40 -7
  81. data/lib/generated/azure_mgmt_web/models/host_name_binding_collection.rb +4 -4
  82. data/lib/generated/azure_mgmt_web/models/host_name_ssl_state.rb +7 -7
  83. data/lib/generated/azure_mgmt_web/models/hosting_environment_diagnostics.rb +3 -3
  84. data/lib/generated/azure_mgmt_web/models/hosting_environment_profile.rb +6 -8
  85. data/lib/generated/azure_mgmt_web/models/http_logs_config.rb +3 -3
  86. data/lib/generated/azure_mgmt_web/models/hybrid_connection.rb +4 -4
  87. data/lib/generated/azure_mgmt_web/models/{metric_definition_collection.rb → hybrid_connection_collection.rb} +12 -12
  88. data/lib/generated/azure_mgmt_web/models/hybrid_connection_key.rb +5 -3
  89. data/lib/generated/azure_mgmt_web/models/hybrid_connection_limits.rb +107 -0
  90. data/lib/generated/azure_mgmt_web/models/{premier_add_on_request.rb → identifier.rb} +40 -40
  91. data/lib/generated/azure_mgmt_web/models/identifier_collection.rb +93 -0
  92. data/lib/generated/azure_mgmt_web/models/in_availability_reason_type.rb +16 -0
  93. data/lib/generated/azure_mgmt_web/models/ip_security_restriction.rb +3 -3
  94. data/lib/generated/azure_mgmt_web/models/localizable_string.rb +3 -3
  95. data/lib/generated/azure_mgmt_web/models/metric_availabilily.rb +3 -4
  96. data/lib/generated/azure_mgmt_web/models/metric_definition.rb +12 -7
  97. data/lib/generated/azure_mgmt_web/models/migrate_my_sql_request.rb +4 -4
  98. data/lib/generated/azure_mgmt_web/models/name_identifier.rb +2 -2
  99. data/lib/generated/azure_mgmt_web/models/name_identifier_collection.rb +4 -4
  100. data/lib/generated/azure_mgmt_web/models/name_value_pair.rb +3 -3
  101. data/lib/generated/azure_mgmt_web/models/network_access_control_entry.rb +6 -6
  102. data/lib/generated/azure_mgmt_web/models/network_features.rb +12 -9
  103. data/lib/generated/azure_mgmt_web/models/operation.rb +8 -8
  104. data/lib/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +4 -4
  105. data/lib/generated/azure_mgmt_web/models/perf_mon_response.rb +4 -4
  106. data/lib/generated/azure_mgmt_web/models/perf_mon_sample.rb +4 -4
  107. data/lib/generated/azure_mgmt_web/models/perf_mon_set.rb +6 -6
  108. data/lib/generated/azure_mgmt_web/models/premier_add_on.rb +171 -0
  109. data/lib/generated/azure_mgmt_web/models/premier_add_on_offer.rb +198 -0
  110. data/lib/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +93 -0
  111. data/lib/generated/azure_mgmt_web/models/publishing_profile_format.rb +17 -0
  112. data/lib/generated/azure_mgmt_web/models/push_settings.rb +5 -2
  113. data/lib/generated/azure_mgmt_web/models/ramp_up_rule.rb +16 -20
  114. data/lib/generated/azure_mgmt_web/models/recommendation.rb +20 -28
  115. data/lib/generated/azure_mgmt_web/models/recommendation_rule.rb +12 -22
  116. data/lib/generated/azure_mgmt_web/models/recover_response.rb +3 -2
  117. data/lib/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb +6 -6
  118. data/lib/generated/azure_mgmt_web/models/relay_service_connection_entity.rb +2 -2
  119. data/lib/generated/azure_mgmt_web/models/renew_certificate_order_request.rb +5 -5
  120. data/lib/generated/azure_mgmt_web/models/requests_based_trigger.rb +3 -3
  121. data/lib/generated/azure_mgmt_web/models/{arm_plan.rb → resource.rb} +32 -29
  122. data/lib/generated/azure_mgmt_web/models/resource_collection.rb +92 -0
  123. data/lib/generated/azure_mgmt_web/models/resource_metric.rb +9 -9
  124. data/lib/generated/azure_mgmt_web/models/resource_metric_availability.rb +56 -0
  125. data/lib/generated/azure_mgmt_web/models/resource_metric_collection.rb +4 -4
  126. data/lib/generated/azure_mgmt_web/models/resource_metric_definition.rb +178 -0
  127. data/lib/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +93 -0
  128. data/lib/generated/azure_mgmt_web/models/resource_metric_name.rb +3 -3
  129. data/lib/generated/azure_mgmt_web/models/resource_metric_property.rb +3 -3
  130. data/lib/generated/azure_mgmt_web/models/resource_metric_value.rb +8 -8
  131. data/lib/generated/azure_mgmt_web/models/resource_name_availability.rb +14 -8
  132. data/lib/generated/azure_mgmt_web/models/resource_name_availability_request.rb +5 -5
  133. data/lib/generated/azure_mgmt_web/models/resource_scope_type.rb +17 -0
  134. data/lib/generated/azure_mgmt_web/models/restore_request.rb +20 -17
  135. data/lib/generated/azure_mgmt_web/models/restore_response.rb +4 -3
  136. data/lib/generated/azure_mgmt_web/models/route_type.rb +17 -0
  137. data/lib/generated/azure_mgmt_web/models/scm_type.rb +27 -0
  138. data/lib/generated/azure_mgmt_web/models/site.rb +95 -60
  139. data/lib/generated/azure_mgmt_web/models/site_auth_settings.rb +57 -79
  140. data/lib/generated/azure_mgmt_web/models/site_cloneability.rb +8 -8
  141. data/lib/generated/azure_mgmt_web/models/site_cloneability_criterion.rb +3 -3
  142. data/lib/generated/azure_mgmt_web/models/site_config.rb +99 -38
  143. data/lib/generated/azure_mgmt_web/models/site_configuration_snapshot_info.rb +106 -0
  144. data/lib/generated/azure_mgmt_web/models/site_instance.rb +4 -3
  145. data/lib/generated/azure_mgmt_web/models/site_limits.rb +4 -4
  146. data/lib/generated/azure_mgmt_web/models/site_logs_config.rb +6 -6
  147. data/lib/generated/azure_mgmt_web/models/site_machine_key.rb +5 -5
  148. data/lib/generated/azure_mgmt_web/models/site_php_error_log_flag.rb +124 -0
  149. data/lib/generated/azure_mgmt_web/models/site_seal.rb +44 -0
  150. data/lib/generated/azure_mgmt_web/models/site_seal_request.rb +54 -0
  151. data/lib/generated/azure_mgmt_web/models/site_source_control.rb +11 -7
  152. data/lib/generated/azure_mgmt_web/models/sku_capacity.rb +9 -8
  153. data/lib/generated/azure_mgmt_web/models/sku_description.rb +9 -9
  154. data/lib/generated/azure_mgmt_web/models/sku_info.rb +4 -4
  155. data/lib/generated/azure_mgmt_web/models/sku_info_collection.rb +4 -4
  156. data/lib/generated/azure_mgmt_web/models/sku_infos.rb +63 -0
  157. data/lib/generated/azure_mgmt_web/models/sku_name.rb +20 -0
  158. data/lib/generated/azure_mgmt_web/models/slot_config_names_resource.rb +4 -4
  159. data/lib/generated/azure_mgmt_web/models/slot_difference.rb +18 -13
  160. data/lib/generated/azure_mgmt_web/models/slot_difference_collection.rb +4 -4
  161. data/lib/generated/azure_mgmt_web/models/slot_swap_status.rb +67 -0
  162. data/lib/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb +4 -4
  163. data/lib/generated/azure_mgmt_web/models/snapshot.rb +4 -3
  164. data/lib/generated/azure_mgmt_web/models/snapshot_collection.rb +4 -4
  165. data/lib/generated/azure_mgmt_web/models/source_control.rb +7 -7
  166. data/lib/generated/azure_mgmt_web/models/source_control_collection.rb +4 -4
  167. data/lib/generated/azure_mgmt_web/models/stamp_capacity.rb +12 -11
  168. data/lib/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +4 -4
  169. data/lib/generated/azure_mgmt_web/models/status_codes_based_trigger.rb +6 -6
  170. data/lib/generated/azure_mgmt_web/models/storage_migration_options.rb +11 -7
  171. data/lib/generated/azure_mgmt_web/models/storage_migration_response.rb +4 -3
  172. data/lib/generated/azure_mgmt_web/models/string_dictionary.rb +3 -3
  173. data/lib/generated/azure_mgmt_web/models/tld_legal_agreement.rb +8 -8
  174. data/lib/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +4 -4
  175. data/lib/generated/azure_mgmt_web/models/top_level_domain.rb +8 -7
  176. data/lib/generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb +4 -3
  177. data/lib/generated/azure_mgmt_web/models/top_level_domain_collection.rb +4 -4
  178. data/lib/generated/azure_mgmt_web/models/usage.rb +20 -11
  179. data/lib/generated/azure_mgmt_web/models/usage_collection.rb +4 -4
  180. data/lib/generated/azure_mgmt_web/models/user.rb +7 -7
  181. data/lib/generated/azure_mgmt_web/models/validate_request.rb +58 -12
  182. data/lib/generated/azure_mgmt_web/models/validate_response.rb +3 -3
  183. data/lib/generated/azure_mgmt_web/models/validate_response_error.rb +3 -3
  184. data/lib/generated/azure_mgmt_web/models/virtual_application.rb +7 -6
  185. data/lib/generated/azure_mgmt_web/models/virtual_directory.rb +3 -3
  186. data/lib/generated/azure_mgmt_web/models/virtual_ipmapping.rb +5 -5
  187. data/lib/generated/azure_mgmt_web/models/virtual_network_profile.rb +5 -5
  188. data/lib/generated/azure_mgmt_web/models/vnet_gateway.rb +5 -5
  189. data/lib/generated/azure_mgmt_web/models/vnet_info.rb +12 -9
  190. data/lib/generated/azure_mgmt_web/models/vnet_route.rb +11 -11
  191. data/lib/generated/azure_mgmt_web/models/web_app_collection.rb +4 -4
  192. data/lib/generated/azure_mgmt_web/models/{site_instance_collection.rb → web_app_instance_collection.rb} +9 -9
  193. data/lib/generated/azure_mgmt_web/models/worker_pool.rb +9 -8
  194. data/lib/generated/azure_mgmt_web/models/worker_pool_collection.rb +4 -4
  195. data/lib/generated/azure_mgmt_web/recommendations.rb +388 -132
  196. data/lib/generated/azure_mgmt_web/top_level_domains.rb +62 -48
  197. data/lib/generated/azure_mgmt_web/version.rb +1 -1
  198. data/lib/generated/azure_mgmt_web/web_apps.rb +8787 -6295
  199. data/lib/generated/azure_mgmt_web/web_site_management_client.rb +459 -288
  200. metadata +37 -11
  201. data/lib/generated/azure_mgmt_web/models/domain_registration_input.rb +0 -292
  202. data/lib/generated/azure_mgmt_web/models/validate_properties.rb +0 -76
@@ -6,16 +6,16 @@
6
6
  module Azure::ARM::Web
7
7
  module Models
8
8
  #
9
- # Error details for when validation fails
9
+ # Error details for when validation fails.
10
10
  #
11
11
  class ValidateResponseError
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Validation error code
15
+ # @return [String] Validation error code.
16
16
  attr_accessor :code
17
17
 
18
- # @return [String] Validation error message
18
+ # @return [String] Validation error message.
19
19
  attr_accessor :message
20
20
 
21
21
 
@@ -6,23 +6,24 @@
6
6
  module Azure::ARM::Web
7
7
  module Models
8
8
  #
9
- # Virtual application under web app
9
+ # Virtual application in an app.
10
10
  #
11
11
  class VirtualApplication
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Virtual path
15
+ # @return [String] Virtual path.
16
16
  attr_accessor :virtual_path
17
17
 
18
- # @return [String] Physical path
18
+ # @return [String] Physical path.
19
19
  attr_accessor :physical_path
20
20
 
21
- # @return [Boolean] Is preload enabled
21
+ # @return [Boolean] <code>true</code> if preloading is enabled;
22
+ # otherwise, <code>false</code>.
22
23
  attr_accessor :preload_enabled
23
24
 
24
- # @return [Array<VirtualDirectory>] Virtual Directories for virtual
25
- # application
25
+ # @return [Array<VirtualDirectory>] Virtual directories for virtual
26
+ # application.
26
27
  attr_accessor :virtual_directories
27
28
 
28
29
 
@@ -6,16 +6,16 @@
6
6
  module Azure::ARM::Web
7
7
  module Models
8
8
  #
9
- # Directory for virtual application
9
+ # Directory for virtual application.
10
10
  #
11
11
  class VirtualDirectory
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Path to virtual application
15
+ # @return [String] Path to virtual application.
16
16
  attr_accessor :virtual_path
17
17
 
18
- # @return [String] Physical path
18
+ # @return [String] Physical path.
19
19
  attr_accessor :physical_path
20
20
 
21
21
 
@@ -6,22 +6,22 @@
6
6
  module Azure::ARM::Web
7
7
  module Models
8
8
  #
9
- # Class that represents a VIP mapping
9
+ # Virtual IP mapping.
10
10
  #
11
11
  class VirtualIPMapping
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Virtual IP address
15
+ # @return [String] Virtual IP address.
16
16
  attr_accessor :virtual_ip
17
17
 
18
- # @return [Integer] Internal HTTP port
18
+ # @return [Integer] Internal HTTP port.
19
19
  attr_accessor :internal_http_port
20
20
 
21
- # @return [Integer] Internal HTTPS port
21
+ # @return [Integer] Internal HTTPS port.
22
22
  attr_accessor :internal_https_port
23
23
 
24
- # @return [Boolean] Is VIP mapping in use
24
+ # @return [Boolean] Is virtual IP mapping in use.
25
25
  attr_accessor :in_use
26
26
 
27
27
 
@@ -6,22 +6,22 @@
6
6
  module Azure::ARM::Web
7
7
  module Models
8
8
  #
9
- # Specification for using a virtual network
9
+ # Specification for using a Virtual Network.
10
10
  #
11
11
  class VirtualNetworkProfile
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Resource id of the virtual network
15
+ # @return [String] Resource id of the Virtual Network.
16
16
  attr_accessor :id
17
17
 
18
- # @return [String] Name of the virtual network (read-only)
18
+ # @return [String] Name of the Virtual Network (read-only).
19
19
  attr_accessor :name
20
20
 
21
- # @return [String] Resource type of the virtual network (read-only)
21
+ # @return [String] Resource type of the Virtual Network (read-only).
22
22
  attr_accessor :type
23
23
 
24
- # @return [String] Subnet within the virtual network
24
+ # @return [String] Subnet within the Virtual Network.
25
25
  attr_accessor :subnet
26
26
 
27
27
 
@@ -6,17 +6,17 @@
6
6
  module Azure::ARM::Web
7
7
  module Models
8
8
  #
9
- # The VnetGateway contract. This is used to give the vnet gateway access to
10
- # the VPN package.
9
+ # The Virtual Network gateway contract. This is used to give the Virtual
10
+ # Network gateway access to the VPN package.
11
11
  #
12
12
  class VnetGateway < MsRestAzure::Resource
13
13
 
14
14
  include MsRestAzure
15
15
 
16
- # @return [String] The VNET name.
16
+ # @return [String] The Virtual Network name.
17
17
  attr_accessor :vnet_name
18
18
 
19
- # @return [String] The URI where the Vpn package can be downloaded
19
+ # @return [String] The URI where the VPN package can be downloaded.
20
20
  attr_accessor :vpn_package_uri
21
21
 
22
22
 
@@ -41,7 +41,7 @@ module Azure::ARM::Web
41
41
  }
42
42
  },
43
43
  name: {
44
- required: true,
44
+ required: false,
45
45
  serialized_name: 'name',
46
46
  type: {
47
47
  name: 'String'
@@ -6,17 +6,16 @@
6
6
  module Azure::ARM::Web
7
7
  module Models
8
8
  #
9
- # VNETInfo contract. This contract is public and is a stripped down version
10
- # of VNETInfoInternal
9
+ # Virtual Network information contract.
11
10
  #
12
11
  class VnetInfo < MsRestAzure::Resource
13
12
 
14
13
  include MsRestAzure
15
14
 
16
- # @return [String] The vnet resource id
15
+ # @return [String] The Virtual Network's resource ID.
17
16
  attr_accessor :vnet_resource_id
18
17
 
19
- # @return [String] The client certificate thumbprint
18
+ # @return [String] The client certificate thumbprint.
20
19
  attr_accessor :cert_thumbprint
21
20
 
22
21
  # @return [String] A certificate file (.cer) blob containing the public
@@ -24,15 +23,16 @@ module Azure::ARM::Web
24
23
  # Point-To-Site VPN connection.
25
24
  attr_accessor :cert_blob
26
25
 
27
- # @return [Array<VnetRoute>] The routes that this virtual network
26
+ # @return [Array<VnetRoute>] The routes that this Virtual Network
28
27
  # connection uses.
29
28
  attr_accessor :routes
30
29
 
31
- # @return [Boolean] Flag to determine if a resync is required
30
+ # @return [Boolean] <code>true</code> if a resync is required; otherwise,
31
+ # <code>false</code>.
32
32
  attr_accessor :resync_required
33
33
 
34
- # @return [String] Dns servers to be used by this VNET. This should be a
35
- # comma-separated list of IP addresses.
34
+ # @return [String] DNS servers to be used by this Virtual Network. This
35
+ # should be a comma-separated list of IP addresses.
36
36
  attr_accessor :dns_servers
37
37
 
38
38
 
@@ -57,7 +57,7 @@ module Azure::ARM::Web
57
57
  }
58
58
  },
59
59
  name: {
60
- required: true,
60
+ required: false,
61
61
  serialized_name: 'name',
62
62
  type: {
63
63
  name: 'String'
@@ -107,6 +107,7 @@ module Azure::ARM::Web
107
107
  },
108
108
  cert_thumbprint: {
109
109
  required: false,
110
+ read_only: true,
110
111
  serialized_name: 'properties.certThumbprint',
111
112
  type: {
112
113
  name: 'String'
@@ -121,6 +122,7 @@ module Azure::ARM::Web
121
122
  },
122
123
  routes: {
123
124
  required: false,
125
+ read_only: true,
124
126
  serialized_name: 'properties.routes',
125
127
  type: {
126
128
  name: 'Sequence',
@@ -136,6 +138,7 @@ module Azure::ARM::Web
136
138
  },
137
139
  resync_required: {
138
140
  required: false,
141
+ read_only: true,
139
142
  serialized_name: 'properties.resyncRequired',
140
143
  type: {
141
144
  name: 'Boolean'
@@ -6,7 +6,8 @@
6
6
  module Azure::ARM::Web
7
7
  module Models
8
8
  #
9
- # VnetRoute contract used to pass routing information for a vnet.
9
+ # Virtual Network route contract used to pass routing information for a
10
+ # Virtual Network.
10
11
  #
11
12
  class VnetRoute < MsRestAzure::Resource
12
13
 
@@ -25,16 +26,15 @@ module Azure::ARM::Web
25
26
  # address is specified in CIDR notation, this must be omitted.
26
27
  attr_accessor :end_address
27
28
 
28
- # @return [String] The type of route this is:
29
- # DEFAULT - By default, every web app has routes to the local address
30
- # ranges specified by RFC1918
29
+ # @return [RouteType] The type of route this is:
30
+ # DEFAULT - By default, every app has routes to the local address ranges
31
+ # specified by RFC1918
31
32
  # INHERITED - Routes inherited from the real Virtual Network routes
32
- # STATIC - Static route set on the web app only
33
- #
34
- # These values will be used for syncing a Web App's routes with those
35
- # from a Virtual Network. This operation will clear all DEFAULT and
36
- # INHERITED routes and replace them
37
- # with new INHERITED routes.
33
+ # STATIC - Static route set on the app only
34
+ #
35
+ # These values will be used for syncing an app's routes with those from a
36
+ # Virtual Network. Possible values include: 'DEFAULT', 'INHERITED',
37
+ # 'STATIC'
38
38
  attr_accessor :route_type
39
39
 
40
40
 
@@ -59,7 +59,7 @@ module Azure::ARM::Web
59
59
  }
60
60
  },
61
61
  name: {
62
- required: true,
62
+ required: false,
63
63
  serialized_name: 'name',
64
64
  type: {
65
65
  name: 'String'
@@ -6,16 +6,16 @@
6
6
  module Azure::ARM::Web
7
7
  module Models
8
8
  #
9
- # Collection of sites
9
+ # Collection of App Service apps.
10
10
  #
11
11
  class WebAppCollection
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<Site>] Collection of resources
15
+ # @return [Array<Site>] Collection of resources.
16
16
  attr_accessor :value
17
17
 
18
- # @return [String] Link to next page of resources
18
+ # @return [String] Link to next page of resources.
19
19
  attr_accessor :next_link
20
20
 
21
21
  # return [Proc] with next page method call.
@@ -63,7 +63,7 @@ module Azure::ARM::Web
63
63
  class_name: 'WebAppCollection',
64
64
  model_properties: {
65
65
  value: {
66
- required: false,
66
+ required: true,
67
67
  serialized_name: 'value',
68
68
  type: {
69
69
  name: 'Sequence',
@@ -6,16 +6,16 @@
6
6
  module Azure::ARM::Web
7
7
  module Models
8
8
  #
9
- # Collection of site instances
9
+ # Collection of app instances.
10
10
  #
11
- class SiteInstanceCollection
11
+ class WebAppInstanceCollection
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<SiteInstance>] Collection of resources
15
+ # @return [Array<SiteInstance>] Collection of resources.
16
16
  attr_accessor :value
17
17
 
18
- # @return [String] Link to next page of resources
18
+ # @return [String] Link to next page of resources.
19
19
  attr_accessor :next_link
20
20
 
21
21
  # return [Proc] with next page method call.
@@ -39,7 +39,7 @@ module Azure::ARM::Web
39
39
  #
40
40
  # Gets the next page of results.
41
41
  #
42
- # @return [SiteInstanceCollection] with next page content.
42
+ # @return [WebAppInstanceCollection] with next page content.
43
43
  #
44
44
  def get_next_page
45
45
  response = @next_method.call(@next_link).value! unless @next_method.nil?
@@ -51,19 +51,19 @@ module Azure::ARM::Web
51
51
  end
52
52
 
53
53
  #
54
- # Mapper for SiteInstanceCollection class as Ruby Hash.
54
+ # Mapper for WebAppInstanceCollection class as Ruby Hash.
55
55
  # This will be used for serialization/deserialization.
56
56
  #
57
57
  def self.mapper()
58
58
  {
59
59
  required: false,
60
- serialized_name: 'SiteInstanceCollection',
60
+ serialized_name: 'WebAppInstanceCollection',
61
61
  type: {
62
62
  name: 'Composite',
63
- class_name: 'SiteInstanceCollection',
63
+ class_name: 'WebAppInstanceCollection',
64
64
  model_properties: {
65
65
  value: {
66
- required: false,
66
+ required: true,
67
67
  serialized_name: 'value',
68
68
  type: {
69
69
  name: 'Sequence',
@@ -6,27 +6,27 @@
6
6
  module Azure::ARM::Web
7
7
  module Models
8
8
  #
9
- # Worker pool of a hostingEnvironment (App Service Environment)
9
+ # Worker pool of an App Service Environment.
10
10
  #
11
11
  class WorkerPool < MsRestAzure::Resource
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Integer] Worker size id for referencing this worker pool
15
+ # @return [Integer] Worker size ID for referencing this worker pool.
16
16
  attr_accessor :worker_size_id
17
17
 
18
- # @return [ComputeModeOptions] Shared or dedicated web app hosting.
19
- # Possible values include: 'Shared', 'Dedicated', 'Dynamic'
18
+ # @return [ComputeModeOptions] Shared or dedicated app hosting. Possible
19
+ # values include: 'Shared', 'Dedicated', 'Dynamic'
20
20
  attr_accessor :compute_mode
21
21
 
22
- # @return [String] VM size of the worker pool instances
22
+ # @return [String] VM size of the worker pool instances.
23
23
  attr_accessor :worker_size
24
24
 
25
- # @return [Integer] Number of instances in the worker pool
25
+ # @return [Integer] Number of instances in the worker pool.
26
26
  attr_accessor :worker_count
27
27
 
28
28
  # @return [Array<String>] Names of all instances in the worker pool (read
29
- # only)
29
+ # only).
30
30
  attr_accessor :instance_names
31
31
 
32
32
  # @return [SkuDescription]
@@ -54,7 +54,7 @@ module Azure::ARM::Web
54
54
  }
55
55
  },
56
56
  name: {
57
- required: true,
57
+ required: false,
58
58
  serialized_name: 'name',
59
59
  type: {
60
60
  name: 'String'
@@ -126,6 +126,7 @@ module Azure::ARM::Web
126
126
  },
127
127
  instance_names: {
128
128
  required: false,
129
+ read_only: true,
129
130
  serialized_name: 'properties.instanceNames',
130
131
  type: {
131
132
  name: 'Sequence',
@@ -6,16 +6,16 @@
6
6
  module Azure::ARM::Web
7
7
  module Models
8
8
  #
9
- # Collection of worker pools
9
+ # Collection of worker pools.
10
10
  #
11
11
  class WorkerPoolCollection
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<WorkerPool>] Collection of resources
15
+ # @return [Array<WorkerPool>] Collection of resources.
16
16
  attr_accessor :value
17
17
 
18
- # @return [String] Link to next page of resources
18
+ # @return [String] Link to next page of resources.
19
19
  attr_accessor :next_link
20
20
 
21
21
  # return [Proc] with next page method call.
@@ -63,7 +63,7 @@ module Azure::ARM::Web
63
63
  class_name: 'WorkerPoolCollection',
64
64
  model_properties: {
65
65
  value: {
66
- required: false,
66
+ required: true,
67
67
  serialized_name: 'value',
68
68
  type: {
69
69
  name: 'Sequence',
@@ -23,63 +23,66 @@ module Azure::ARM::Web
23
23
  attr_reader :client
24
24
 
25
25
  #
26
- # Gets a list of recommendations associated with the specified subscription.
26
+ # List all recommendations for a subscription.
27
27
  #
28
- # Gets a list of recommendations associated with the specified subscription.
28
+ # List all recommendations for a subscription.
29
29
  #
30
- # @param featured [Boolean] If set, this API returns only the most critical
31
- # recommendation among the others. Otherwise this API returns all
32
- # recommendations available
33
- # @param filter [String] Return only channels specified in the filter. Filter
34
- # is specified by using OData syntax. Example: $filter=channels eq 'Api' or
35
- # channel eq 'Notification'
30
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
31
+ # critical recommendations. The default is <code>false</code>, which returns
32
+ # all recommendations.
33
+ # @param filter [String] Filter is specified by using OData syntax. Example:
34
+ # $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq
35
+ # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
36
+ # duration'[PT1H|PT1M|P1D]
36
37
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
37
38
  # will be added to the HTTP request.
38
39
  #
39
40
  # @return [Array] operation results.
40
41
  #
41
- def get(featured = nil, filter = nil, custom_headers = nil)
42
- response = get_async(featured, filter, custom_headers).value!
42
+ def list(featured = nil, filter = nil, custom_headers = nil)
43
+ response = list_async(featured, filter, custom_headers).value!
43
44
  response.body unless response.nil?
44
45
  end
45
46
 
46
47
  #
47
- # Gets a list of recommendations associated with the specified subscription.
48
+ # List all recommendations for a subscription.
48
49
  #
49
- # Gets a list of recommendations associated with the specified subscription.
50
+ # List all recommendations for a subscription.
50
51
  #
51
- # @param featured [Boolean] If set, this API returns only the most critical
52
- # recommendation among the others. Otherwise this API returns all
53
- # recommendations available
54
- # @param filter [String] Return only channels specified in the filter. Filter
55
- # is specified by using OData syntax. Example: $filter=channels eq 'Api' or
56
- # channel eq 'Notification'
52
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
53
+ # critical recommendations. The default is <code>false</code>, which returns
54
+ # all recommendations.
55
+ # @param filter [String] Filter is specified by using OData syntax. Example:
56
+ # $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq
57
+ # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
58
+ # duration'[PT1H|PT1M|P1D]
57
59
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
58
60
  # will be added to the HTTP request.
59
61
  #
60
62
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
61
63
  #
62
- def get_with_http_info(featured = nil, filter = nil, custom_headers = nil)
63
- get_async(featured, filter, custom_headers).value!
64
+ def list_with_http_info(featured = nil, filter = nil, custom_headers = nil)
65
+ list_async(featured, filter, custom_headers).value!
64
66
  end
65
67
 
66
68
  #
67
- # Gets a list of recommendations associated with the specified subscription.
69
+ # List all recommendations for a subscription.
68
70
  #
69
- # Gets a list of recommendations associated with the specified subscription.
71
+ # List all recommendations for a subscription.
70
72
  #
71
- # @param featured [Boolean] If set, this API returns only the most critical
72
- # recommendation among the others. Otherwise this API returns all
73
- # recommendations available
74
- # @param filter [String] Return only channels specified in the filter. Filter
75
- # is specified by using OData syntax. Example: $filter=channels eq 'Api' or
76
- # channel eq 'Notification'
73
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
74
+ # critical recommendations. The default is <code>false</code>, which returns
75
+ # all recommendations.
76
+ # @param filter [String] Filter is specified by using OData syntax. Example:
77
+ # $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq
78
+ # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
79
+ # duration'[PT1H|PT1M|P1D]
77
80
  # @param [Hash{String => String}] A hash of custom headers that will be added
78
81
  # to the HTTP request.
79
82
  #
80
83
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
81
84
  #
82
- def get_async(featured = nil, filter = nil, custom_headers = nil)
85
+ def list_async(featured = nil, filter = nil, custom_headers = nil)
83
86
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
84
87
  api_version = '2016-03-01'
85
88
 
@@ -96,7 +99,8 @@ module Azure::ARM::Web
96
99
  options = {
97
100
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
98
101
  path_params: {'subscriptionId' => @client.subscription_id},
99
- query_params: {'featured' => featured,'$filter' => filter,'api-version' => api_version},
102
+ query_params: {'featured' => featured,'api-version' => api_version},
103
+ skip_encoding_query_params: {'$filter' => filter},
100
104
  headers: request_headers.merge(custom_headers || {}),
101
105
  base_url: request_url
102
106
  }
@@ -144,69 +148,144 @@ module Azure::ARM::Web
144
148
  end
145
149
 
146
150
  #
147
- # Gets the list of past recommendations optionally specified by the time range.
151
+ # Reset all recommendation opt-out settings for a subscription.
152
+ #
153
+ # Reset all recommendation opt-out settings for a subscription.
154
+ #
155
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
156
+ # will be added to the HTTP request.
157
+ #
158
+ #
159
+ def reset_all_filters(custom_headers = nil)
160
+ response = reset_all_filters_async(custom_headers).value!
161
+ nil
162
+ end
163
+
164
+ #
165
+ # Reset all recommendation opt-out settings for a subscription.
166
+ #
167
+ # Reset all recommendation opt-out settings for a subscription.
168
+ #
169
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
170
+ # will be added to the HTTP request.
171
+ #
172
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
173
+ #
174
+ def reset_all_filters_with_http_info(custom_headers = nil)
175
+ reset_all_filters_async(custom_headers).value!
176
+ end
177
+
178
+ #
179
+ # Reset all recommendation opt-out settings for a subscription.
180
+ #
181
+ # Reset all recommendation opt-out settings for a subscription.
182
+ #
183
+ # @param [Hash{String => String}] A hash of custom headers that will be added
184
+ # to the HTTP request.
185
+ #
186
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
187
+ #
188
+ def reset_all_filters_async(custom_headers = nil)
189
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
190
+ api_version = '2016-03-01'
191
+
192
+
193
+ request_headers = {}
194
+
195
+ # Set Headers
196
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
197
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
198
+ path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/reset'
199
+
200
+ request_url = @base_url || @client.base_url
201
+
202
+ options = {
203
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
204
+ path_params: {'subscriptionId' => @client.subscription_id},
205
+ query_params: {'api-version' => api_version},
206
+ headers: request_headers.merge(custom_headers || {}),
207
+ base_url: request_url
208
+ }
209
+ promise = @client.make_request_async(:post, path_template, options)
210
+
211
+ promise = promise.then do |result|
212
+ http_response = result.response
213
+ status_code = http_response.status
214
+ response_content = http_response.body
215
+ unless status_code == 204
216
+ error_model = JSON.load(response_content)
217
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
218
+ end
219
+
220
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
221
+
222
+ result
223
+ end
224
+
225
+ promise.execute
226
+ end
227
+
228
+ #
229
+ # Get past recommendations for an app, optionally specified by the time range.
148
230
  #
149
- # Gets the list of past recommendations optionally specified by the time range.
231
+ # Get past recommendations for an app, optionally specified by the time range.
150
232
  #
151
- # @param resource_group_name [String] Resource group name
152
- # @param site_name [String] Site name
153
- # @param start_time [String] The start time of a time range to query, e.g.
154
- # $filter=startTime eq '2015-01-01T00:00:00Z' and endTime eq
155
- # '2015-01-02T00:00:00Z'
156
- # @param end_time [String] The end time of a time range to query, e.g.
157
- # $filter=startTime eq '2015-01-01T00:00:00Z' and endTime eq
158
- # '2015-01-02T00:00:00Z'
233
+ # @param resource_group_name [String] Name of the resource group to which the
234
+ # resource belongs.
235
+ # @param site_name [String] Name of the app.
236
+ # @param filter [String] Filter is specified by using OData syntax. Example:
237
+ # $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq
238
+ # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
239
+ # duration'[PT1H|PT1M|P1D]
159
240
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
160
241
  # will be added to the HTTP request.
161
242
  #
162
243
  # @return [Array] operation results.
163
244
  #
164
- def list_history_for_web_app(resource_group_name, site_name, start_time = nil, end_time = nil, custom_headers = nil)
165
- response = list_history_for_web_app_async(resource_group_name, site_name, start_time, end_time, custom_headers).value!
245
+ def list_history_for_web_app(resource_group_name, site_name, filter = nil, custom_headers = nil)
246
+ response = list_history_for_web_app_async(resource_group_name, site_name, filter, custom_headers).value!
166
247
  response.body unless response.nil?
167
248
  end
168
249
 
169
250
  #
170
- # Gets the list of past recommendations optionally specified by the time range.
251
+ # Get past recommendations for an app, optionally specified by the time range.
171
252
  #
172
- # Gets the list of past recommendations optionally specified by the time range.
253
+ # Get past recommendations for an app, optionally specified by the time range.
173
254
  #
174
- # @param resource_group_name [String] Resource group name
175
- # @param site_name [String] Site name
176
- # @param start_time [String] The start time of a time range to query, e.g.
177
- # $filter=startTime eq '2015-01-01T00:00:00Z' and endTime eq
178
- # '2015-01-02T00:00:00Z'
179
- # @param end_time [String] The end time of a time range to query, e.g.
180
- # $filter=startTime eq '2015-01-01T00:00:00Z' and endTime eq
181
- # '2015-01-02T00:00:00Z'
255
+ # @param resource_group_name [String] Name of the resource group to which the
256
+ # resource belongs.
257
+ # @param site_name [String] Name of the app.
258
+ # @param filter [String] Filter is specified by using OData syntax. Example:
259
+ # $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq
260
+ # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
261
+ # duration'[PT1H|PT1M|P1D]
182
262
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
183
263
  # will be added to the HTTP request.
184
264
  #
185
265
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
186
266
  #
187
- def list_history_for_web_app_with_http_info(resource_group_name, site_name, start_time = nil, end_time = nil, custom_headers = nil)
188
- list_history_for_web_app_async(resource_group_name, site_name, start_time, end_time, custom_headers).value!
267
+ def list_history_for_web_app_with_http_info(resource_group_name, site_name, filter = nil, custom_headers = nil)
268
+ list_history_for_web_app_async(resource_group_name, site_name, filter, custom_headers).value!
189
269
  end
190
270
 
191
271
  #
192
- # Gets the list of past recommendations optionally specified by the time range.
272
+ # Get past recommendations for an app, optionally specified by the time range.
193
273
  #
194
- # Gets the list of past recommendations optionally specified by the time range.
274
+ # Get past recommendations for an app, optionally specified by the time range.
195
275
  #
196
- # @param resource_group_name [String] Resource group name
197
- # @param site_name [String] Site name
198
- # @param start_time [String] The start time of a time range to query, e.g.
199
- # $filter=startTime eq '2015-01-01T00:00:00Z' and endTime eq
200
- # '2015-01-02T00:00:00Z'
201
- # @param end_time [String] The end time of a time range to query, e.g.
202
- # $filter=startTime eq '2015-01-01T00:00:00Z' and endTime eq
203
- # '2015-01-02T00:00:00Z'
276
+ # @param resource_group_name [String] Name of the resource group to which the
277
+ # resource belongs.
278
+ # @param site_name [String] Name of the app.
279
+ # @param filter [String] Filter is specified by using OData syntax. Example:
280
+ # $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq
281
+ # '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
282
+ # duration'[PT1H|PT1M|P1D]
204
283
  # @param [Hash{String => String}] A hash of custom headers that will be added
205
284
  # to the HTTP request.
206
285
  #
207
286
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
208
287
  #
209
- def list_history_for_web_app_async(resource_group_name, site_name, start_time = nil, end_time = nil, custom_headers = nil)
288
+ def list_history_for_web_app_async(resource_group_name, site_name, filter = nil, custom_headers = nil)
210
289
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
211
290
  fail ArgumentError, 'site_name is nil' if site_name.nil?
212
291
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -225,7 +304,8 @@ module Azure::ARM::Web
225
304
  options = {
226
305
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
227
306
  path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
228
- query_params: {'startTime' => start_time,'endTime' => end_time,'api-version' => api_version},
307
+ query_params: {'api-version' => api_version},
308
+ skip_encoding_query_params: {'$filter' => filter},
229
309
  headers: request_headers.merge(custom_headers || {}),
230
310
  base_url: request_url
231
311
  }
@@ -273,72 +353,72 @@ module Azure::ARM::Web
273
353
  end
274
354
 
275
355
  #
276
- # Gets a list of recommendations associated with the specified web site.
356
+ # Get all recommendations for an app.
277
357
  #
278
- # Gets a list of recommendations associated with the specified web site.
358
+ # Get all recommendations for an app.
279
359
  #
280
- # @param resource_group_name [String] Resource group name
281
- # @param site_name [String] Site name
282
- # @param featured [Boolean] If set, this API returns only the most critical
283
- # recommendation among the others. Otherwise this API returns all
284
- # recommendations available
285
- # @param web_app_sku [String] The name of web app SKU.
286
- # @param num_slots [Integer] The number of site slots associated to the site
287
- # @param live_hours [Integer] If greater than zero, this API scans the last
288
- # active live site symptoms, dynamically generate on-the-fly recommendations
360
+ # @param resource_group_name [String] Name of the resource group to which the
361
+ # resource belongs.
362
+ # @param site_name [String] Name of the app.
363
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
364
+ # critical recommendations. The default is <code>false</code>, which returns
365
+ # all recommendations.
366
+ # @param filter [String] Return only channels specified in the filter. Filter
367
+ # is specified by using OData syntax. Example: $filter=channels eq 'Api' or
368
+ # channel eq 'Notification'
289
369
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
290
370
  # will be added to the HTTP request.
291
371
  #
292
372
  # @return [Array] operation results.
293
373
  #
294
- def list_recommended_rules_for_web_app(resource_group_name, site_name, featured = nil, web_app_sku = nil, num_slots = nil, live_hours = nil, custom_headers = nil)
295
- response = list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured, web_app_sku, num_slots, live_hours, custom_headers).value!
374
+ def list_recommended_rules_for_web_app(resource_group_name, site_name, featured = nil, filter = nil, custom_headers = nil)
375
+ response = list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured, filter, custom_headers).value!
296
376
  response.body unless response.nil?
297
377
  end
298
378
 
299
379
  #
300
- # Gets a list of recommendations associated with the specified web site.
380
+ # Get all recommendations for an app.
301
381
  #
302
- # Gets a list of recommendations associated with the specified web site.
382
+ # Get all recommendations for an app.
303
383
  #
304
- # @param resource_group_name [String] Resource group name
305
- # @param site_name [String] Site name
306
- # @param featured [Boolean] If set, this API returns only the most critical
307
- # recommendation among the others. Otherwise this API returns all
308
- # recommendations available
309
- # @param web_app_sku [String] The name of web app SKU.
310
- # @param num_slots [Integer] The number of site slots associated to the site
311
- # @param live_hours [Integer] If greater than zero, this API scans the last
312
- # active live site symptoms, dynamically generate on-the-fly recommendations
384
+ # @param resource_group_name [String] Name of the resource group to which the
385
+ # resource belongs.
386
+ # @param site_name [String] Name of the app.
387
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
388
+ # critical recommendations. The default is <code>false</code>, which returns
389
+ # all recommendations.
390
+ # @param filter [String] Return only channels specified in the filter. Filter
391
+ # is specified by using OData syntax. Example: $filter=channels eq 'Api' or
392
+ # channel eq 'Notification'
313
393
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
314
394
  # will be added to the HTTP request.
315
395
  #
316
396
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
317
397
  #
318
- def list_recommended_rules_for_web_app_with_http_info(resource_group_name, site_name, featured = nil, web_app_sku = nil, num_slots = nil, live_hours = nil, custom_headers = nil)
319
- list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured, web_app_sku, num_slots, live_hours, custom_headers).value!
398
+ def list_recommended_rules_for_web_app_with_http_info(resource_group_name, site_name, featured = nil, filter = nil, custom_headers = nil)
399
+ list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured, filter, custom_headers).value!
320
400
  end
321
401
 
322
402
  #
323
- # Gets a list of recommendations associated with the specified web site.
403
+ # Get all recommendations for an app.
324
404
  #
325
- # Gets a list of recommendations associated with the specified web site.
405
+ # Get all recommendations for an app.
326
406
  #
327
- # @param resource_group_name [String] Resource group name
328
- # @param site_name [String] Site name
329
- # @param featured [Boolean] If set, this API returns only the most critical
330
- # recommendation among the others. Otherwise this API returns all
331
- # recommendations available
332
- # @param web_app_sku [String] The name of web app SKU.
333
- # @param num_slots [Integer] The number of site slots associated to the site
334
- # @param live_hours [Integer] If greater than zero, this API scans the last
335
- # active live site symptoms, dynamically generate on-the-fly recommendations
407
+ # @param resource_group_name [String] Name of the resource group to which the
408
+ # resource belongs.
409
+ # @param site_name [String] Name of the app.
410
+ # @param featured [Boolean] Specify <code>true</code> to return only the most
411
+ # critical recommendations. The default is <code>false</code>, which returns
412
+ # all recommendations.
413
+ # @param filter [String] Return only channels specified in the filter. Filter
414
+ # is specified by using OData syntax. Example: $filter=channels eq 'Api' or
415
+ # channel eq 'Notification'
336
416
  # @param [Hash{String => String}] A hash of custom headers that will be added
337
417
  # to the HTTP request.
338
418
  #
339
419
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
340
420
  #
341
- def list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured = nil, web_app_sku = nil, num_slots = nil, live_hours = nil, custom_headers = nil)
421
+ def list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured = nil, filter = nil, custom_headers = nil)
342
422
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
343
423
  fail ArgumentError, 'site_name is nil' if site_name.nil?
344
424
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -357,7 +437,8 @@ module Azure::ARM::Web
357
437
  options = {
358
438
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
359
439
  path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
360
- query_params: {'featured' => featured,'webAppSku' => web_app_sku,'numSlots' => num_slots,'liveHours' => live_hours,'api-version' => api_version},
440
+ query_params: {'featured' => featured,'api-version' => api_version},
441
+ skip_encoding_query_params: {'$filter' => filter},
361
442
  headers: request_headers.merge(custom_headers || {}),
362
443
  base_url: request_url
363
444
  }
@@ -405,17 +486,194 @@ module Azure::ARM::Web
405
486
  end
406
487
 
407
488
  #
408
- # Gets the detailed properties of the recommendation object for the specified
409
- # web site.
489
+ # Disable all recommendations for an app.
490
+ #
491
+ # Disable all recommendations for an app.
492
+ #
493
+ # @param resource_group_name [String] Name of the resource group to which the
494
+ # resource belongs.
495
+ # @param site_name [String] Name of the app.
496
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
497
+ # will be added to the HTTP request.
498
+ #
499
+ #
500
+ def disable_all_for_web_app(resource_group_name, site_name, custom_headers = nil)
501
+ response = disable_all_for_web_app_async(resource_group_name, site_name, custom_headers).value!
502
+ nil
503
+ end
504
+
505
+ #
506
+ # Disable all recommendations for an app.
507
+ #
508
+ # Disable all recommendations for an app.
509
+ #
510
+ # @param resource_group_name [String] Name of the resource group to which the
511
+ # resource belongs.
512
+ # @param site_name [String] Name of the app.
513
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
514
+ # will be added to the HTTP request.
515
+ #
516
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
517
+ #
518
+ def disable_all_for_web_app_with_http_info(resource_group_name, site_name, custom_headers = nil)
519
+ disable_all_for_web_app_async(resource_group_name, site_name, custom_headers).value!
520
+ end
521
+
522
+ #
523
+ # Disable all recommendations for an app.
524
+ #
525
+ # Disable all recommendations for an app.
526
+ #
527
+ # @param resource_group_name [String] Name of the resource group to which the
528
+ # resource belongs.
529
+ # @param site_name [String] Name of the app.
530
+ # @param [Hash{String => String}] A hash of custom headers that will be added
531
+ # to the HTTP request.
532
+ #
533
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
534
+ #
535
+ def disable_all_for_web_app_async(resource_group_name, site_name, custom_headers = nil)
536
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
537
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
538
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
539
+ api_version = '2016-03-01'
540
+
541
+
542
+ request_headers = {}
543
+
544
+ # Set Headers
545
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
546
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
547
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/disable'
548
+
549
+ request_url = @base_url || @client.base_url
550
+
551
+ options = {
552
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
553
+ path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
554
+ query_params: {'api-version' => api_version},
555
+ headers: request_headers.merge(custom_headers || {}),
556
+ base_url: request_url
557
+ }
558
+ promise = @client.make_request_async(:post, path_template, options)
559
+
560
+ promise = promise.then do |result|
561
+ http_response = result.response
562
+ status_code = http_response.status
563
+ response_content = http_response.body
564
+ unless status_code == 204
565
+ error_model = JSON.load(response_content)
566
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
567
+ end
568
+
569
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
570
+
571
+ result
572
+ end
573
+
574
+ promise.execute
575
+ end
576
+
577
+ #
578
+ # Reset all recommendation opt-out settings for an app.
579
+ #
580
+ # Reset all recommendation opt-out settings for an app.
581
+ #
582
+ # @param resource_group_name [String] Name of the resource group to which the
583
+ # resource belongs.
584
+ # @param site_name [String] Name of the app.
585
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
586
+ # will be added to the HTTP request.
587
+ #
588
+ #
589
+ def reset_all_filters_for_web_app(resource_group_name, site_name, custom_headers = nil)
590
+ response = reset_all_filters_for_web_app_async(resource_group_name, site_name, custom_headers).value!
591
+ nil
592
+ end
593
+
594
+ #
595
+ # Reset all recommendation opt-out settings for an app.
596
+ #
597
+ # Reset all recommendation opt-out settings for an app.
598
+ #
599
+ # @param resource_group_name [String] Name of the resource group to which the
600
+ # resource belongs.
601
+ # @param site_name [String] Name of the app.
602
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
603
+ # will be added to the HTTP request.
604
+ #
605
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
606
+ #
607
+ def reset_all_filters_for_web_app_with_http_info(resource_group_name, site_name, custom_headers = nil)
608
+ reset_all_filters_for_web_app_async(resource_group_name, site_name, custom_headers).value!
609
+ end
610
+
611
+ #
612
+ # Reset all recommendation opt-out settings for an app.
613
+ #
614
+ # Reset all recommendation opt-out settings for an app.
615
+ #
616
+ # @param resource_group_name [String] Name of the resource group to which the
617
+ # resource belongs.
618
+ # @param site_name [String] Name of the app.
619
+ # @param [Hash{String => String}] A hash of custom headers that will be added
620
+ # to the HTTP request.
621
+ #
622
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
623
+ #
624
+ def reset_all_filters_for_web_app_async(resource_group_name, site_name, custom_headers = nil)
625
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
626
+ fail ArgumentError, 'site_name is nil' if site_name.nil?
627
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
628
+ api_version = '2016-03-01'
629
+
630
+
631
+ request_headers = {}
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/sites/{siteName}/recommendations/reset'
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,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
643
+ query_params: {'api-version' => api_version},
644
+ headers: request_headers.merge(custom_headers || {}),
645
+ base_url: request_url
646
+ }
647
+ promise = @client.make_request_async(:post, 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 == 204
654
+ error_model = JSON.load(response_content)
655
+ fail MsRestAzure::AzureOperationError.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
+
660
+ result
661
+ end
662
+
663
+ promise.execute
664
+ end
665
+
666
+ #
667
+ # Get a recommendation rule for an app.
410
668
  #
411
- # Gets the detailed properties of the recommendation object for the specified
412
- # web site.
669
+ # Get a recommendation rule for an app.
413
670
  #
414
- # @param resource_group_name [String] Resource group name
415
- # @param site_name [String] Name of web app
416
- # @param name [String] Recommendation rule name
417
- # @param update_seen [Boolean] If true, the backend updates the last seen
418
- # timestamp of the recommendation object.
671
+ # @param resource_group_name [String] Name of the resource group to which the
672
+ # resource belongs.
673
+ # @param site_name [String] Name of the app.
674
+ # @param name [String] Name of the recommendation.
675
+ # @param update_seen [Boolean] Specify <code>true</code> to update the
676
+ # last-seen timestamp of the recommendation object.
419
677
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
420
678
  # will be added to the HTTP request.
421
679
  #
@@ -427,17 +685,16 @@ module Azure::ARM::Web
427
685
  end
428
686
 
429
687
  #
430
- # Gets the detailed properties of the recommendation object for the specified
431
- # web site.
688
+ # Get a recommendation rule for an app.
432
689
  #
433
- # Gets the detailed properties of the recommendation object for the specified
434
- # web site.
690
+ # Get a recommendation rule for an app.
435
691
  #
436
- # @param resource_group_name [String] Resource group name
437
- # @param site_name [String] Name of web app
438
- # @param name [String] Recommendation rule name
439
- # @param update_seen [Boolean] If true, the backend updates the last seen
440
- # timestamp of the recommendation object.
692
+ # @param resource_group_name [String] Name of the resource group to which the
693
+ # resource belongs.
694
+ # @param site_name [String] Name of the app.
695
+ # @param name [String] Name of the recommendation.
696
+ # @param update_seen [Boolean] Specify <code>true</code> to update the
697
+ # last-seen timestamp of the recommendation object.
441
698
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
442
699
  # will be added to the HTTP request.
443
700
  #
@@ -448,17 +705,16 @@ module Azure::ARM::Web
448
705
  end
449
706
 
450
707
  #
451
- # Gets the detailed properties of the recommendation object for the specified
452
- # web site.
708
+ # Get a recommendation rule for an app.
453
709
  #
454
- # Gets the detailed properties of the recommendation object for the specified
455
- # web site.
710
+ # Get a recommendation rule for an app.
456
711
  #
457
- # @param resource_group_name [String] Resource group name
458
- # @param site_name [String] Name of web app
459
- # @param name [String] Recommendation rule name
460
- # @param update_seen [Boolean] If true, the backend updates the last seen
461
- # timestamp of the recommendation object.
712
+ # @param resource_group_name [String] Name of the resource group to which the
713
+ # resource belongs.
714
+ # @param site_name [String] Name of the app.
715
+ # @param name [String] Name of the recommendation.
716
+ # @param update_seen [Boolean] Specify <code>true</code> to update the
717
+ # last-seen timestamp of the recommendation object.
462
718
  # @param [Hash{String => String}] A hash of custom headers that will be added
463
719
  # to the HTTP request.
464
720
  #