azure_mgmt_web 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/azure_mgmt_web.gemspec +2 -2
- data/lib/azure_mgmt_web.rb +27 -4
- data/lib/azure_mgmt_web/certificate_orders.rb +1596 -0
- data/lib/azure_mgmt_web/certificates.rb +383 -55
- data/lib/azure_mgmt_web/classic_mobile_services.rb +107 -16
- data/lib/azure_mgmt_web/domains.rb +227 -33
- data/lib/azure_mgmt_web/global.rb +446 -78
- data/lib/azure_mgmt_web/global_certificate_order.rb +206 -0
- data/lib/azure_mgmt_web/global_domain_registration.rb +174 -29
- data/lib/azure_mgmt_web/global_resource_groups.rb +33 -7
- data/lib/azure_mgmt_web/hosting_environments.rb +1500 -213
- data/lib/azure_mgmt_web/managed_hosting_environments.rb +346 -55
- data/lib/azure_mgmt_web/models/access_control_entry_action.rb +1 -1
- data/lib/azure_mgmt_web/models/address.rb +1 -1
- data/lib/azure_mgmt_web/models/address_response.rb +1 -1
- data/lib/azure_mgmt_web/models/api_definition_info.rb +1 -1
- data/lib/azure_mgmt_web/models/application_logs_config.rb +1 -1
- data/lib/azure_mgmt_web/models/arm_plan.rb +1 -1
- data/lib/azure_mgmt_web/models/auto_heal_action_type.rb +1 -1
- data/lib/azure_mgmt_web/models/auto_heal_actions.rb +1 -1
- data/lib/azure_mgmt_web/models/auto_heal_custom_action.rb +1 -1
- data/lib/azure_mgmt_web/models/auto_heal_rules.rb +1 -1
- data/lib/azure_mgmt_web/models/auto_heal_triggers.rb +1 -1
- data/lib/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb +1 -1
- data/lib/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb +1 -1
- data/lib/azure_mgmt_web/models/azure_resource_type.rb +1 -1
- data/lib/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb +1 -1
- data/lib/azure_mgmt_web/models/backup_item.rb +7 -1
- data/lib/azure_mgmt_web/models/backup_item_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/backup_item_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/backup_item_status.rb +1 -1
- data/lib/azure_mgmt_web/models/backup_request.rb +7 -1
- data/lib/azure_mgmt_web/models/backup_request_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/backup_restore_operation_type.rb +1 -1
- data/lib/azure_mgmt_web/models/backup_schedule.rb +1 -1
- data/lib/azure_mgmt_web/models/built_in_authentication_provider.rb +1 -1
- data/lib/azure_mgmt_web/models/certificate.rb +7 -1
- data/lib/azure_mgmt_web/models/certificate_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/certificate_details.rb +98 -0
- data/lib/azure_mgmt_web/models/certificate_details_properties.rb +133 -0
- data/lib/azure_mgmt_web/models/certificate_email.rb +98 -0
- data/lib/azure_mgmt_web/models/certificate_email_properties.rb +67 -0
- data/lib/azure_mgmt_web/models/certificate_order.rb +98 -0
- data/lib/azure_mgmt_web/models/certificate_order_action.rb +98 -0
- data/lib/azure_mgmt_web/models/certificate_order_action_properties.rb +74 -0
- data/lib/azure_mgmt_web/models/certificate_order_action_type.rb +23 -0
- data/lib/azure_mgmt_web/models/certificate_order_certificate.rb +99 -0
- data/lib/azure_mgmt_web/models/certificate_order_certificate_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/certificate_order_certificate_properties.rb +82 -0
- data/lib/azure_mgmt_web/models/certificate_order_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/certificate_order_properties.rb +254 -0
- data/lib/azure_mgmt_web/models/certificate_order_status.rb +24 -0
- data/lib/azure_mgmt_web/models/certificate_product_type.rb +16 -0
- data/lib/azure_mgmt_web/models/certificate_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/channels.rb +1 -1
- data/lib/azure_mgmt_web/models/classic_mobile_service.rb +7 -1
- data/lib/azure_mgmt_web/models/classic_mobile_service_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/classic_mobile_service_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/clone_ability_result.rb +1 -1
- data/lib/azure_mgmt_web/models/cloning_info.rb +1 -1
- data/lib/azure_mgmt_web/models/compute_mode_options.rb +2 -1
- data/lib/azure_mgmt_web/models/conn_string_info.rb +1 -1
- data/lib/azure_mgmt_web/models/conn_string_value_type_pair.rb +1 -1
- data/lib/azure_mgmt_web/models/connection_string_dictionary.rb +7 -1
- data/lib/azure_mgmt_web/models/contact.rb +1 -1
- data/lib/azure_mgmt_web/models/cors_settings.rb +1 -1
- data/lib/azure_mgmt_web/models/csm_move_resource_envelope.rb +1 -1
- data/lib/azure_mgmt_web/models/csm_publishing_profile_options.rb +1 -1
- data/lib/azure_mgmt_web/models/csm_site_recovery_entity.rb +11 -1
- data/lib/azure_mgmt_web/models/csm_slot_entity.rb +1 -1
- data/lib/azure_mgmt_web/models/csm_usage_quota.rb +1 -1
- data/lib/azure_mgmt_web/models/csm_usage_quota_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/csr.rb +7 -1
- data/lib/azure_mgmt_web/models/csr_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/custom_host_name_dns_record_type.rb +1 -1
- data/lib/azure_mgmt_web/models/database_backup_setting.rb +1 -1
- data/lib/azure_mgmt_web/models/database_server_type.rb +1 -1
- data/lib/azure_mgmt_web/models/deleted_site.rb +7 -1
- data/lib/azure_mgmt_web/models/deleted_site_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/deleted_site_properties.rb +40 -1
- data/lib/azure_mgmt_web/models/deployment.rb +7 -1
- data/lib/azure_mgmt_web/models/deployment_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/deployment_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/domain.rb +7 -1
- data/lib/azure_mgmt_web/models/domain_availablility_check_result.rb +1 -1
- data/lib/azure_mgmt_web/models/domain_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/domain_control_center_sso_request.rb +1 -1
- data/lib/azure_mgmt_web/models/domain_properties.rb +15 -5
- data/lib/azure_mgmt_web/models/domain_purchase_consent.rb +1 -1
- data/lib/azure_mgmt_web/models/domain_recommendation_search_parameters.rb +1 -1
- data/lib/azure_mgmt_web/models/domain_registration_input.rb +7 -1
- data/lib/azure_mgmt_web/models/domain_registration_input_properties.rb +15 -5
- data/lib/azure_mgmt_web/models/domain_status.rb +1 -1
- data/lib/azure_mgmt_web/models/domain_type.rb +1 -1
- data/lib/azure_mgmt_web/models/enabled_config.rb +1 -1
- data/lib/azure_mgmt_web/models/experiments.rb +1 -1
- data/lib/azure_mgmt_web/models/file_system_application_logs_config.rb +1 -1
- data/lib/azure_mgmt_web/models/file_system_http_logs_config.rb +1 -1
- data/lib/azure_mgmt_web/models/frequency_unit.rb +1 -1
- data/lib/azure_mgmt_web/models/geo_region.rb +7 -1
- data/lib/azure_mgmt_web/models/geo_region_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/geo_region_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/handler_mapping.rb +1 -1
- data/lib/azure_mgmt_web/models/host_name.rb +1 -1
- data/lib/azure_mgmt_web/models/host_name_binding.rb +7 -1
- data/lib/azure_mgmt_web/models/host_name_binding_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/host_name_binding_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/host_name_ssl_state.rb +1 -1
- data/lib/azure_mgmt_web/models/host_name_type.rb +1 -1
- data/lib/azure_mgmt_web/models/hosting_environment.rb +7 -1
- data/lib/azure_mgmt_web/models/hosting_environment_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/hosting_environment_diagnostics.rb +1 -1
- data/lib/azure_mgmt_web/models/hosting_environment_profile.rb +1 -1
- data/lib/azure_mgmt_web/models/hosting_environment_properties.rb +63 -17
- data/lib/azure_mgmt_web/models/hosting_environment_status.rb +1 -1
- data/lib/azure_mgmt_web/models/http_logs_config.rb +1 -1
- data/lib/azure_mgmt_web/models/internal_load_balancing_mode.rb +1 -1
- data/lib/azure_mgmt_web/models/ip_security_restriction.rb +66 -0
- data/lib/azure_mgmt_web/models/key_value_pair_string_string.rb +1 -1
- data/lib/azure_mgmt_web/models/key_vault_secret_status.rb +24 -0
- data/lib/azure_mgmt_web/models/localizable_string.rb +1 -1
- data/lib/azure_mgmt_web/models/log_level.rb +1 -1
- data/lib/azure_mgmt_web/models/managed_hosting_environment.rb +7 -1
- data/lib/azure_mgmt_web/models/managed_hosting_environment_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/managed_hosting_environment_status.rb +1 -1
- data/lib/azure_mgmt_web/models/managed_pipeline_mode.rb +1 -1
- data/lib/azure_mgmt_web/models/metric_availabilily.rb +1 -1
- data/lib/azure_mgmt_web/models/metric_definition.rb +7 -1
- data/lib/azure_mgmt_web/models/metric_definition_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/metric_definition_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/name_identifier.rb +1 -1
- data/lib/azure_mgmt_web/models/name_identifier_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/name_value_pair.rb +1 -1
- data/lib/azure_mgmt_web/models/network_access_control_entry.rb +1 -1
- data/lib/azure_mgmt_web/models/network_features.rb +7 -1
- data/lib/azure_mgmt_web/models/network_features_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/notification_level.rb +1 -1
- data/lib/azure_mgmt_web/models/premier_add_on_request.rb +1 -1
- data/lib/azure_mgmt_web/models/provisioning_state.rb +1 -1
- data/lib/azure_mgmt_web/models/ramp_up_rule.rb +1 -1
- data/lib/azure_mgmt_web/models/recommendation.rb +36 -1
- data/lib/azure_mgmt_web/models/recommendation_rule.rb +12 -1
- data/lib/azure_mgmt_web/models/reissue_certificate_order_request.rb +98 -0
- data/lib/azure_mgmt_web/models/reissue_certificate_order_request_properties.rb +68 -0
- data/lib/azure_mgmt_web/models/relay_service_connection_entity.rb +7 -1
- data/lib/azure_mgmt_web/models/relay_service_connection_entity_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/renew_certificate_order_request.rb +98 -0
- data/lib/azure_mgmt_web/models/renew_certificate_order_request_properties.rb +57 -0
- data/lib/azure_mgmt_web/models/requests_based_trigger.rb +1 -1
- data/lib/azure_mgmt_web/models/resource_metric.rb +1 -1
- data/lib/azure_mgmt_web/models/resource_metric_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/resource_metric_name.rb +1 -1
- data/lib/azure_mgmt_web/models/resource_metric_value.rb +1 -1
- data/lib/azure_mgmt_web/models/resource_name_availability.rb +1 -1
- data/lib/azure_mgmt_web/models/resource_name_availability_request.rb +1 -1
- data/lib/azure_mgmt_web/models/restore_request.rb +7 -1
- data/lib/azure_mgmt_web/models/restore_request_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/restore_response.rb +7 -1
- data/lib/azure_mgmt_web/models/restore_response_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/routing_rule.rb +1 -1
- data/lib/azure_mgmt_web/models/server_farm_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/server_farm_with_rich_sku.rb +7 -1
- data/lib/azure_mgmt_web/models/server_farm_with_rich_sku_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/site.rb +7 -1
- data/lib/azure_mgmt_web/models/site_auth_settings.rb +13 -1
- data/lib/azure_mgmt_web/models/site_availability_state.rb +1 -1
- data/lib/azure_mgmt_web/models/site_cloneability.rb +1 -1
- data/lib/azure_mgmt_web/models/site_cloneability_criterion.rb +1 -1
- data/lib/azure_mgmt_web/models/site_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/site_config.rb +7 -1
- data/lib/azure_mgmt_web/models/site_config_properties.rb +51 -21
- data/lib/azure_mgmt_web/models/site_instance.rb +7 -1
- data/lib/azure_mgmt_web/models/site_instance_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/site_instance_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/site_limits.rb +1 -1
- data/lib/azure_mgmt_web/models/site_load_balancing.rb +1 -1
- data/lib/azure_mgmt_web/models/site_logs_config.rb +7 -1
- data/lib/azure_mgmt_web/models/site_logs_config_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/site_properties.rb +40 -1
- data/lib/azure_mgmt_web/models/site_source_control.rb +7 -1
- data/lib/azure_mgmt_web/models/site_source_control_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/sku_capacity.rb +1 -1
- data/lib/azure_mgmt_web/models/sku_description.rb +1 -1
- data/lib/azure_mgmt_web/models/sku_info.rb +1 -1
- data/lib/azure_mgmt_web/models/sku_info_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/slot_config_names.rb +1 -1
- data/lib/azure_mgmt_web/models/slot_config_names_resource.rb +7 -1
- data/lib/azure_mgmt_web/models/slot_config_names_resource_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/slot_difference.rb +7 -1
- data/lib/azure_mgmt_web/models/slot_difference_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/slot_difference_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/slow_requests_based_trigger.rb +1 -1
- data/lib/azure_mgmt_web/models/source_control.rb +7 -1
- data/lib/azure_mgmt_web/models/source_control_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/source_control_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/ssl_state.rb +1 -1
- data/lib/azure_mgmt_web/models/stamp_capacity.rb +2 -2
- data/lib/azure_mgmt_web/models/stamp_capacity_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/status_codes_based_trigger.rb +1 -1
- data/lib/azure_mgmt_web/models/status_options.rb +1 -1
- data/lib/azure_mgmt_web/models/string_dictionary.rb +7 -1
- data/lib/azure_mgmt_web/models/tld_legal_agreement.rb +1 -1
- data/lib/azure_mgmt_web/models/tld_legal_agreement_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/top_level_domain.rb +7 -1
- data/lib/azure_mgmt_web/models/top_level_domain_agreement_option.rb +1 -1
- data/lib/azure_mgmt_web/models/top_level_domain_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/top_level_domain_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/unauthenticated_client_action.rb +1 -1
- data/lib/azure_mgmt_web/models/usage.rb +7 -1
- data/lib/azure_mgmt_web/models/usage_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/usage_properties.rb +2 -2
- data/lib/azure_mgmt_web/models/usage_state.rb +1 -1
- data/lib/azure_mgmt_web/models/user.rb +7 -1
- data/lib/azure_mgmt_web/models/user_properties.rb +11 -1
- data/lib/azure_mgmt_web/models/virtual_application.rb +1 -1
- data/lib/azure_mgmt_web/models/virtual_directory.rb +1 -1
- data/lib/azure_mgmt_web/models/virtual_ipmapping.rb +1 -1
- data/lib/azure_mgmt_web/models/virtual_network_profile.rb +1 -1
- data/lib/azure_mgmt_web/models/vnet_gateway.rb +7 -1
- data/lib/azure_mgmt_web/models/vnet_gateway_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/vnet_info.rb +7 -1
- data/lib/azure_mgmt_web/models/vnet_info_properties.rb +20 -1
- data/lib/azure_mgmt_web/models/vnet_route.rb +7 -1
- data/lib/azure_mgmt_web/models/vnet_route_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/worker_pool.rb +7 -1
- data/lib/azure_mgmt_web/models/worker_pool_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/worker_pool_properties.rb +2 -2
- data/lib/azure_mgmt_web/models/worker_size_options.rb +1 -1
- data/lib/azure_mgmt_web/module_definition.rb +1 -1
- data/lib/azure_mgmt_web/provider.rb +171 -28
- data/lib/azure_mgmt_web/recommendations.rb +183 -23
- data/lib/azure_mgmt_web/server_farms.rb +817 -109
- data/lib/azure_mgmt_web/sites.rb +7132 -1264
- data/lib/azure_mgmt_web/top_level_domains.rb +106 -17
- data/lib/azure_mgmt_web/usage_operations.rb +41 -6
- data/lib/azure_mgmt_web/version.rb +2 -2
- data/lib/azure_mgmt_web/web_site_management_client.rb +9 -1
- metadata +54 -24
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -38,13 +38,49 @@ module Azure::ARM::Web
|
|
38
38
|
# @param filter [String] Return only channels specified in the filter. Filter
|
39
39
|
# is specified by using OData syntax. Example: $filter=channels eq 'Api' or
|
40
40
|
# channel eq 'Notification'
|
41
|
-
# @param [Hash{String => String}]
|
42
|
-
#
|
41
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
42
|
+
# will be added to the HTTP request.
|
43
43
|
#
|
44
|
-
# @return [
|
45
|
-
# response.
|
44
|
+
# @return [Array] operation results.
|
46
45
|
#
|
47
46
|
def get_recommendation_by_subscription(featured = nil, filter = nil, custom_headers = nil)
|
47
|
+
response = get_recommendation_by_subscription_async(featured, filter, custom_headers).value!
|
48
|
+
response.body unless response.nil?
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# Gets a list of recommendations associated with the specified subscription.
|
53
|
+
#
|
54
|
+
# @param featured [Boolean] If set, this API returns only the most critical
|
55
|
+
# recommendation among the others. Otherwise this API returns all
|
56
|
+
# recommendations available
|
57
|
+
# @param filter [String] Return only channels specified in the filter. Filter
|
58
|
+
# is specified by using OData syntax. Example: $filter=channels eq 'Api' or
|
59
|
+
# channel eq 'Notification'
|
60
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
61
|
+
# will be added to the HTTP request.
|
62
|
+
#
|
63
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
64
|
+
#
|
65
|
+
def get_recommendation_by_subscription_with_http_info(featured = nil, filter = nil, custom_headers = nil)
|
66
|
+
get_recommendation_by_subscription_async(featured, filter, custom_headers).value!
|
67
|
+
end
|
68
|
+
|
69
|
+
#
|
70
|
+
# Gets a list of recommendations associated with the specified subscription.
|
71
|
+
#
|
72
|
+
# @param featured [Boolean] If set, this API returns only the most critical
|
73
|
+
# recommendation among the others. Otherwise this API returns all
|
74
|
+
# recommendations available
|
75
|
+
# @param filter [String] Return only channels specified in the filter. Filter
|
76
|
+
# is specified by using OData syntax. Example: $filter=channels eq 'Api' or
|
77
|
+
# channel eq 'Notification'
|
78
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
79
|
+
# to the HTTP request.
|
80
|
+
#
|
81
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
82
|
+
#
|
83
|
+
def get_recommendation_by_subscription_async(featured = nil, filter = nil, custom_headers = nil)
|
48
84
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
49
85
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
50
86
|
request_headers = {}
|
@@ -59,7 +95,10 @@ module Azure::ARM::Web
|
|
59
95
|
query_params: {'featured' => featured,'$filter' => filter,'api-version' => @client.api_version},
|
60
96
|
headers: request_headers.merge(custom_headers || {})
|
61
97
|
}
|
62
|
-
|
98
|
+
|
99
|
+
request_url = @base_url || @client.base_url
|
100
|
+
|
101
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
63
102
|
promise = request.run_promise do |req|
|
64
103
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
65
104
|
end
|
@@ -108,13 +147,45 @@ module Azure::ARM::Web
|
|
108
147
|
# @param resource_group_name [String] Resource group name
|
109
148
|
# @param site_name [String] Site name
|
110
149
|
# @param name [String] Recommendation rule name
|
111
|
-
# @param [Hash{String => String}]
|
112
|
-
#
|
150
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
151
|
+
# will be added to the HTTP request.
|
113
152
|
#
|
114
|
-
# @return [
|
115
|
-
# response.
|
153
|
+
# @return [RecommendationRule] operation results.
|
116
154
|
#
|
117
155
|
def get_rule_details_by_site_name(resource_group_name, site_name, name, custom_headers = nil)
|
156
|
+
response = get_rule_details_by_site_name_async(resource_group_name, site_name, name, custom_headers).value!
|
157
|
+
response.body unless response.nil?
|
158
|
+
end
|
159
|
+
|
160
|
+
#
|
161
|
+
# Gets the detailed properties of the recommendation object for the specified
|
162
|
+
# web site.
|
163
|
+
#
|
164
|
+
# @param resource_group_name [String] Resource group name
|
165
|
+
# @param site_name [String] Site name
|
166
|
+
# @param name [String] Recommendation rule name
|
167
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
168
|
+
# will be added to the HTTP request.
|
169
|
+
#
|
170
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
171
|
+
#
|
172
|
+
def get_rule_details_by_site_name_with_http_info(resource_group_name, site_name, name, custom_headers = nil)
|
173
|
+
get_rule_details_by_site_name_async(resource_group_name, site_name, name, custom_headers).value!
|
174
|
+
end
|
175
|
+
|
176
|
+
#
|
177
|
+
# Gets the detailed properties of the recommendation object for the specified
|
178
|
+
# web site.
|
179
|
+
#
|
180
|
+
# @param resource_group_name [String] Resource group name
|
181
|
+
# @param site_name [String] Site name
|
182
|
+
# @param name [String] Recommendation rule name
|
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 get_rule_details_by_site_name_async(resource_group_name, site_name, name, custom_headers = nil)
|
118
189
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
119
190
|
fail ArgumentError, 'site_name is nil' if site_name.nil?
|
120
191
|
fail ArgumentError, 'name is nil' if name.nil?
|
@@ -132,7 +203,10 @@ module Azure::ARM::Web
|
|
132
203
|
query_params: {'api-version' => @client.api_version},
|
133
204
|
headers: request_headers.merge(custom_headers || {})
|
134
205
|
}
|
135
|
-
|
206
|
+
|
207
|
+
request_url = @base_url || @client.base_url
|
208
|
+
|
209
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
136
210
|
promise = request.run_promise do |req|
|
137
211
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
138
212
|
end
|
@@ -175,13 +249,53 @@ module Azure::ARM::Web
|
|
175
249
|
# @param featured [Boolean] If set, this API returns only the most critical
|
176
250
|
# recommendation among the others. Otherwise this API returns all
|
177
251
|
# recommendations available
|
178
|
-
# @param [
|
179
|
-
#
|
252
|
+
# @param site_sku [String] The name of site SKU.
|
253
|
+
# @param num_slots [Integer] The number of site slots associated to the site
|
254
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
255
|
+
# will be added to the HTTP request.
|
256
|
+
#
|
257
|
+
# @return [Array] operation results.
|
258
|
+
#
|
259
|
+
def get_recommended_rules_for_site(resource_group_name, site_name, featured = nil, site_sku = nil, num_slots = nil, custom_headers = nil)
|
260
|
+
response = get_recommended_rules_for_site_async(resource_group_name, site_name, featured, site_sku, num_slots, custom_headers).value!
|
261
|
+
response.body unless response.nil?
|
262
|
+
end
|
263
|
+
|
264
|
+
#
|
265
|
+
# Gets a list of recommendations associated with the specified web site.
|
266
|
+
#
|
267
|
+
# @param resource_group_name [String] Resource group name
|
268
|
+
# @param site_name [String] Site name
|
269
|
+
# @param featured [Boolean] If set, this API returns only the most critical
|
270
|
+
# recommendation among the others. Otherwise this API returns all
|
271
|
+
# recommendations available
|
272
|
+
# @param site_sku [String] The name of site SKU.
|
273
|
+
# @param num_slots [Integer] The number of site slots associated to the site
|
274
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
275
|
+
# will be added to the HTTP request.
|
276
|
+
#
|
277
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
278
|
+
#
|
279
|
+
def get_recommended_rules_for_site_with_http_info(resource_group_name, site_name, featured = nil, site_sku = nil, num_slots = nil, custom_headers = nil)
|
280
|
+
get_recommended_rules_for_site_async(resource_group_name, site_name, featured, site_sku, num_slots, custom_headers).value!
|
281
|
+
end
|
282
|
+
|
283
|
+
#
|
284
|
+
# Gets a list of recommendations associated with the specified web site.
|
285
|
+
#
|
286
|
+
# @param resource_group_name [String] Resource group name
|
287
|
+
# @param site_name [String] Site name
|
288
|
+
# @param featured [Boolean] If set, this API returns only the most critical
|
289
|
+
# recommendation among the others. Otherwise this API returns all
|
290
|
+
# recommendations available
|
291
|
+
# @param site_sku [String] The name of site SKU.
|
292
|
+
# @param num_slots [Integer] The number of site slots associated to the site
|
293
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
294
|
+
# to the HTTP request.
|
180
295
|
#
|
181
|
-
# @return [Concurrent::Promise] Promise object which
|
182
|
-
# response.
|
296
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
183
297
|
#
|
184
|
-
def
|
298
|
+
def get_recommended_rules_for_site_async(resource_group_name, site_name, featured = nil, site_sku = nil, num_slots = nil, custom_headers = nil)
|
185
299
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
186
300
|
fail ArgumentError, 'site_name is nil' if site_name.nil?
|
187
301
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -195,10 +309,13 @@ module Azure::ARM::Web
|
|
195
309
|
options = {
|
196
310
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
197
311
|
path_params: {'resourceGroupName' => resource_group_name,'siteName' => site_name,'subscriptionId' => @client.subscription_id},
|
198
|
-
query_params: {'featured' => featured,'api-version' => @client.api_version},
|
312
|
+
query_params: {'featured' => featured,'siteSku' => site_sku,'numSlots' => num_slots,'api-version' => @client.api_version},
|
199
313
|
headers: request_headers.merge(custom_headers || {})
|
200
314
|
}
|
201
|
-
|
315
|
+
|
316
|
+
request_url = @base_url || @client.base_url
|
317
|
+
|
318
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
202
319
|
promise = request.run_promise do |req|
|
203
320
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
204
321
|
end
|
@@ -251,13 +368,53 @@ module Azure::ARM::Web
|
|
251
368
|
# @param end_time [String] The end time of a time range to query, e.g.
|
252
369
|
# $filter=startTime eq '2015-01-01T00:00:00Z' and endTime eq
|
253
370
|
# '2015-01-02T00:00:00Z'
|
254
|
-
# @param [Hash{String => String}]
|
255
|
-
#
|
371
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
372
|
+
# will be added to the HTTP request.
|
256
373
|
#
|
257
|
-
# @return [
|
258
|
-
# response.
|
374
|
+
# @return [Array] operation results.
|
259
375
|
#
|
260
376
|
def get_recommendation_history_for_site(resource_group_name, site_name, start_time = nil, end_time = nil, custom_headers = nil)
|
377
|
+
response = get_recommendation_history_for_site_async(resource_group_name, site_name, start_time, end_time, custom_headers).value!
|
378
|
+
response.body unless response.nil?
|
379
|
+
end
|
380
|
+
|
381
|
+
#
|
382
|
+
# Gets the list of past recommendations optionally specified by the time range.
|
383
|
+
#
|
384
|
+
# @param resource_group_name [String] Resource group name
|
385
|
+
# @param site_name [String] Site name
|
386
|
+
# @param start_time [String] The start time of a time range to query, e.g.
|
387
|
+
# $filter=startTime eq '2015-01-01T00:00:00Z' and endTime eq
|
388
|
+
# '2015-01-02T00:00:00Z'
|
389
|
+
# @param end_time [String] The end time of a time range to query, e.g.
|
390
|
+
# $filter=startTime eq '2015-01-01T00:00:00Z' and endTime eq
|
391
|
+
# '2015-01-02T00:00:00Z'
|
392
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
393
|
+
# will be added to the HTTP request.
|
394
|
+
#
|
395
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
396
|
+
#
|
397
|
+
def get_recommendation_history_for_site_with_http_info(resource_group_name, site_name, start_time = nil, end_time = nil, custom_headers = nil)
|
398
|
+
get_recommendation_history_for_site_async(resource_group_name, site_name, start_time, end_time, custom_headers).value!
|
399
|
+
end
|
400
|
+
|
401
|
+
#
|
402
|
+
# Gets the list of past recommendations optionally specified by the time range.
|
403
|
+
#
|
404
|
+
# @param resource_group_name [String] Resource group name
|
405
|
+
# @param site_name [String] Site name
|
406
|
+
# @param start_time [String] The start time of a time range to query, e.g.
|
407
|
+
# $filter=startTime eq '2015-01-01T00:00:00Z' and endTime eq
|
408
|
+
# '2015-01-02T00:00:00Z'
|
409
|
+
# @param end_time [String] The end time of a time range to query, e.g.
|
410
|
+
# $filter=startTime eq '2015-01-01T00:00:00Z' and endTime eq
|
411
|
+
# '2015-01-02T00:00:00Z'
|
412
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
413
|
+
# to the HTTP request.
|
414
|
+
#
|
415
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
416
|
+
#
|
417
|
+
def get_recommendation_history_for_site_async(resource_group_name, site_name, start_time = nil, end_time = nil, custom_headers = nil)
|
261
418
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
262
419
|
fail ArgumentError, 'site_name is nil' if site_name.nil?
|
263
420
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -274,7 +431,10 @@ module Azure::ARM::Web
|
|
274
431
|
query_params: {'startTime' => start_time,'endTime' => end_time,'api-version' => @client.api_version},
|
275
432
|
headers: request_headers.merge(custom_headers || {})
|
276
433
|
}
|
277
|
-
|
434
|
+
|
435
|
+
request_url = @base_url || @client.base_url
|
436
|
+
|
437
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
278
438
|
promise = request.run_promise do |req|
|
279
439
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
280
440
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -34,13 +34,41 @@ module Azure::ARM::Web
|
|
34
34
|
# subscription.
|
35
35
|
#
|
36
36
|
# @param resource_group_name [String] Name of resource group
|
37
|
-
# @param [Hash{String => String}]
|
38
|
-
#
|
37
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
38
|
+
# will be added to the HTTP request.
|
39
39
|
#
|
40
|
-
# @return [
|
41
|
-
# response.
|
40
|
+
# @return [ServerFarmCollection] operation results.
|
42
41
|
#
|
43
42
|
def get_server_farms(resource_group_name, custom_headers = nil)
|
43
|
+
response = get_server_farms_async(resource_group_name, custom_headers).value!
|
44
|
+
response.body unless response.nil?
|
45
|
+
end
|
46
|
+
|
47
|
+
#
|
48
|
+
# Gets collection of App Service Plans in a resource group for a given
|
49
|
+
# subscription.
|
50
|
+
#
|
51
|
+
# @param resource_group_name [String] Name of resource group
|
52
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
53
|
+
# will be added to the HTTP request.
|
54
|
+
#
|
55
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
56
|
+
#
|
57
|
+
def get_server_farms_with_http_info(resource_group_name, custom_headers = nil)
|
58
|
+
get_server_farms_async(resource_group_name, custom_headers).value!
|
59
|
+
end
|
60
|
+
|
61
|
+
#
|
62
|
+
# Gets collection of App Service Plans in a resource group for a given
|
63
|
+
# subscription.
|
64
|
+
#
|
65
|
+
# @param resource_group_name [String] Name of resource group
|
66
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
67
|
+
# to the HTTP request.
|
68
|
+
#
|
69
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
70
|
+
#
|
71
|
+
def get_server_farms_async(resource_group_name, custom_headers = nil)
|
44
72
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
45
73
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
46
74
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -56,7 +84,10 @@ module Azure::ARM::Web
|
|
56
84
|
query_params: {'api-version' => @client.api_version},
|
57
85
|
headers: request_headers.merge(custom_headers || {})
|
58
86
|
}
|
59
|
-
|
87
|
+
|
88
|
+
request_url = @base_url || @client.base_url
|
89
|
+
|
90
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
60
91
|
promise = request.run_promise do |req|
|
61
92
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
62
93
|
end
|
@@ -96,13 +127,41 @@ module Azure::ARM::Web
|
|
96
127
|
#
|
97
128
|
# @param resource_group_name [String] Name of resource group
|
98
129
|
# @param name [String] Name of App Service Plan
|
99
|
-
# @param [Hash{String => String}]
|
100
|
-
#
|
130
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
131
|
+
# will be added to the HTTP request.
|
101
132
|
#
|
102
|
-
# @return [
|
103
|
-
# response.
|
133
|
+
# @return [ServerFarmWithRichSku] operation results.
|
104
134
|
#
|
105
135
|
def get_server_farm(resource_group_name, name, custom_headers = nil)
|
136
|
+
response = get_server_farm_async(resource_group_name, name, custom_headers).value!
|
137
|
+
response.body unless response.nil?
|
138
|
+
end
|
139
|
+
|
140
|
+
#
|
141
|
+
# Gets specified App Service Plan in a resource group
|
142
|
+
#
|
143
|
+
# @param resource_group_name [String] Name of resource group
|
144
|
+
# @param name [String] Name of App Service Plan
|
145
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
146
|
+
# will be added to the HTTP request.
|
147
|
+
#
|
148
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
149
|
+
#
|
150
|
+
def get_server_farm_with_http_info(resource_group_name, name, custom_headers = nil)
|
151
|
+
get_server_farm_async(resource_group_name, name, custom_headers).value!
|
152
|
+
end
|
153
|
+
|
154
|
+
#
|
155
|
+
# Gets specified App Service Plan in a resource group
|
156
|
+
#
|
157
|
+
# @param resource_group_name [String] Name of resource group
|
158
|
+
# @param name [String] Name of App Service Plan
|
159
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
160
|
+
# to the HTTP request.
|
161
|
+
#
|
162
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
163
|
+
#
|
164
|
+
def get_server_farm_async(resource_group_name, name, custom_headers = nil)
|
106
165
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
107
166
|
fail ArgumentError, 'name is nil' if name.nil?
|
108
167
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -119,7 +178,10 @@ module Azure::ARM::Web
|
|
119
178
|
query_params: {'api-version' => @client.api_version},
|
120
179
|
headers: request_headers.merge(custom_headers || {})
|
121
180
|
}
|
122
|
-
|
181
|
+
|
182
|
+
request_url = @base_url || @client.base_url
|
183
|
+
|
184
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
123
185
|
promise = request.run_promise do |req|
|
124
186
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
125
187
|
end
|
@@ -173,7 +235,7 @@ module Azure::ARM::Web
|
|
173
235
|
#
|
174
236
|
def create_or_update_server_farm(resource_group_name, name, server_farm_envelope, allow_pending_state = nil, custom_headers = nil)
|
175
237
|
# Send request
|
176
|
-
promise =
|
238
|
+
promise = begin_create_or_update_server_farm_async(resource_group_name, name, server_farm_envelope, allow_pending_state, custom_headers)
|
177
239
|
|
178
240
|
promise = promise.then do |response|
|
179
241
|
# Defining deserialization method.
|
@@ -184,7 +246,7 @@ module Azure::ARM::Web
|
|
184
246
|
end
|
185
247
|
|
186
248
|
# Waiting for response.
|
187
|
-
@client.
|
249
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
188
250
|
end
|
189
251
|
|
190
252
|
promise
|
@@ -199,13 +261,49 @@ module Azure::ARM::Web
|
|
199
261
|
# Plan
|
200
262
|
# @param allow_pending_state [Boolean] OBSOLETE: If true, allow pending state
|
201
263
|
# for App Service Plan
|
202
|
-
# @param [Hash{String => String}]
|
203
|
-
#
|
264
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
265
|
+
# will be added to the HTTP request.
|
204
266
|
#
|
205
|
-
# @return [
|
206
|
-
# response.
|
267
|
+
# @return [ServerFarmWithRichSku] operation results.
|
207
268
|
#
|
208
269
|
def begin_create_or_update_server_farm(resource_group_name, name, server_farm_envelope, allow_pending_state = nil, custom_headers = nil)
|
270
|
+
response = begin_create_or_update_server_farm_async(resource_group_name, name, server_farm_envelope, allow_pending_state, custom_headers).value!
|
271
|
+
response.body unless response.nil?
|
272
|
+
end
|
273
|
+
|
274
|
+
#
|
275
|
+
# Creates or updates an App Service Plan
|
276
|
+
#
|
277
|
+
# @param resource_group_name [String] Name of resource group
|
278
|
+
# @param name [String] Name of App Service Plan
|
279
|
+
# @param server_farm_envelope [ServerFarmWithRichSku] Details of App Service
|
280
|
+
# Plan
|
281
|
+
# @param allow_pending_state [Boolean] OBSOLETE: If true, allow pending state
|
282
|
+
# for App Service Plan
|
283
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
284
|
+
# will be added to the HTTP request.
|
285
|
+
#
|
286
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
287
|
+
#
|
288
|
+
def begin_create_or_update_server_farm_with_http_info(resource_group_name, name, server_farm_envelope, allow_pending_state = nil, custom_headers = nil)
|
289
|
+
begin_create_or_update_server_farm_async(resource_group_name, name, server_farm_envelope, allow_pending_state, custom_headers).value!
|
290
|
+
end
|
291
|
+
|
292
|
+
#
|
293
|
+
# Creates or updates an App Service Plan
|
294
|
+
#
|
295
|
+
# @param resource_group_name [String] Name of resource group
|
296
|
+
# @param name [String] Name of App Service Plan
|
297
|
+
# @param server_farm_envelope [ServerFarmWithRichSku] Details of App Service
|
298
|
+
# Plan
|
299
|
+
# @param allow_pending_state [Boolean] OBSOLETE: If true, allow pending state
|
300
|
+
# for App Service Plan
|
301
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
302
|
+
# to the HTTP request.
|
303
|
+
#
|
304
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
305
|
+
#
|
306
|
+
def begin_create_or_update_server_farm_async(resource_group_name, name, server_farm_envelope, allow_pending_state = nil, custom_headers = nil)
|
209
307
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
210
308
|
fail ArgumentError, 'name is nil' if name.nil?
|
211
309
|
fail ArgumentError, 'server_farm_envelope is nil' if server_farm_envelope.nil?
|
@@ -223,7 +321,7 @@ module Azure::ARM::Web
|
|
223
321
|
unless server_farm_envelope.nil?
|
224
322
|
server_farm_envelope = ServerFarmWithRichSku.serialize_object(server_farm_envelope)
|
225
323
|
end
|
226
|
-
request_content = JSON.generate(server_farm_envelope, quirks_mode: true)
|
324
|
+
request_content = server_farm_envelope != nil ? JSON.generate(server_farm_envelope, quirks_mode: true) : nil
|
227
325
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}'
|
228
326
|
options = {
|
229
327
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -232,7 +330,10 @@ module Azure::ARM::Web
|
|
232
330
|
body: request_content,
|
233
331
|
headers: request_headers.merge(custom_headers || {})
|
234
332
|
}
|
235
|
-
|
333
|
+
|
334
|
+
request_url = @base_url || @client.base_url
|
335
|
+
|
336
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
236
337
|
promise = request.run_promise do |req|
|
237
338
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
238
339
|
end
|
@@ -284,13 +385,41 @@ module Azure::ARM::Web
|
|
284
385
|
#
|
285
386
|
# @param resource_group_name [String] Name of resource group
|
286
387
|
# @param name [String] Name of App Service Plan
|
287
|
-
# @param [Hash{String => String}]
|
288
|
-
#
|
388
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
389
|
+
# will be added to the HTTP request.
|
289
390
|
#
|
290
|
-
# @return [
|
291
|
-
# response.
|
391
|
+
# @return [Object] operation results.
|
292
392
|
#
|
293
393
|
def delete_server_farm(resource_group_name, name, custom_headers = nil)
|
394
|
+
response = delete_server_farm_async(resource_group_name, name, custom_headers).value!
|
395
|
+
response.body unless response.nil?
|
396
|
+
end
|
397
|
+
|
398
|
+
#
|
399
|
+
# Deletes a App Service Plan
|
400
|
+
#
|
401
|
+
# @param resource_group_name [String] Name of resource group
|
402
|
+
# @param name [String] Name of App Service Plan
|
403
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
404
|
+
# will be added to the HTTP request.
|
405
|
+
#
|
406
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
407
|
+
#
|
408
|
+
def delete_server_farm_with_http_info(resource_group_name, name, custom_headers = nil)
|
409
|
+
delete_server_farm_async(resource_group_name, name, custom_headers).value!
|
410
|
+
end
|
411
|
+
|
412
|
+
#
|
413
|
+
# Deletes a App Service Plan
|
414
|
+
#
|
415
|
+
# @param resource_group_name [String] Name of resource group
|
416
|
+
# @param name [String] Name of App Service Plan
|
417
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
418
|
+
# to the HTTP request.
|
419
|
+
#
|
420
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
421
|
+
#
|
422
|
+
def delete_server_farm_async(resource_group_name, name, custom_headers = nil)
|
294
423
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
295
424
|
fail ArgumentError, 'name is nil' if name.nil?
|
296
425
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -307,7 +436,10 @@ module Azure::ARM::Web
|
|
307
436
|
query_params: {'api-version' => @client.api_version},
|
308
437
|
headers: request_headers.merge(custom_headers || {})
|
309
438
|
}
|
310
|
-
|
439
|
+
|
440
|
+
request_url = @base_url || @client.base_url
|
441
|
+
|
442
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
311
443
|
promise = request.run_promise do |req|
|
312
444
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
313
445
|
end
|
@@ -342,13 +474,55 @@ module Azure::ARM::Web
|
|
342
474
|
# or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and
|
343
475
|
# endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
|
344
476
|
# duration'[Hour|Minute|Day]'.
|
345
|
-
# @param [Hash{String => String}]
|
346
|
-
#
|
477
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
478
|
+
# will be added to the HTTP request.
|
347
479
|
#
|
348
|
-
# @return [
|
349
|
-
# response.
|
480
|
+
# @return [ResourceMetricCollection] operation results.
|
350
481
|
#
|
351
482
|
def get_server_farm_metrics(resource_group_name, name, details = nil, filter = nil, custom_headers = nil)
|
483
|
+
response = get_server_farm_metrics_async(resource_group_name, name, details, filter, custom_headers).value!
|
484
|
+
response.body unless response.nil?
|
485
|
+
end
|
486
|
+
|
487
|
+
#
|
488
|
+
# Queries for App Serice Plan metrics
|
489
|
+
#
|
490
|
+
# @param resource_group_name [String] Name of resource group
|
491
|
+
# @param name [String] Name of App Service Plan
|
492
|
+
# @param details [Boolean] If true, metrics are broken down per App Service
|
493
|
+
# Plan instance
|
494
|
+
# @param filter [String] Return only usages/metrics specified in the filter.
|
495
|
+
# Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1'
|
496
|
+
# or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and
|
497
|
+
# endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
|
498
|
+
# duration'[Hour|Minute|Day]'.
|
499
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
500
|
+
# will be added to the HTTP request.
|
501
|
+
#
|
502
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
503
|
+
#
|
504
|
+
def get_server_farm_metrics_with_http_info(resource_group_name, name, details = nil, filter = nil, custom_headers = nil)
|
505
|
+
get_server_farm_metrics_async(resource_group_name, name, details, filter, custom_headers).value!
|
506
|
+
end
|
507
|
+
|
508
|
+
#
|
509
|
+
# Queries for App Serice Plan metrics
|
510
|
+
#
|
511
|
+
# @param resource_group_name [String] Name of resource group
|
512
|
+
# @param name [String] Name of App Service Plan
|
513
|
+
# @param details [Boolean] If true, metrics are broken down per App Service
|
514
|
+
# Plan instance
|
515
|
+
# @param filter [String] Return only usages/metrics specified in the filter.
|
516
|
+
# Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1'
|
517
|
+
# or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and
|
518
|
+
# endTime eq '2014-12-31T23:59:59Z' and timeGrain eq
|
519
|
+
# duration'[Hour|Minute|Day]'.
|
520
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
521
|
+
# to the HTTP request.
|
522
|
+
#
|
523
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
524
|
+
#
|
525
|
+
def get_server_farm_metrics_async(resource_group_name, name, details = nil, filter = nil, custom_headers = nil)
|
352
526
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
353
527
|
fail ArgumentError, 'name is nil' if name.nil?
|
354
528
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -365,7 +539,10 @@ module Azure::ARM::Web
|
|
365
539
|
query_params: {'details' => details,'$filter' => filter,'api-version' => @client.api_version},
|
366
540
|
headers: request_headers.merge(custom_headers || {})
|
367
541
|
}
|
368
|
-
|
542
|
+
|
543
|
+
request_url = @base_url || @client.base_url
|
544
|
+
|
545
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
369
546
|
promise = request.run_promise do |req|
|
370
547
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
371
548
|
end
|
@@ -405,13 +582,41 @@ module Azure::ARM::Web
|
|
405
582
|
#
|
406
583
|
# @param resource_group_name [String] Name of resource group
|
407
584
|
# @param name [String] Name of App Service Plan
|
408
|
-
# @param [Hash{String => String}]
|
409
|
-
#
|
585
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
586
|
+
# will be added to the HTTP request.
|
410
587
|
#
|
411
|
-
# @return [
|
412
|
-
# response.
|
588
|
+
# @return [MetricDefinitionCollection] operation results.
|
413
589
|
#
|
414
590
|
def get_server_farm_metric_defintions(resource_group_name, name, custom_headers = nil)
|
591
|
+
response = get_server_farm_metric_defintions_async(resource_group_name, name, custom_headers).value!
|
592
|
+
response.body unless response.nil?
|
593
|
+
end
|
594
|
+
|
595
|
+
#
|
596
|
+
# List of metrics that can be queried for an App Service Plan
|
597
|
+
#
|
598
|
+
# @param resource_group_name [String] Name of resource group
|
599
|
+
# @param name [String] Name of App Service Plan
|
600
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
601
|
+
# will be added to the HTTP request.
|
602
|
+
#
|
603
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
604
|
+
#
|
605
|
+
def get_server_farm_metric_defintions_with_http_info(resource_group_name, name, custom_headers = nil)
|
606
|
+
get_server_farm_metric_defintions_async(resource_group_name, name, custom_headers).value!
|
607
|
+
end
|
608
|
+
|
609
|
+
#
|
610
|
+
# List of metrics that can be queried for an App Service Plan
|
611
|
+
#
|
612
|
+
# @param resource_group_name [String] Name of resource group
|
613
|
+
# @param name [String] Name of App Service Plan
|
614
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
615
|
+
# to the HTTP request.
|
616
|
+
#
|
617
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
618
|
+
#
|
619
|
+
def get_server_farm_metric_defintions_async(resource_group_name, name, custom_headers = nil)
|
415
620
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
416
621
|
fail ArgumentError, 'name is nil' if name.nil?
|
417
622
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -428,7 +633,10 @@ module Azure::ARM::Web
|
|
428
633
|
query_params: {'api-version' => @client.api_version},
|
429
634
|
headers: request_headers.merge(custom_headers || {})
|
430
635
|
}
|
431
|
-
|
636
|
+
|
637
|
+
request_url = @base_url || @client.base_url
|
638
|
+
|
639
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
432
640
|
promise = request.run_promise do |req|
|
433
641
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
434
642
|
end
|
@@ -468,13 +676,41 @@ module Azure::ARM::Web
|
|
468
676
|
#
|
469
677
|
# @param resource_group_name [String] Name of resource group
|
470
678
|
# @param name [String] Name of App Service Plan
|
471
|
-
# @param [Hash{String => String}]
|
472
|
-
#
|
679
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
680
|
+
# will be added to the HTTP request.
|
473
681
|
#
|
474
|
-
# @return [
|
475
|
-
# response.
|
682
|
+
# @return [Array] operation results.
|
476
683
|
#
|
477
684
|
def get_vnets_for_server_farm(resource_group_name, name, custom_headers = nil)
|
685
|
+
response = get_vnets_for_server_farm_async(resource_group_name, name, custom_headers).value!
|
686
|
+
response.body unless response.nil?
|
687
|
+
end
|
688
|
+
|
689
|
+
#
|
690
|
+
# Gets list of vnets associated with App Service Plan
|
691
|
+
#
|
692
|
+
# @param resource_group_name [String] Name of resource group
|
693
|
+
# @param name [String] Name of App Service Plan
|
694
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
695
|
+
# will be added to the HTTP request.
|
696
|
+
#
|
697
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
698
|
+
#
|
699
|
+
def get_vnets_for_server_farm_with_http_info(resource_group_name, name, custom_headers = nil)
|
700
|
+
get_vnets_for_server_farm_async(resource_group_name, name, custom_headers).value!
|
701
|
+
end
|
702
|
+
|
703
|
+
#
|
704
|
+
# Gets list of vnets associated with App Service Plan
|
705
|
+
#
|
706
|
+
# @param resource_group_name [String] Name of resource group
|
707
|
+
# @param name [String] Name of App Service Plan
|
708
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
709
|
+
# to the HTTP request.
|
710
|
+
#
|
711
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
712
|
+
#
|
713
|
+
def get_vnets_for_server_farm_async(resource_group_name, name, custom_headers = nil)
|
478
714
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
479
715
|
fail ArgumentError, 'name is nil' if name.nil?
|
480
716
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -491,7 +727,10 @@ module Azure::ARM::Web
|
|
491
727
|
query_params: {'api-version' => @client.api_version},
|
492
728
|
headers: request_headers.merge(custom_headers || {})
|
493
729
|
}
|
494
|
-
|
730
|
+
|
731
|
+
request_url = @base_url || @client.base_url
|
732
|
+
|
733
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
495
734
|
promise = request.run_promise do |req|
|
496
735
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
497
736
|
end
|
@@ -539,13 +778,43 @@ module Azure::ARM::Web
|
|
539
778
|
# @param resource_group_name [String] Name of resource group
|
540
779
|
# @param name [String] Name of App Service Plan
|
541
780
|
# @param vnet_name [String] Name of virtual network
|
542
|
-
# @param [Hash{String => String}]
|
543
|
-
#
|
781
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
782
|
+
# will be added to the HTTP request.
|
544
783
|
#
|
545
|
-
# @return [
|
546
|
-
# response.
|
784
|
+
# @return [VnetInfo] operation results.
|
547
785
|
#
|
548
786
|
def get_vnet_from_server_farm(resource_group_name, name, vnet_name, custom_headers = nil)
|
787
|
+
response = get_vnet_from_server_farm_async(resource_group_name, name, vnet_name, custom_headers).value!
|
788
|
+
response.body unless response.nil?
|
789
|
+
end
|
790
|
+
|
791
|
+
#
|
792
|
+
# Gets a vnet associated with an App Service Plan
|
793
|
+
#
|
794
|
+
# @param resource_group_name [String] Name of resource group
|
795
|
+
# @param name [String] Name of App Service Plan
|
796
|
+
# @param vnet_name [String] Name of virtual network
|
797
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
798
|
+
# will be added to the HTTP request.
|
799
|
+
#
|
800
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
801
|
+
#
|
802
|
+
def get_vnet_from_server_farm_with_http_info(resource_group_name, name, vnet_name, custom_headers = nil)
|
803
|
+
get_vnet_from_server_farm_async(resource_group_name, name, vnet_name, custom_headers).value!
|
804
|
+
end
|
805
|
+
|
806
|
+
#
|
807
|
+
# Gets a vnet associated with an App Service Plan
|
808
|
+
#
|
809
|
+
# @param resource_group_name [String] Name of resource group
|
810
|
+
# @param name [String] Name of App Service Plan
|
811
|
+
# @param vnet_name [String] Name of virtual network
|
812
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
813
|
+
# to the HTTP request.
|
814
|
+
#
|
815
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
816
|
+
#
|
817
|
+
def get_vnet_from_server_farm_async(resource_group_name, name, vnet_name, custom_headers = nil)
|
549
818
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
550
819
|
fail ArgumentError, 'name is nil' if name.nil?
|
551
820
|
fail ArgumentError, 'vnet_name is nil' if vnet_name.nil?
|
@@ -563,7 +832,10 @@ module Azure::ARM::Web
|
|
563
832
|
query_params: {'api-version' => @client.api_version},
|
564
833
|
headers: request_headers.merge(custom_headers || {})
|
565
834
|
}
|
566
|
-
|
835
|
+
|
836
|
+
request_url = @base_url || @client.base_url
|
837
|
+
|
838
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
567
839
|
promise = request.run_promise do |req|
|
568
840
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
569
841
|
end
|
@@ -604,13 +876,43 @@ module Azure::ARM::Web
|
|
604
876
|
# @param resource_group_name [String] Name of resource group
|
605
877
|
# @param name [String] Name of App Service Plan
|
606
878
|
# @param vnet_name [String] Name of virtual network
|
607
|
-
# @param [Hash{String => String}]
|
608
|
-
#
|
879
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
880
|
+
# will be added to the HTTP request.
|
609
881
|
#
|
610
|
-
# @return [
|
611
|
-
# response.
|
882
|
+
# @return [Array] operation results.
|
612
883
|
#
|
613
884
|
def get_routes_for_vnet(resource_group_name, name, vnet_name, custom_headers = nil)
|
885
|
+
response = get_routes_for_vnet_async(resource_group_name, name, vnet_name, custom_headers).value!
|
886
|
+
response.body unless response.nil?
|
887
|
+
end
|
888
|
+
|
889
|
+
#
|
890
|
+
# Gets a list of all routes associated with a vnet, in an app service plan
|
891
|
+
#
|
892
|
+
# @param resource_group_name [String] Name of resource group
|
893
|
+
# @param name [String] Name of App Service Plan
|
894
|
+
# @param vnet_name [String] Name of virtual network
|
895
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
896
|
+
# will be added to the HTTP request.
|
897
|
+
#
|
898
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
899
|
+
#
|
900
|
+
def get_routes_for_vnet_with_http_info(resource_group_name, name, vnet_name, custom_headers = nil)
|
901
|
+
get_routes_for_vnet_async(resource_group_name, name, vnet_name, custom_headers).value!
|
902
|
+
end
|
903
|
+
|
904
|
+
#
|
905
|
+
# Gets a list of all routes associated with a vnet, in an app service plan
|
906
|
+
#
|
907
|
+
# @param resource_group_name [String] Name of resource group
|
908
|
+
# @param name [String] Name of App Service Plan
|
909
|
+
# @param vnet_name [String] Name of virtual network
|
910
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
911
|
+
# to the HTTP request.
|
912
|
+
#
|
913
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
914
|
+
#
|
915
|
+
def get_routes_for_vnet_async(resource_group_name, name, vnet_name, custom_headers = nil)
|
614
916
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
615
917
|
fail ArgumentError, 'name is nil' if name.nil?
|
616
918
|
fail ArgumentError, 'vnet_name is nil' if vnet_name.nil?
|
@@ -628,7 +930,10 @@ module Azure::ARM::Web
|
|
628
930
|
query_params: {'api-version' => @client.api_version},
|
629
931
|
headers: request_headers.merge(custom_headers || {})
|
630
932
|
}
|
631
|
-
|
933
|
+
|
934
|
+
request_url = @base_url || @client.base_url
|
935
|
+
|
936
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
632
937
|
promise = request.run_promise do |req|
|
633
938
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
634
939
|
end
|
@@ -677,13 +982,45 @@ module Azure::ARM::Web
|
|
677
982
|
# @param name [String] Name of App Service Plan
|
678
983
|
# @param vnet_name [String] Name of virtual network
|
679
984
|
# @param route_name [String] Name of the virtual network route
|
680
|
-
# @param [Hash{String => String}]
|
681
|
-
#
|
985
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
986
|
+
# will be added to the HTTP request.
|
682
987
|
#
|
683
|
-
# @return [
|
684
|
-
# response.
|
988
|
+
# @return [Array] operation results.
|
685
989
|
#
|
686
990
|
def get_route_for_vnet(resource_group_name, name, vnet_name, route_name, custom_headers = nil)
|
991
|
+
response = get_route_for_vnet_async(resource_group_name, name, vnet_name, route_name, custom_headers).value!
|
992
|
+
response.body unless response.nil?
|
993
|
+
end
|
994
|
+
|
995
|
+
#
|
996
|
+
# Gets a specific route associated with a vnet, in an app service plan
|
997
|
+
#
|
998
|
+
# @param resource_group_name [String] Name of resource group
|
999
|
+
# @param name [String] Name of App Service Plan
|
1000
|
+
# @param vnet_name [String] Name of virtual network
|
1001
|
+
# @param route_name [String] Name of the virtual network route
|
1002
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1003
|
+
# will be added to the HTTP request.
|
1004
|
+
#
|
1005
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1006
|
+
#
|
1007
|
+
def get_route_for_vnet_with_http_info(resource_group_name, name, vnet_name, route_name, custom_headers = nil)
|
1008
|
+
get_route_for_vnet_async(resource_group_name, name, vnet_name, route_name, custom_headers).value!
|
1009
|
+
end
|
1010
|
+
|
1011
|
+
#
|
1012
|
+
# Gets a specific route associated with a vnet, in an app service plan
|
1013
|
+
#
|
1014
|
+
# @param resource_group_name [String] Name of resource group
|
1015
|
+
# @param name [String] Name of App Service Plan
|
1016
|
+
# @param vnet_name [String] Name of virtual network
|
1017
|
+
# @param route_name [String] Name of the virtual network route
|
1018
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1019
|
+
# to the HTTP request.
|
1020
|
+
#
|
1021
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1022
|
+
#
|
1023
|
+
def get_route_for_vnet_async(resource_group_name, name, vnet_name, route_name, custom_headers = nil)
|
687
1024
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
688
1025
|
fail ArgumentError, 'name is nil' if name.nil?
|
689
1026
|
fail ArgumentError, 'vnet_name is nil' if vnet_name.nil?
|
@@ -702,7 +1039,10 @@ module Azure::ARM::Web
|
|
702
1039
|
query_params: {'api-version' => @client.api_version},
|
703
1040
|
headers: request_headers.merge(custom_headers || {})
|
704
1041
|
}
|
705
|
-
|
1042
|
+
|
1043
|
+
request_url = @base_url || @client.base_url
|
1044
|
+
|
1045
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
706
1046
|
promise = request.run_promise do |req|
|
707
1047
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
708
1048
|
end
|
@@ -753,13 +1093,49 @@ module Azure::ARM::Web
|
|
753
1093
|
# @param vnet_name [String] Name of virtual network
|
754
1094
|
# @param route_name [String] Name of the virtual network route
|
755
1095
|
# @param route [VnetRoute] The route object
|
756
|
-
# @param [Hash{String => String}]
|
757
|
-
#
|
1096
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1097
|
+
# will be added to the HTTP request.
|
758
1098
|
#
|
759
|
-
# @return [
|
760
|
-
# response.
|
1099
|
+
# @return [VnetRoute] operation results.
|
761
1100
|
#
|
762
1101
|
def create_or_update_vnet_route(resource_group_name, name, vnet_name, route_name, route, custom_headers = nil)
|
1102
|
+
response = create_or_update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers).value!
|
1103
|
+
response.body unless response.nil?
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
#
|
1107
|
+
# Creates a new route or updates an existing route for a vnet in an app
|
1108
|
+
# service plan.
|
1109
|
+
#
|
1110
|
+
# @param resource_group_name [String] Name of resource group
|
1111
|
+
# @param name [String] Name of App Service Plan
|
1112
|
+
# @param vnet_name [String] Name of virtual network
|
1113
|
+
# @param route_name [String] Name of the virtual network route
|
1114
|
+
# @param route [VnetRoute] The route object
|
1115
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1116
|
+
# will be added to the HTTP request.
|
1117
|
+
#
|
1118
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1119
|
+
#
|
1120
|
+
def create_or_update_vnet_route_with_http_info(resource_group_name, name, vnet_name, route_name, route, custom_headers = nil)
|
1121
|
+
create_or_update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers).value!
|
1122
|
+
end
|
1123
|
+
|
1124
|
+
#
|
1125
|
+
# Creates a new route or updates an existing route for a vnet in an app
|
1126
|
+
# service plan.
|
1127
|
+
#
|
1128
|
+
# @param resource_group_name [String] Name of resource group
|
1129
|
+
# @param name [String] Name of App Service Plan
|
1130
|
+
# @param vnet_name [String] Name of virtual network
|
1131
|
+
# @param route_name [String] Name of the virtual network route
|
1132
|
+
# @param route [VnetRoute] The route object
|
1133
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1134
|
+
# to the HTTP request.
|
1135
|
+
#
|
1136
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1137
|
+
#
|
1138
|
+
def create_or_update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers = nil)
|
763
1139
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
764
1140
|
fail ArgumentError, 'name is nil' if name.nil?
|
765
1141
|
fail ArgumentError, 'vnet_name is nil' if vnet_name.nil?
|
@@ -779,7 +1155,7 @@ module Azure::ARM::Web
|
|
779
1155
|
unless route.nil?
|
780
1156
|
route = VnetRoute.serialize_object(route)
|
781
1157
|
end
|
782
|
-
request_content = JSON.generate(route, quirks_mode: true)
|
1158
|
+
request_content = route != nil ? JSON.generate(route, quirks_mode: true) : nil
|
783
1159
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes/{routeName}'
|
784
1160
|
options = {
|
785
1161
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -788,7 +1164,10 @@ module Azure::ARM::Web
|
|
788
1164
|
body: request_content,
|
789
1165
|
headers: request_headers.merge(custom_headers || {})
|
790
1166
|
}
|
791
|
-
|
1167
|
+
|
1168
|
+
request_url = @base_url || @client.base_url
|
1169
|
+
|
1170
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
792
1171
|
promise = request.run_promise do |req|
|
793
1172
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
794
1173
|
end
|
@@ -830,13 +1209,45 @@ module Azure::ARM::Web
|
|
830
1209
|
# @param name [String] Name of App Service Plan
|
831
1210
|
# @param vnet_name [String] Name of virtual network
|
832
1211
|
# @param route_name [String] Name of the virtual network route
|
833
|
-
# @param [Hash{String => String}]
|
834
|
-
#
|
1212
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1213
|
+
# will be added to the HTTP request.
|
835
1214
|
#
|
836
|
-
# @return [
|
837
|
-
# response.
|
1215
|
+
# @return [Object] operation results.
|
838
1216
|
#
|
839
1217
|
def delete_vnet_route(resource_group_name, name, vnet_name, route_name, custom_headers = nil)
|
1218
|
+
response = delete_vnet_route_async(resource_group_name, name, vnet_name, route_name, custom_headers).value!
|
1219
|
+
response.body unless response.nil?
|
1220
|
+
end
|
1221
|
+
|
1222
|
+
#
|
1223
|
+
# Deletes an existing route for a vnet in an app service plan.
|
1224
|
+
#
|
1225
|
+
# @param resource_group_name [String] Name of resource group
|
1226
|
+
# @param name [String] Name of App Service Plan
|
1227
|
+
# @param vnet_name [String] Name of virtual network
|
1228
|
+
# @param route_name [String] Name of the virtual network route
|
1229
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1230
|
+
# will be added to the HTTP request.
|
1231
|
+
#
|
1232
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1233
|
+
#
|
1234
|
+
def delete_vnet_route_with_http_info(resource_group_name, name, vnet_name, route_name, custom_headers = nil)
|
1235
|
+
delete_vnet_route_async(resource_group_name, name, vnet_name, route_name, custom_headers).value!
|
1236
|
+
end
|
1237
|
+
|
1238
|
+
#
|
1239
|
+
# Deletes an existing route for a vnet in an app service plan.
|
1240
|
+
#
|
1241
|
+
# @param resource_group_name [String] Name of resource group
|
1242
|
+
# @param name [String] Name of App Service Plan
|
1243
|
+
# @param vnet_name [String] Name of virtual network
|
1244
|
+
# @param route_name [String] Name of the virtual network route
|
1245
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1246
|
+
# to the HTTP request.
|
1247
|
+
#
|
1248
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1249
|
+
#
|
1250
|
+
def delete_vnet_route_async(resource_group_name, name, vnet_name, route_name, custom_headers = nil)
|
840
1251
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
841
1252
|
fail ArgumentError, 'name is nil' if name.nil?
|
842
1253
|
fail ArgumentError, 'vnet_name is nil' if vnet_name.nil?
|
@@ -855,7 +1266,10 @@ module Azure::ARM::Web
|
|
855
1266
|
query_params: {'api-version' => @client.api_version},
|
856
1267
|
headers: request_headers.merge(custom_headers || {})
|
857
1268
|
}
|
858
|
-
|
1269
|
+
|
1270
|
+
request_url = @base_url || @client.base_url
|
1271
|
+
|
1272
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
859
1273
|
promise = request.run_promise do |req|
|
860
1274
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
861
1275
|
end
|
@@ -887,13 +1301,49 @@ module Azure::ARM::Web
|
|
887
1301
|
# @param vnet_name [String] Name of virtual network
|
888
1302
|
# @param route_name [String] Name of the virtual network route
|
889
1303
|
# @param route [VnetRoute] The route object
|
890
|
-
# @param [Hash{String => String}]
|
891
|
-
#
|
1304
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1305
|
+
# will be added to the HTTP request.
|
892
1306
|
#
|
893
|
-
# @return [
|
894
|
-
# response.
|
1307
|
+
# @return [VnetRoute] operation results.
|
895
1308
|
#
|
896
1309
|
def update_vnet_route(resource_group_name, name, vnet_name, route_name, route, custom_headers = nil)
|
1310
|
+
response = update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers).value!
|
1311
|
+
response.body unless response.nil?
|
1312
|
+
end
|
1313
|
+
|
1314
|
+
#
|
1315
|
+
# Creates a new route or updates an existing route for a vnet in an app
|
1316
|
+
# service plan.
|
1317
|
+
#
|
1318
|
+
# @param resource_group_name [String] Name of resource group
|
1319
|
+
# @param name [String] Name of App Service Plan
|
1320
|
+
# @param vnet_name [String] Name of virtual network
|
1321
|
+
# @param route_name [String] Name of the virtual network route
|
1322
|
+
# @param route [VnetRoute] The route object
|
1323
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1324
|
+
# will be added to the HTTP request.
|
1325
|
+
#
|
1326
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1327
|
+
#
|
1328
|
+
def update_vnet_route_with_http_info(resource_group_name, name, vnet_name, route_name, route, custom_headers = nil)
|
1329
|
+
update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers).value!
|
1330
|
+
end
|
1331
|
+
|
1332
|
+
#
|
1333
|
+
# Creates a new route or updates an existing route for a vnet in an app
|
1334
|
+
# service plan.
|
1335
|
+
#
|
1336
|
+
# @param resource_group_name [String] Name of resource group
|
1337
|
+
# @param name [String] Name of App Service Plan
|
1338
|
+
# @param vnet_name [String] Name of virtual network
|
1339
|
+
# @param route_name [String] Name of the virtual network route
|
1340
|
+
# @param route [VnetRoute] The route object
|
1341
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1342
|
+
# to the HTTP request.
|
1343
|
+
#
|
1344
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1345
|
+
#
|
1346
|
+
def update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers = nil)
|
897
1347
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
898
1348
|
fail ArgumentError, 'name is nil' if name.nil?
|
899
1349
|
fail ArgumentError, 'vnet_name is nil' if vnet_name.nil?
|
@@ -913,7 +1363,7 @@ module Azure::ARM::Web
|
|
913
1363
|
unless route.nil?
|
914
1364
|
route = VnetRoute.serialize_object(route)
|
915
1365
|
end
|
916
|
-
request_content = JSON.generate(route, quirks_mode: true)
|
1366
|
+
request_content = route != nil ? JSON.generate(route, quirks_mode: true) : nil
|
917
1367
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes/{routeName}'
|
918
1368
|
options = {
|
919
1369
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -922,7 +1372,10 @@ module Azure::ARM::Web
|
|
922
1372
|
body: request_content,
|
923
1373
|
headers: request_headers.merge(custom_headers || {})
|
924
1374
|
}
|
925
|
-
|
1375
|
+
|
1376
|
+
request_url = @base_url || @client.base_url
|
1377
|
+
|
1378
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :patch, options)
|
926
1379
|
promise = request.run_promise do |req|
|
927
1380
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
928
1381
|
end
|
@@ -965,13 +1418,47 @@ module Azure::ARM::Web
|
|
965
1418
|
# @param vnet_name [String] Name of the virtual network
|
966
1419
|
# @param gateway_name [String] Name of the gateway. Only the 'primary' gateway
|
967
1420
|
# is supported.
|
968
|
-
# @param [Hash{String => String}]
|
969
|
-
#
|
1421
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1422
|
+
# will be added to the HTTP request.
|
970
1423
|
#
|
971
|
-
# @return [
|
972
|
-
# response.
|
1424
|
+
# @return [VnetGateway] operation results.
|
973
1425
|
#
|
974
1426
|
def get_server_farm_vnet_gateway(resource_group_name, name, vnet_name, gateway_name, custom_headers = nil)
|
1427
|
+
response = get_server_farm_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers).value!
|
1428
|
+
response.body unless response.nil?
|
1429
|
+
end
|
1430
|
+
|
1431
|
+
#
|
1432
|
+
# Gets the vnet gateway.
|
1433
|
+
#
|
1434
|
+
# @param resource_group_name [String] Name of resource group
|
1435
|
+
# @param name [String] Name of the App Service Plan
|
1436
|
+
# @param vnet_name [String] Name of the virtual network
|
1437
|
+
# @param gateway_name [String] Name of the gateway. Only the 'primary' gateway
|
1438
|
+
# is supported.
|
1439
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1440
|
+
# will be added to the HTTP request.
|
1441
|
+
#
|
1442
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1443
|
+
#
|
1444
|
+
def get_server_farm_vnet_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, custom_headers = nil)
|
1445
|
+
get_server_farm_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers).value!
|
1446
|
+
end
|
1447
|
+
|
1448
|
+
#
|
1449
|
+
# Gets the vnet gateway.
|
1450
|
+
#
|
1451
|
+
# @param resource_group_name [String] Name of resource group
|
1452
|
+
# @param name [String] Name of the App Service Plan
|
1453
|
+
# @param vnet_name [String] Name of the virtual network
|
1454
|
+
# @param gateway_name [String] Name of the gateway. Only the 'primary' gateway
|
1455
|
+
# is supported.
|
1456
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1457
|
+
# to the HTTP request.
|
1458
|
+
#
|
1459
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1460
|
+
#
|
1461
|
+
def get_server_farm_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers = nil)
|
975
1462
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
976
1463
|
fail ArgumentError, 'name is nil' if name.nil?
|
977
1464
|
fail ArgumentError, 'vnet_name is nil' if vnet_name.nil?
|
@@ -990,7 +1477,10 @@ module Azure::ARM::Web
|
|
990
1477
|
query_params: {'api-version' => @client.api_version},
|
991
1478
|
headers: request_headers.merge(custom_headers || {})
|
992
1479
|
}
|
993
|
-
|
1480
|
+
|
1481
|
+
request_url = @base_url || @client.base_url
|
1482
|
+
|
1483
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
994
1484
|
promise = request.run_promise do |req|
|
995
1485
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
996
1486
|
end
|
@@ -1034,13 +1524,49 @@ module Azure::ARM::Web
|
|
1034
1524
|
# @param gateway_name [String] The name of the gateway. Only 'primary' is
|
1035
1525
|
# supported.
|
1036
1526
|
# @param connection_envelope [VnetGateway] The gateway entity.
|
1037
|
-
# @param [Hash{String => String}]
|
1038
|
-
#
|
1527
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1528
|
+
# will be added to the HTTP request.
|
1039
1529
|
#
|
1040
|
-
# @return [
|
1041
|
-
# response.
|
1530
|
+
# @return [VnetGateway] operation results.
|
1042
1531
|
#
|
1043
1532
|
def update_server_farm_vnet_gateway(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers = nil)
|
1533
|
+
response = update_server_farm_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers).value!
|
1534
|
+
response.body unless response.nil?
|
1535
|
+
end
|
1536
|
+
|
1537
|
+
#
|
1538
|
+
# Updates the vnet gateway
|
1539
|
+
#
|
1540
|
+
# @param resource_group_name [String] The resource group
|
1541
|
+
# @param name [String] The name of the App Service Plan
|
1542
|
+
# @param vnet_name [String] The name of the virtual network
|
1543
|
+
# @param gateway_name [String] The name of the gateway. Only 'primary' is
|
1544
|
+
# supported.
|
1545
|
+
# @param connection_envelope [VnetGateway] The gateway entity.
|
1546
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1547
|
+
# will be added to the HTTP request.
|
1548
|
+
#
|
1549
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1550
|
+
#
|
1551
|
+
def update_server_farm_vnet_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers = nil)
|
1552
|
+
update_server_farm_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers).value!
|
1553
|
+
end
|
1554
|
+
|
1555
|
+
#
|
1556
|
+
# Updates the vnet gateway
|
1557
|
+
#
|
1558
|
+
# @param resource_group_name [String] The resource group
|
1559
|
+
# @param name [String] The name of the App Service Plan
|
1560
|
+
# @param vnet_name [String] The name of the virtual network
|
1561
|
+
# @param gateway_name [String] The name of the gateway. Only 'primary' is
|
1562
|
+
# supported.
|
1563
|
+
# @param connection_envelope [VnetGateway] The gateway entity.
|
1564
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1565
|
+
# to the HTTP request.
|
1566
|
+
#
|
1567
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1568
|
+
#
|
1569
|
+
def update_server_farm_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers = nil)
|
1044
1570
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1045
1571
|
fail ArgumentError, 'name is nil' if name.nil?
|
1046
1572
|
fail ArgumentError, 'vnet_name is nil' if vnet_name.nil?
|
@@ -1060,7 +1586,7 @@ module Azure::ARM::Web
|
|
1060
1586
|
unless connection_envelope.nil?
|
1061
1587
|
connection_envelope = VnetGateway.serialize_object(connection_envelope)
|
1062
1588
|
end
|
1063
|
-
request_content = JSON.generate(connection_envelope, quirks_mode: true)
|
1589
|
+
request_content = connection_envelope != nil ? JSON.generate(connection_envelope, quirks_mode: true) : nil
|
1064
1590
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}'
|
1065
1591
|
options = {
|
1066
1592
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -1069,7 +1595,10 @@ module Azure::ARM::Web
|
|
1069
1595
|
body: request_content,
|
1070
1596
|
headers: request_headers.merge(custom_headers || {})
|
1071
1597
|
}
|
1072
|
-
|
1598
|
+
|
1599
|
+
request_url = @base_url || @client.base_url
|
1600
|
+
|
1601
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
1073
1602
|
promise = request.run_promise do |req|
|
1074
1603
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1075
1604
|
end
|
@@ -1116,13 +1645,55 @@ module Azure::ARM::Web
|
|
1116
1645
|
# @param filter [String] Supported filter: $filter=state eq running. Returns
|
1117
1646
|
# only web apps that are currently running
|
1118
1647
|
# @param top [String] List page size. If specified, results are paged.
|
1119
|
-
# @param [Hash{String => String}]
|
1120
|
-
#
|
1648
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1649
|
+
# will be added to the HTTP request.
|
1121
1650
|
#
|
1122
|
-
# @return [
|
1123
|
-
# response.
|
1651
|
+
# @return [SiteCollection] operation results.
|
1124
1652
|
#
|
1125
1653
|
def get_server_farm_sites(resource_group_name, name, skip_token = nil, filter = nil, top = nil, custom_headers = nil)
|
1654
|
+
response = get_server_farm_sites_async(resource_group_name, name, skip_token, filter, top, custom_headers).value!
|
1655
|
+
response.body unless response.nil?
|
1656
|
+
end
|
1657
|
+
|
1658
|
+
#
|
1659
|
+
# Gets list of Apps associated with an App Service Plan
|
1660
|
+
#
|
1661
|
+
# @param resource_group_name [String] Name of resource group
|
1662
|
+
# @param name [String] Name of App Service Plan
|
1663
|
+
# @param skip_token [String] Skip to of web apps in a list. If specified, the
|
1664
|
+
# resulting list will contain web apps starting from (including) the
|
1665
|
+
# skipToken. Else, the resulting list contains web apps from the start of the
|
1666
|
+
# list
|
1667
|
+
# @param filter [String] Supported filter: $filter=state eq running. Returns
|
1668
|
+
# only web apps that are currently running
|
1669
|
+
# @param top [String] List page size. If specified, results are paged.
|
1670
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1671
|
+
# will be added to the HTTP request.
|
1672
|
+
#
|
1673
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1674
|
+
#
|
1675
|
+
def get_server_farm_sites_with_http_info(resource_group_name, name, skip_token = nil, filter = nil, top = nil, custom_headers = nil)
|
1676
|
+
get_server_farm_sites_async(resource_group_name, name, skip_token, filter, top, custom_headers).value!
|
1677
|
+
end
|
1678
|
+
|
1679
|
+
#
|
1680
|
+
# Gets list of Apps associated with an App Service Plan
|
1681
|
+
#
|
1682
|
+
# @param resource_group_name [String] Name of resource group
|
1683
|
+
# @param name [String] Name of App Service Plan
|
1684
|
+
# @param skip_token [String] Skip to of web apps in a list. If specified, the
|
1685
|
+
# resulting list will contain web apps starting from (including) the
|
1686
|
+
# skipToken. Else, the resulting list contains web apps from the start of the
|
1687
|
+
# list
|
1688
|
+
# @param filter [String] Supported filter: $filter=state eq running. Returns
|
1689
|
+
# only web apps that are currently running
|
1690
|
+
# @param top [String] List page size. If specified, results are paged.
|
1691
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1692
|
+
# to the HTTP request.
|
1693
|
+
#
|
1694
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1695
|
+
#
|
1696
|
+
def get_server_farm_sites_async(resource_group_name, name, skip_token = nil, filter = nil, top = nil, custom_headers = nil)
|
1126
1697
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1127
1698
|
fail ArgumentError, 'name is nil' if name.nil?
|
1128
1699
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -1139,7 +1710,10 @@ module Azure::ARM::Web
|
|
1139
1710
|
query_params: {'$skipToken' => skip_token,'$filter' => filter,'$top' => top,'api-version' => @client.api_version},
|
1140
1711
|
headers: request_headers.merge(custom_headers || {})
|
1141
1712
|
}
|
1142
|
-
|
1713
|
+
|
1714
|
+
request_url = @base_url || @client.base_url
|
1715
|
+
|
1716
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
1143
1717
|
promise = request.run_promise do |req|
|
1144
1718
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1145
1719
|
end
|
@@ -1179,14 +1753,44 @@ module Azure::ARM::Web
|
|
1179
1753
|
#
|
1180
1754
|
# @param resource_group_name [String] Name of resource group
|
1181
1755
|
# @param name [String] Name of server farm
|
1182
|
-
# @param worker_name [String] Name of worker machine, typically
|
1183
|
-
# @param [Hash{String => String}]
|
1184
|
-
#
|
1756
|
+
# @param worker_name [String] Name of worker machine, typically starts with RD
|
1757
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1758
|
+
# will be added to the HTTP request.
|
1185
1759
|
#
|
1186
|
-
# @return [
|
1187
|
-
# response.
|
1760
|
+
# @return [Object] operation results.
|
1188
1761
|
#
|
1189
1762
|
def reboot_worker_for_server_farm(resource_group_name, name, worker_name, custom_headers = nil)
|
1763
|
+
response = reboot_worker_for_server_farm_async(resource_group_name, name, worker_name, custom_headers).value!
|
1764
|
+
response.body unless response.nil?
|
1765
|
+
end
|
1766
|
+
|
1767
|
+
#
|
1768
|
+
# Submit a reboot request for a worker machine in the specified server farm
|
1769
|
+
#
|
1770
|
+
# @param resource_group_name [String] Name of resource group
|
1771
|
+
# @param name [String] Name of server farm
|
1772
|
+
# @param worker_name [String] Name of worker machine, typically starts with RD
|
1773
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1774
|
+
# will be added to the HTTP request.
|
1775
|
+
#
|
1776
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1777
|
+
#
|
1778
|
+
def reboot_worker_for_server_farm_with_http_info(resource_group_name, name, worker_name, custom_headers = nil)
|
1779
|
+
reboot_worker_for_server_farm_async(resource_group_name, name, worker_name, custom_headers).value!
|
1780
|
+
end
|
1781
|
+
|
1782
|
+
#
|
1783
|
+
# Submit a reboot request for a worker machine in the specified server farm
|
1784
|
+
#
|
1785
|
+
# @param resource_group_name [String] Name of resource group
|
1786
|
+
# @param name [String] Name of server farm
|
1787
|
+
# @param worker_name [String] Name of worker machine, typically starts with RD
|
1788
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1789
|
+
# to the HTTP request.
|
1790
|
+
#
|
1791
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1792
|
+
#
|
1793
|
+
def reboot_worker_for_server_farm_async(resource_group_name, name, worker_name, custom_headers = nil)
|
1190
1794
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1191
1795
|
fail ArgumentError, 'name is nil' if name.nil?
|
1192
1796
|
fail ArgumentError, 'worker_name is nil' if worker_name.nil?
|
@@ -1197,14 +1801,17 @@ module Azure::ARM::Web
|
|
1197
1801
|
# Set Headers
|
1198
1802
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1199
1803
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1200
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/workers/{workerName}'
|
1804
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/workers/{workerName}/reboot'
|
1201
1805
|
options = {
|
1202
1806
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1203
1807
|
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'workerName' => worker_name,'subscriptionId' => @client.subscription_id},
|
1204
1808
|
query_params: {'api-version' => @client.api_version},
|
1205
1809
|
headers: request_headers.merge(custom_headers || {})
|
1206
1810
|
}
|
1207
|
-
|
1811
|
+
|
1812
|
+
request_url = @base_url || @client.base_url
|
1813
|
+
|
1814
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
1208
1815
|
promise = request.run_promise do |req|
|
1209
1816
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1210
1817
|
end
|
@@ -1235,13 +1842,47 @@ module Azure::ARM::Web
|
|
1235
1842
|
# @param soft_restart [Boolean] Soft restart applies the configuration
|
1236
1843
|
# settings and restarts the apps if necessary. Hard restart always restarts
|
1237
1844
|
# and reprovisions the apps
|
1238
|
-
# @param [Hash{String => String}]
|
1239
|
-
#
|
1845
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1846
|
+
# will be added to the HTTP request.
|
1240
1847
|
#
|
1241
|
-
# @return [
|
1242
|
-
# response.
|
1848
|
+
# @return [Object] operation results.
|
1243
1849
|
#
|
1244
1850
|
def restart_sites_for_server_farm(resource_group_name, name, soft_restart = nil, custom_headers = nil)
|
1851
|
+
response = restart_sites_for_server_farm_async(resource_group_name, name, soft_restart, custom_headers).value!
|
1852
|
+
response.body unless response.nil?
|
1853
|
+
end
|
1854
|
+
|
1855
|
+
#
|
1856
|
+
# Restarts web apps in a specified App Service Plan
|
1857
|
+
#
|
1858
|
+
# @param resource_group_name [String] Name of resource group
|
1859
|
+
# @param name [String] Name of App Service Plan
|
1860
|
+
# @param soft_restart [Boolean] Soft restart applies the configuration
|
1861
|
+
# settings and restarts the apps if necessary. Hard restart always restarts
|
1862
|
+
# and reprovisions the apps
|
1863
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1864
|
+
# will be added to the HTTP request.
|
1865
|
+
#
|
1866
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1867
|
+
#
|
1868
|
+
def restart_sites_for_server_farm_with_http_info(resource_group_name, name, soft_restart = nil, custom_headers = nil)
|
1869
|
+
restart_sites_for_server_farm_async(resource_group_name, name, soft_restart, custom_headers).value!
|
1870
|
+
end
|
1871
|
+
|
1872
|
+
#
|
1873
|
+
# Restarts web apps in a specified App Service Plan
|
1874
|
+
#
|
1875
|
+
# @param resource_group_name [String] Name of resource group
|
1876
|
+
# @param name [String] Name of App Service Plan
|
1877
|
+
# @param soft_restart [Boolean] Soft restart applies the configuration
|
1878
|
+
# settings and restarts the apps if necessary. Hard restart always restarts
|
1879
|
+
# and reprovisions the apps
|
1880
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1881
|
+
# to the HTTP request.
|
1882
|
+
#
|
1883
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1884
|
+
#
|
1885
|
+
def restart_sites_for_server_farm_async(resource_group_name, name, soft_restart = nil, custom_headers = nil)
|
1245
1886
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1246
1887
|
fail ArgumentError, 'name is nil' if name.nil?
|
1247
1888
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -1258,7 +1899,10 @@ module Azure::ARM::Web
|
|
1258
1899
|
query_params: {'softRestart' => soft_restart,'api-version' => @client.api_version},
|
1259
1900
|
headers: request_headers.merge(custom_headers || {})
|
1260
1901
|
}
|
1261
|
-
|
1902
|
+
|
1903
|
+
request_url = @base_url || @client.base_url
|
1904
|
+
|
1905
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
1262
1906
|
promise = request.run_promise do |req|
|
1263
1907
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1264
1908
|
end
|
@@ -1287,13 +1931,43 @@ module Azure::ARM::Web
|
|
1287
1931
|
# @param resource_group_name [String] Name of resource group
|
1288
1932
|
# @param name [String] Name of server farm
|
1289
1933
|
# @param operation_id [String] Id of Server farm operation">
|
1290
|
-
# @param [Hash{String => String}]
|
1291
|
-
#
|
1934
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1935
|
+
# will be added to the HTTP request.
|
1292
1936
|
#
|
1293
|
-
# @return [
|
1294
|
-
# response.
|
1937
|
+
# @return [ServerFarmWithRichSku] operation results.
|
1295
1938
|
#
|
1296
1939
|
def get_server_farm_operation(resource_group_name, name, operation_id, custom_headers = nil)
|
1940
|
+
response = get_server_farm_operation_async(resource_group_name, name, operation_id, custom_headers).value!
|
1941
|
+
response.body unless response.nil?
|
1942
|
+
end
|
1943
|
+
|
1944
|
+
#
|
1945
|
+
# Gets a server farm operation
|
1946
|
+
#
|
1947
|
+
# @param resource_group_name [String] Name of resource group
|
1948
|
+
# @param name [String] Name of server farm
|
1949
|
+
# @param operation_id [String] Id of Server farm operation">
|
1950
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1951
|
+
# will be added to the HTTP request.
|
1952
|
+
#
|
1953
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1954
|
+
#
|
1955
|
+
def get_server_farm_operation_with_http_info(resource_group_name, name, operation_id, custom_headers = nil)
|
1956
|
+
get_server_farm_operation_async(resource_group_name, name, operation_id, custom_headers).value!
|
1957
|
+
end
|
1958
|
+
|
1959
|
+
#
|
1960
|
+
# Gets a server farm operation
|
1961
|
+
#
|
1962
|
+
# @param resource_group_name [String] Name of resource group
|
1963
|
+
# @param name [String] Name of server farm
|
1964
|
+
# @param operation_id [String] Id of Server farm operation">
|
1965
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1966
|
+
# to the HTTP request.
|
1967
|
+
#
|
1968
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1969
|
+
#
|
1970
|
+
def get_server_farm_operation_async(resource_group_name, name, operation_id, custom_headers = nil)
|
1297
1971
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1298
1972
|
fail ArgumentError, 'name is nil' if name.nil?
|
1299
1973
|
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
@@ -1311,7 +1985,10 @@ module Azure::ARM::Web
|
|
1311
1985
|
query_params: {'api-version' => @client.api_version},
|
1312
1986
|
headers: request_headers.merge(custom_headers || {})
|
1313
1987
|
}
|
1314
|
-
|
1988
|
+
|
1989
|
+
request_url = @base_url || @client.base_url
|
1990
|
+
|
1991
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
1315
1992
|
promise = request.run_promise do |req|
|
1316
1993
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1317
1994
|
end
|
@@ -1351,13 +2028,41 @@ module Azure::ARM::Web
|
|
1351
2028
|
#
|
1352
2029
|
# @param next_page_link [String] The NextLink from the previous successful
|
1353
2030
|
# call to List operation.
|
1354
|
-
# @param [Hash{String => String}]
|
1355
|
-
#
|
2031
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2032
|
+
# will be added to the HTTP request.
|
1356
2033
|
#
|
1357
|
-
# @return [
|
1358
|
-
# response.
|
2034
|
+
# @return [SiteCollection] operation results.
|
1359
2035
|
#
|
1360
2036
|
def get_server_farm_sites_next(next_page_link, custom_headers = nil)
|
2037
|
+
response = get_server_farm_sites_next_async(next_page_link, custom_headers).value!
|
2038
|
+
response.body unless response.nil?
|
2039
|
+
end
|
2040
|
+
|
2041
|
+
#
|
2042
|
+
# Gets list of Apps associated with an App Service Plan
|
2043
|
+
#
|
2044
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
2045
|
+
# call to List operation.
|
2046
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2047
|
+
# will be added to the HTTP request.
|
2048
|
+
#
|
2049
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2050
|
+
#
|
2051
|
+
def get_server_farm_sites_next_with_http_info(next_page_link, custom_headers = nil)
|
2052
|
+
get_server_farm_sites_next_async(next_page_link, custom_headers).value!
|
2053
|
+
end
|
2054
|
+
|
2055
|
+
#
|
2056
|
+
# Gets list of Apps associated with an App Service Plan
|
2057
|
+
#
|
2058
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
2059
|
+
# call to List operation.
|
2060
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2061
|
+
# to the HTTP request.
|
2062
|
+
#
|
2063
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2064
|
+
#
|
2065
|
+
def get_server_farm_sites_next_async(next_page_link, custom_headers = nil)
|
1361
2066
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1362
2067
|
request_headers = {}
|
1363
2068
|
|
@@ -1370,7 +2075,10 @@ module Azure::ARM::Web
|
|
1370
2075
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1371
2076
|
headers: request_headers.merge(custom_headers || {})
|
1372
2077
|
}
|
1373
|
-
|
2078
|
+
|
2079
|
+
request_url = @base_url || @client.base_url
|
2080
|
+
|
2081
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
1374
2082
|
promise = request.run_promise do |req|
|
1375
2083
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1376
2084
|
end
|