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.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_web.rb +149 -123
- data/lib/generated/azure_mgmt_web/app_service_certificate_orders.rb +556 -297
- data/lib/generated/azure_mgmt_web/app_service_environments.rb +1584 -1057
- data/lib/generated/azure_mgmt_web/app_service_plans.rb +890 -805
- data/lib/generated/azure_mgmt_web/certificates.rb +328 -215
- data/lib/generated/azure_mgmt_web/deleted_web_apps.rb +443 -0
- data/lib/generated/azure_mgmt_web/domains.rb +721 -243
- data/lib/generated/azure_mgmt_web/models/address.rb +12 -12
- data/lib/generated/azure_mgmt_web/models/address_response.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/api_definition_info.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/app_service_certificate.rb +5 -5
- data/lib/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/app_service_certificate_order.rb +36 -16
- data/lib/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/app_service_environment.rb +83 -64
- data/lib/generated/azure_mgmt_web/models/app_service_environment_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/app_service_plan.rb +69 -17
- data/lib/generated/azure_mgmt_web/models/app_service_plan_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/app_service_plan_restrictions.rb +20 -0
- data/lib/generated/azure_mgmt_web/models/application_logs_config.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/auto_heal_actions.rb +6 -8
- data/lib/generated/azure_mgmt_web/models/auto_heal_custom_action.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/auto_heal_rules.rb +5 -5
- data/lib/generated/azure_mgmt_web/models/auto_heal_triggers.rb +6 -9
- data/lib/generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb +2 -2
- data/lib/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/backup_item.rb +26 -11
- data/lib/generated/azure_mgmt_web/models/backup_item_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/backup_request.rb +9 -7
- data/lib/generated/azure_mgmt_web/models/backup_schedule.rb +18 -11
- data/lib/generated/azure_mgmt_web/models/capability.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/certificate.rb +79 -18
- data/lib/generated/azure_mgmt_web/models/certificate_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/certificate_details.rb +29 -70
- data/lib/generated/azure_mgmt_web/models/certificate_email.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/certificate_order_action.rb +8 -6
- data/lib/generated/azure_mgmt_web/models/certificate_order_action_type.rb +5 -0
- data/lib/generated/azure_mgmt_web/models/channels.rb +1 -0
- data/lib/generated/azure_mgmt_web/models/cloning_info.rb +24 -22
- data/lib/generated/azure_mgmt_web/models/conn_string_info.rb +67 -0
- data/lib/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/connection_string_dictionary.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/contact.rb +16 -15
- data/lib/generated/azure_mgmt_web/models/cors_settings.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/csm_move_resource_envelope.rb +7 -2
- data/lib/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/csm_site_recovery_entity.rb +6 -18
- data/lib/generated/azure_mgmt_web/models/csm_slot_entity.rb +6 -7
- data/lib/generated/azure_mgmt_web/models/csm_usage_quota.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/csr.rb +9 -9
- data/lib/generated/azure_mgmt_web/models/csr_collection.rb +93 -0
- data/lib/generated/azure_mgmt_web/models/custom_hostname_analysis_result.rb +28 -19
- data/lib/generated/azure_mgmt_web/models/database_backup_setting.rb +5 -6
- data/lib/generated/azure_mgmt_web/models/database_type.rb +17 -0
- data/lib/generated/azure_mgmt_web/models/deleted_site.rb +97 -61
- data/lib/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/deployment.rb +12 -12
- data/lib/generated/azure_mgmt_web/models/deployment_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/domain.rb +30 -20
- data/lib/generated/azure_mgmt_web/models/domain_availablility_check_result.rb +8 -6
- data/lib/generated/azure_mgmt_web/models/domain_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/domain_control_center_sso_request.rb +6 -3
- data/lib/generated/azure_mgmt_web/models/{classic_mobile_service.rb → domain_ownership_identifier.rb} +10 -10
- data/lib/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +93 -0
- data/lib/generated/azure_mgmt_web/models/domain_purchase_consent.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/enabled_config.rb +2 -2
- data/lib/generated/azure_mgmt_web/models/error_entity.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/experiments.rb +2 -3
- data/lib/generated/azure_mgmt_web/models/file_system_application_logs_config.rb +3 -2
- data/lib/generated/azure_mgmt_web/models/file_system_http_logs_config.rb +6 -2
- data/lib/generated/azure_mgmt_web/models/geo_region.rb +8 -5
- data/lib/generated/azure_mgmt_web/models/geo_region_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/global_csm_sku_description.rb +101 -0
- data/lib/generated/azure_mgmt_web/models/handler_mapping.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/host_name.rb +8 -8
- data/lib/generated/azure_mgmt_web/models/host_name_binding.rb +40 -7
- data/lib/generated/azure_mgmt_web/models/host_name_binding_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/host_name_ssl_state.rb +7 -7
- data/lib/generated/azure_mgmt_web/models/hosting_environment_diagnostics.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/hosting_environment_profile.rb +6 -8
- data/lib/generated/azure_mgmt_web/models/http_logs_config.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/hybrid_connection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/{metric_definition_collection.rb → hybrid_connection_collection.rb} +12 -12
- data/lib/generated/azure_mgmt_web/models/hybrid_connection_key.rb +5 -3
- data/lib/generated/azure_mgmt_web/models/hybrid_connection_limits.rb +107 -0
- data/lib/generated/azure_mgmt_web/models/{premier_add_on_request.rb → identifier.rb} +40 -40
- data/lib/generated/azure_mgmt_web/models/identifier_collection.rb +93 -0
- data/lib/generated/azure_mgmt_web/models/in_availability_reason_type.rb +16 -0
- data/lib/generated/azure_mgmt_web/models/ip_security_restriction.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/localizable_string.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/metric_availabilily.rb +3 -4
- data/lib/generated/azure_mgmt_web/models/metric_definition.rb +12 -7
- data/lib/generated/azure_mgmt_web/models/migrate_my_sql_request.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/name_identifier.rb +2 -2
- data/lib/generated/azure_mgmt_web/models/name_identifier_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/name_value_pair.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/network_access_control_entry.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/network_features.rb +12 -9
- data/lib/generated/azure_mgmt_web/models/operation.rb +8 -8
- data/lib/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/perf_mon_response.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/perf_mon_sample.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/perf_mon_set.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/premier_add_on.rb +171 -0
- data/lib/generated/azure_mgmt_web/models/premier_add_on_offer.rb +198 -0
- data/lib/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +93 -0
- data/lib/generated/azure_mgmt_web/models/publishing_profile_format.rb +17 -0
- data/lib/generated/azure_mgmt_web/models/push_settings.rb +5 -2
- data/lib/generated/azure_mgmt_web/models/ramp_up_rule.rb +16 -20
- data/lib/generated/azure_mgmt_web/models/recommendation.rb +20 -28
- data/lib/generated/azure_mgmt_web/models/recommendation_rule.rb +12 -22
- data/lib/generated/azure_mgmt_web/models/recover_response.rb +3 -2
- data/lib/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/relay_service_connection_entity.rb +2 -2
- data/lib/generated/azure_mgmt_web/models/renew_certificate_order_request.rb +5 -5
- data/lib/generated/azure_mgmt_web/models/requests_based_trigger.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/{arm_plan.rb → resource.rb} +32 -29
- data/lib/generated/azure_mgmt_web/models/resource_collection.rb +92 -0
- data/lib/generated/azure_mgmt_web/models/resource_metric.rb +9 -9
- data/lib/generated/azure_mgmt_web/models/resource_metric_availability.rb +56 -0
- data/lib/generated/azure_mgmt_web/models/resource_metric_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/resource_metric_definition.rb +178 -0
- data/lib/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +93 -0
- data/lib/generated/azure_mgmt_web/models/resource_metric_name.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/resource_metric_property.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/resource_metric_value.rb +8 -8
- data/lib/generated/azure_mgmt_web/models/resource_name_availability.rb +14 -8
- data/lib/generated/azure_mgmt_web/models/resource_name_availability_request.rb +5 -5
- data/lib/generated/azure_mgmt_web/models/resource_scope_type.rb +17 -0
- data/lib/generated/azure_mgmt_web/models/restore_request.rb +20 -17
- data/lib/generated/azure_mgmt_web/models/restore_response.rb +4 -3
- data/lib/generated/azure_mgmt_web/models/route_type.rb +17 -0
- data/lib/generated/azure_mgmt_web/models/scm_type.rb +27 -0
- data/lib/generated/azure_mgmt_web/models/site.rb +95 -60
- data/lib/generated/azure_mgmt_web/models/site_auth_settings.rb +57 -79
- data/lib/generated/azure_mgmt_web/models/site_cloneability.rb +8 -8
- data/lib/generated/azure_mgmt_web/models/site_cloneability_criterion.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/site_config.rb +99 -38
- data/lib/generated/azure_mgmt_web/models/site_configuration_snapshot_info.rb +106 -0
- data/lib/generated/azure_mgmt_web/models/site_instance.rb +4 -3
- data/lib/generated/azure_mgmt_web/models/site_limits.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/site_logs_config.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/site_machine_key.rb +5 -5
- data/lib/generated/azure_mgmt_web/models/site_php_error_log_flag.rb +124 -0
- data/lib/generated/azure_mgmt_web/models/site_seal.rb +44 -0
- data/lib/generated/azure_mgmt_web/models/site_seal_request.rb +54 -0
- data/lib/generated/azure_mgmt_web/models/site_source_control.rb +11 -7
- data/lib/generated/azure_mgmt_web/models/sku_capacity.rb +9 -8
- data/lib/generated/azure_mgmt_web/models/sku_description.rb +9 -9
- data/lib/generated/azure_mgmt_web/models/sku_info.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/sku_info_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/sku_infos.rb +63 -0
- data/lib/generated/azure_mgmt_web/models/sku_name.rb +20 -0
- data/lib/generated/azure_mgmt_web/models/slot_config_names_resource.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/slot_difference.rb +18 -13
- data/lib/generated/azure_mgmt_web/models/slot_difference_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/slot_swap_status.rb +67 -0
- data/lib/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/snapshot.rb +4 -3
- data/lib/generated/azure_mgmt_web/models/snapshot_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/source_control.rb +7 -7
- data/lib/generated/azure_mgmt_web/models/source_control_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/stamp_capacity.rb +12 -11
- data/lib/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/status_codes_based_trigger.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/storage_migration_options.rb +11 -7
- data/lib/generated/azure_mgmt_web/models/storage_migration_response.rb +4 -3
- data/lib/generated/azure_mgmt_web/models/string_dictionary.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/tld_legal_agreement.rb +8 -8
- data/lib/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/top_level_domain.rb +8 -7
- data/lib/generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb +4 -3
- data/lib/generated/azure_mgmt_web/models/top_level_domain_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/usage.rb +20 -11
- data/lib/generated/azure_mgmt_web/models/usage_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/user.rb +7 -7
- data/lib/generated/azure_mgmt_web/models/validate_request.rb +58 -12
- data/lib/generated/azure_mgmt_web/models/validate_response.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/validate_response_error.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/virtual_application.rb +7 -6
- data/lib/generated/azure_mgmt_web/models/virtual_directory.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/virtual_ipmapping.rb +5 -5
- data/lib/generated/azure_mgmt_web/models/virtual_network_profile.rb +5 -5
- data/lib/generated/azure_mgmt_web/models/vnet_gateway.rb +5 -5
- data/lib/generated/azure_mgmt_web/models/vnet_info.rb +12 -9
- data/lib/generated/azure_mgmt_web/models/vnet_route.rb +11 -11
- data/lib/generated/azure_mgmt_web/models/web_app_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/{site_instance_collection.rb → web_app_instance_collection.rb} +9 -9
- data/lib/generated/azure_mgmt_web/models/worker_pool.rb +9 -8
- data/lib/generated/azure_mgmt_web/models/worker_pool_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/recommendations.rb +388 -132
- data/lib/generated/azure_mgmt_web/top_level_domains.rb +62 -48
- data/lib/generated/azure_mgmt_web/version.rb +1 -1
- data/lib/generated/azure_mgmt_web/web_apps.rb +8787 -6295
- data/lib/generated/azure_mgmt_web/web_site_management_client.rb +459 -288
- metadata +37 -11
- data/lib/generated/azure_mgmt_web/models/domain_registration_input.rb +0 -292
- 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
|
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]
|
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
|
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
|
-
#
|
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
|
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
|
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
|
15
|
+
# @return [String] Resource id of the Virtual Network.
|
16
16
|
attr_accessor :id
|
17
17
|
|
18
|
-
# @return [String] Name of the
|
18
|
+
# @return [String] Name of the Virtual Network (read-only).
|
19
19
|
attr_accessor :name
|
20
20
|
|
21
|
-
# @return [String] Resource type of the
|
21
|
+
# @return [String] Resource type of the Virtual Network (read-only).
|
22
22
|
attr_accessor :type
|
23
23
|
|
24
|
-
# @return [String] Subnet within the
|
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
|
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
|
16
|
+
# @return [String] The Virtual Network name.
|
17
17
|
attr_accessor :vnet_name
|
18
18
|
|
19
|
-
# @return [String] The URI where the
|
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:
|
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
|
-
#
|
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
|
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
|
26
|
+
# @return [Array<VnetRoute>] The routes that this Virtual Network
|
28
27
|
# connection uses.
|
29
28
|
attr_accessor :routes
|
30
29
|
|
31
|
-
# @return [Boolean]
|
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]
|
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:
|
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
|
-
#
|
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 [
|
29
|
-
# DEFAULT - By default, every
|
30
|
-
#
|
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
|
33
|
-
#
|
34
|
-
# These values will be used for syncing
|
35
|
-
#
|
36
|
-
#
|
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:
|
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
|
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:
|
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
|
9
|
+
# Collection of app instances.
|
10
10
|
#
|
11
|
-
class
|
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 [
|
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
|
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: '
|
60
|
+
serialized_name: 'WebAppInstanceCollection',
|
61
61
|
type: {
|
62
62
|
name: 'Composite',
|
63
|
-
class_name: '
|
63
|
+
class_name: 'WebAppInstanceCollection',
|
64
64
|
model_properties: {
|
65
65
|
value: {
|
66
|
-
required:
|
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
|
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
|
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
|
19
|
-
#
|
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:
|
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:
|
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
|
-
#
|
26
|
+
# List all recommendations for a subscription.
|
27
27
|
#
|
28
|
-
#
|
28
|
+
# List all recommendations for a subscription.
|
29
29
|
#
|
30
|
-
# @param featured [Boolean]
|
31
|
-
#
|
32
|
-
# recommendations
|
33
|
-
# @param filter [String]
|
34
|
-
#
|
35
|
-
#
|
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
|
42
|
-
response =
|
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
|
-
#
|
48
|
+
# List all recommendations for a subscription.
|
48
49
|
#
|
49
|
-
#
|
50
|
+
# List all recommendations for a subscription.
|
50
51
|
#
|
51
|
-
# @param featured [Boolean]
|
52
|
-
#
|
53
|
-
# recommendations
|
54
|
-
# @param filter [String]
|
55
|
-
#
|
56
|
-
#
|
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
|
63
|
-
|
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
|
-
#
|
69
|
+
# List all recommendations for a subscription.
|
68
70
|
#
|
69
|
-
#
|
71
|
+
# List all recommendations for a subscription.
|
70
72
|
#
|
71
|
-
# @param featured [Boolean]
|
72
|
-
#
|
73
|
-
# recommendations
|
74
|
-
# @param filter [String]
|
75
|
-
#
|
76
|
-
#
|
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
|
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,'
|
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
|
-
#
|
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
|
-
#
|
231
|
+
# Get past recommendations for an app, optionally specified by the time range.
|
150
232
|
#
|
151
|
-
# @param resource_group_name [String]
|
152
|
-
#
|
153
|
-
# @param
|
154
|
-
#
|
155
|
-
# '
|
156
|
-
#
|
157
|
-
#
|
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,
|
165
|
-
response = list_history_for_web_app_async(resource_group_name, site_name,
|
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
|
-
#
|
251
|
+
# Get past recommendations for an app, optionally specified by the time range.
|
171
252
|
#
|
172
|
-
#
|
253
|
+
# Get past recommendations for an app, optionally specified by the time range.
|
173
254
|
#
|
174
|
-
# @param resource_group_name [String]
|
175
|
-
#
|
176
|
-
# @param
|
177
|
-
#
|
178
|
-
# '
|
179
|
-
#
|
180
|
-
#
|
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,
|
188
|
-
list_history_for_web_app_async(resource_group_name, site_name,
|
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
|
-
#
|
272
|
+
# Get past recommendations for an app, optionally specified by the time range.
|
193
273
|
#
|
194
|
-
#
|
274
|
+
# Get past recommendations for an app, optionally specified by the time range.
|
195
275
|
#
|
196
|
-
# @param resource_group_name [String]
|
197
|
-
#
|
198
|
-
# @param
|
199
|
-
#
|
200
|
-
# '
|
201
|
-
#
|
202
|
-
#
|
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,
|
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: {'
|
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
|
-
#
|
356
|
+
# Get all recommendations for an app.
|
277
357
|
#
|
278
|
-
#
|
358
|
+
# Get all recommendations for an app.
|
279
359
|
#
|
280
|
-
# @param resource_group_name [String]
|
281
|
-
#
|
282
|
-
# @param
|
283
|
-
#
|
284
|
-
# recommendations
|
285
|
-
#
|
286
|
-
# @param
|
287
|
-
#
|
288
|
-
#
|
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,
|
295
|
-
response = list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured,
|
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
|
-
#
|
380
|
+
# Get all recommendations for an app.
|
301
381
|
#
|
302
|
-
#
|
382
|
+
# Get all recommendations for an app.
|
303
383
|
#
|
304
|
-
# @param resource_group_name [String]
|
305
|
-
#
|
306
|
-
# @param
|
307
|
-
#
|
308
|
-
# recommendations
|
309
|
-
#
|
310
|
-
# @param
|
311
|
-
#
|
312
|
-
#
|
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,
|
319
|
-
list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured,
|
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
|
-
#
|
403
|
+
# Get all recommendations for an app.
|
324
404
|
#
|
325
|
-
#
|
405
|
+
# Get all recommendations for an app.
|
326
406
|
#
|
327
|
-
# @param resource_group_name [String]
|
328
|
-
#
|
329
|
-
# @param
|
330
|
-
#
|
331
|
-
# recommendations
|
332
|
-
#
|
333
|
-
# @param
|
334
|
-
#
|
335
|
-
#
|
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,
|
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,'
|
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
|
-
#
|
409
|
-
#
|
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
|
-
#
|
412
|
-
# web site.
|
669
|
+
# Get a recommendation rule for an app.
|
413
670
|
#
|
414
|
-
# @param resource_group_name [String]
|
415
|
-
#
|
416
|
-
# @param
|
417
|
-
# @param
|
418
|
-
#
|
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
|
-
#
|
431
|
-
# web site.
|
688
|
+
# Get a recommendation rule for an app.
|
432
689
|
#
|
433
|
-
#
|
434
|
-
# web site.
|
690
|
+
# Get a recommendation rule for an app.
|
435
691
|
#
|
436
|
-
# @param resource_group_name [String]
|
437
|
-
#
|
438
|
-
# @param
|
439
|
-
# @param
|
440
|
-
#
|
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
|
-
#
|
452
|
-
# web site.
|
708
|
+
# Get a recommendation rule for an app.
|
453
709
|
#
|
454
|
-
#
|
455
|
-
# web site.
|
710
|
+
# Get a recommendation rule for an app.
|
456
711
|
#
|
457
|
-
# @param resource_group_name [String]
|
458
|
-
#
|
459
|
-
# @param
|
460
|
-
# @param
|
461
|
-
#
|
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
|
#
|