Class: Azure::ARM::Web::HostingEnvironments
- Inherits:
-
Object
- Object
- Azure::ARM::Web::HostingEnvironments
- Includes:
- Models, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_web/hosting_environments.rb
Overview
Use these APIs to manage Azure Websites resources through the Azure Resource Manager. All task operations conform to the HTTP/1.1 protocol specification and each operation returns an x-ms-request-id header that can be used to obtain information about the request. You must make sure that requests made to these resources are secure. For more information, see <a href=“msdn.microsoft.com/en-us/library/azure/dn790557.aspx”>Authenticating Azure Resource Manager requests.</a>
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Reference to the WebSiteManagementClient.
Instance Method Summary collapse
-
#begin_create_or_update_hosting_environment(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) ⇒ HostingEnvironment
Create or update a hostingEnvironment (App Service Environment).
-
#begin_create_or_update_hosting_environment_async(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) ⇒ Concurrent::Promise
Create or update a hostingEnvironment (App Service Environment).
-
#begin_create_or_update_hosting_environment_with_http_info(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a hostingEnvironment (App Service Environment).
-
#begin_create_or_update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) ⇒ WorkerPool
Create or update a multiRole pool.
-
#begin_create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) ⇒ Concurrent::Promise
Create or update a multiRole pool.
-
#begin_create_or_update_multi_role_pool_with_http_info(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a multiRole pool.
-
#begin_create_or_update_worker_pool(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) ⇒ WorkerPool
Create or update a worker pool.
-
#begin_create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) ⇒ Concurrent::Promise
Create or update a worker pool.
-
#begin_create_or_update_worker_pool_with_http_info(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a worker pool.
-
#begin_delete_hosting_environment(resource_group_name, name, force_delete = nil, custom_headers = nil) ⇒ Object
Delete a hostingEnvironment (App Service Environment).
-
#begin_delete_hosting_environment_async(resource_group_name, name, force_delete = nil, custom_headers = nil) ⇒ Concurrent::Promise
Delete a hostingEnvironment (App Service Environment).
-
#begin_delete_hosting_environment_with_http_info(resource_group_name, name, force_delete = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a hostingEnvironment (App Service Environment).
-
#begin_resume_hosting_environment(resource_group_name, name, custom_headers = nil) ⇒ SiteCollection
Resumes the hostingEnvironment.
-
#begin_resume_hosting_environment_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Resumes the hostingEnvironment.
-
#begin_resume_hosting_environment_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Resumes the hostingEnvironment.
-
#begin_suspend_hosting_environment(resource_group_name, name, custom_headers = nil) ⇒ SiteCollection
Suspends the hostingEnvironment.
-
#begin_suspend_hosting_environment_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Suspends the hostingEnvironment.
-
#begin_suspend_hosting_environment_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Suspends the hostingEnvironment.
-
#create_or_update_hosting_environment(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) ⇒ HostingEnvironment
Create or update a hostingEnvironment (App Service Environment).
-
#create_or_update_hosting_environment_async(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) ⇒ Concurrent::Promise
hostingEnvironment (App Service Environment) will be added to the HTTP request.
-
#create_or_update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) ⇒ WorkerPool
Create or update a multiRole pool.
-
#create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
-
#create_or_update_worker_pool(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) ⇒ WorkerPool
Create or update a worker pool.
-
#create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
-
#delete_hosting_environment(resource_group_name, name, force_delete = nil, custom_headers = nil) ⇒ Object
Delete a hostingEnvironment (App Service Environment).
-
#delete_hosting_environment_async(resource_group_name, name, force_delete = nil, custom_headers = nil) ⇒ Concurrent::Promise
Service Environment) contains resources will be added to the HTTP request.
-
#get_hosting_environment(resource_group_name, name, custom_headers = nil) ⇒ HostingEnvironment
Get properties of hostingEnvironment (App Service Environment).
-
#get_hosting_environment_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get properties of hostingEnvironment (App Service Environment).
-
#get_hosting_environment_capacities(resource_group_name, name, custom_headers = nil) ⇒ StampCapacityCollection
Get used, available, and total worker capacity for hostingEnvironment (App Service Environment).
-
#get_hosting_environment_capacities_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get used, available, and total worker capacity for hostingEnvironment (App Service Environment).
-
#get_hosting_environment_capacities_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get used, available, and total worker capacity for hostingEnvironment (App Service Environment).
-
#get_hosting_environment_diagnostics(resource_group_name, name, custom_headers = nil) ⇒ Array
Get diagnostic information for hostingEnvironment (App Service Environment).
-
#get_hosting_environment_diagnostics_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get diagnostic information for hostingEnvironment (App Service Environment).
-
#get_hosting_environment_diagnostics_item(resource_group_name, name, diagnostics_name, custom_headers = nil) ⇒ HostingEnvironmentDiagnostics
Get diagnostic information for hostingEnvironment (App Service Environment).
-
#get_hosting_environment_diagnostics_item_async(resource_group_name, name, diagnostics_name, custom_headers = nil) ⇒ Concurrent::Promise
Get diagnostic information for hostingEnvironment (App Service Environment).
-
#get_hosting_environment_diagnostics_item_with_http_info(resource_group_name, name, diagnostics_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get diagnostic information for hostingEnvironment (App Service Environment).
-
#get_hosting_environment_diagnostics_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get diagnostic information for hostingEnvironment (App Service Environment).
-
#get_hosting_environment_metric_definitions(resource_group_name, name, custom_headers = nil) ⇒ MetricDefinition
Get global metric definitions of hostingEnvironment (App Service Environment).
-
#get_hosting_environment_metric_definitions_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get global metric definitions of hostingEnvironment (App Service Environment).
-
#get_hosting_environment_metric_definitions_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get global metric definitions of hostingEnvironment (App Service Environment).
-
#get_hosting_environment_metrics(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) ⇒ ResourceMetricCollection
Get global metrics of hostingEnvironment (App Service Environment).
-
#get_hosting_environment_metrics_async(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) ⇒ Concurrent::Promise
Get global metrics of hostingEnvironment (App Service Environment).
-
#get_hosting_environment_metrics_with_http_info(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get global metrics of hostingEnvironment (App Service Environment).
-
#get_hosting_environment_multi_role_metric_definitions(resource_group_name, name, custom_headers = nil) ⇒ MetricDefinitionCollection
Get metric definitions for a multiRole pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_multi_role_metric_definitions_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get metric definitions for a multiRole pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_multi_role_metric_definitions_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a multiRole pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_multi_role_metrics(resource_group_name, name, start_time = nil, end_time = nil, time_grain = nil, details = nil, filter = nil, custom_headers = nil) ⇒ ResourceMetricCollection
Get metrics for a multiRole pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_multi_role_metrics_async(resource_group_name, name, start_time = nil, end_time = nil, time_grain = nil, details = nil, filter = nil, custom_headers = nil) ⇒ Concurrent::Promise
Get metrics for a multiRole pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_multi_role_metrics_with_http_info(resource_group_name, name, start_time = nil, end_time = nil, time_grain = nil, details = nil, filter = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get metrics for a multiRole pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_multi_role_usages(resource_group_name, name, custom_headers = nil) ⇒ UsageCollection
Get usages for a multiRole pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_multi_role_usages_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get usages for a multiRole pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_multi_role_usages_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get usages for a multiRole pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_operation(resource_group_name, name, operation_id, custom_headers = nil) ⇒ Object
Get status of an operation on a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_operation_async(resource_group_name, name, operation_id, custom_headers = nil) ⇒ Concurrent::Promise
Get status of an operation on a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_operation_with_http_info(resource_group_name, name, operation_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get status of an operation on a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_operations(resource_group_name, name, custom_headers = nil) ⇒ Object
List all currently running operations on the hostingEnvironment (App Service Environment).
-
#get_hosting_environment_operations_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
List all currently running operations on the hostingEnvironment (App Service Environment).
-
#get_hosting_environment_operations_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
List all currently running operations on the hostingEnvironment (App Service Environment).
-
#get_hosting_environment_server_farms(resource_group_name, name, custom_headers = nil) ⇒ ServerFarmCollection
Get all serverfarms (App Service Plans) on the hostingEnvironment (App Service Environment).
-
#get_hosting_environment_server_farms_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get all serverfarms (App Service Plans) on the hostingEnvironment (App Service Environment).
-
#get_hosting_environment_server_farms_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get all serverfarms (App Service Plans) on the hostingEnvironment (App Service Environment).
-
#get_hosting_environment_sites(resource_group_name, name, properties_to_include = nil, custom_headers = nil) ⇒ SiteCollection
Get all sites on the hostingEnvironment (App Service Environment).
-
#get_hosting_environment_sites_async(resource_group_name, name, properties_to_include = nil, custom_headers = nil) ⇒ Concurrent::Promise
Get all sites on the hostingEnvironment (App Service Environment).
-
#get_hosting_environment_sites_with_http_info(resource_group_name, name, properties_to_include = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get all sites on the hostingEnvironment (App Service Environment).
-
#get_hosting_environment_usages(resource_group_name, name, filter = nil, custom_headers = nil) ⇒ CsmUsageQuotaCollection
Get global usages of hostingEnvironment (App Service Environment).
-
#get_hosting_environment_usages_async(resource_group_name, name, filter = nil, custom_headers = nil) ⇒ Concurrent::Promise
Get global usages of hostingEnvironment (App Service Environment).
-
#get_hosting_environment_usages_with_http_info(resource_group_name, name, filter = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get global usages of hostingEnvironment (App Service Environment).
-
#get_hosting_environment_vips(resource_group_name, name, custom_headers = nil) ⇒ AddressResponse
Get IP addresses assigned to the hostingEnvironment (App Service Environment).
-
#get_hosting_environment_vips_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get IP addresses assigned to the hostingEnvironment (App Service Environment).
-
#get_hosting_environment_vips_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get IP addresses assigned to the hostingEnvironment (App Service Environment).
-
#get_hosting_environment_web_hosting_plans(resource_group_name, name, custom_headers = nil) ⇒ ServerFarmCollection
Get all serverfarms (App Service Plans) on the hostingEnvironment (App Service Environment).
-
#get_hosting_environment_web_hosting_plans_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get all serverfarms (App Service Plans) on the hostingEnvironment (App Service Environment).
-
#get_hosting_environment_web_hosting_plans_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get all serverfarms (App Service Plans) on the hostingEnvironment (App Service Environment).
-
#get_hosting_environment_web_worker_metric_definitions(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ MetricDefinitionCollection
Get metric definitions for a worker pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_web_worker_metric_definitions_async(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ Concurrent::Promise
Get metric definitions for a worker pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_web_worker_metric_definitions_with_http_info(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a worker pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_web_worker_metrics(resource_group_name, name, worker_pool_name, details = nil, filter = nil, custom_headers = nil) ⇒ ResourceMetricCollection
Get metrics for a worker pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_web_worker_metrics_async(resource_group_name, name, worker_pool_name, details = nil, filter = nil, custom_headers = nil) ⇒ Concurrent::Promise
Get metrics for a worker pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_web_worker_metrics_with_http_info(resource_group_name, name, worker_pool_name, details = nil, filter = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get metrics for a worker pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_web_worker_usages(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ UsageCollection
Get usages for a worker pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ Concurrent::Promise
Get usages for a worker pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_web_worker_usages_with_http_info(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get usages for a worker pool of a hostingEnvironment (App Service Environment).
-
#get_hosting_environment_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get properties of hostingEnvironment (App Service Environment).
-
#get_hosting_environments(resource_group_name, custom_headers = nil) ⇒ HostingEnvironmentCollection
Get all hostingEnvironments (App Service Environments) in a resource group.
-
#get_hosting_environments_async(resource_group_name, custom_headers = nil) ⇒ Concurrent::Promise
Get all hostingEnvironments (App Service Environments) in a resource group.
-
#get_hosting_environments_with_http_info(resource_group_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get all hostingEnvironments (App Service Environments) in a resource group.
-
#get_multi_role_pool(resource_group_name, name, custom_headers = nil) ⇒ WorkerPool
Get properties of a multiRool pool.
-
#get_multi_role_pool_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get properties of a multiRool pool.
-
#get_multi_role_pool_instance_metric_definitions(resource_group_name, name, instance, custom_headers = nil) ⇒ Object
Get metric definitions for a specific instance of a multiRole pool of a hostingEnvironment (App Service Environment).
-
#get_multi_role_pool_instance_metric_definitions_async(resource_group_name, name, instance, custom_headers = nil) ⇒ Concurrent::Promise
Get metric definitions for a specific instance of a multiRole pool of a hostingEnvironment (App Service Environment).
-
#get_multi_role_pool_instance_metric_definitions_with_http_info(resource_group_name, name, instance, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a specific instance of a multiRole pool of a hostingEnvironment (App Service Environment).
-
#get_multi_role_pool_instance_metrics(resource_group_name, name, instance, details = nil, custom_headers = nil) ⇒ Object
Get metrics for a specific instance of a multiRole pool of a hostingEnvironment (App Service Environment).
-
#get_multi_role_pool_instance_metrics_async(resource_group_name, name, instance, details = nil, custom_headers = nil) ⇒ Concurrent::Promise
Get metrics for a specific instance of a multiRole pool of a hostingEnvironment (App Service Environment).
-
#get_multi_role_pool_instance_metrics_with_http_info(resource_group_name, name, instance, details = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get metrics for a specific instance of a multiRole pool of a hostingEnvironment (App Service Environment).
-
#get_multi_role_pool_skus(resource_group_name, name, custom_headers = nil) ⇒ SkuInfoCollection
Get available skus for scaling a multiRole pool.
-
#get_multi_role_pool_skus_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get available skus for scaling a multiRole pool.
-
#get_multi_role_pool_skus_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get available skus for scaling a multiRole pool.
-
#get_multi_role_pool_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get properties of a multiRool pool.
-
#get_multi_role_pools(resource_group_name, name, custom_headers = nil) ⇒ WorkerPoolCollection
Get all multi role pools.
-
#get_multi_role_pools_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get all multi role pools.
-
#get_multi_role_pools_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get all multi role pools.
-
#get_worker_pool(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ WorkerPool
Get properties of a worker pool.
-
#get_worker_pool_async(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ Concurrent::Promise
Get properties of a worker pool.
-
#get_worker_pool_instance_metric_definitions(resource_group_name, name, worker_pool_name, instance, custom_headers = nil) ⇒ Object
Get metric definitions for a specific instance of a worker pool of a hostingEnvironment (App Service Environment).
-
#get_worker_pool_instance_metric_definitions_async(resource_group_name, name, worker_pool_name, instance, custom_headers = nil) ⇒ Concurrent::Promise
Get metric definitions for a specific instance of a worker pool of a hostingEnvironment (App Service Environment).
-
#get_worker_pool_instance_metric_definitions_with_http_info(resource_group_name, name, worker_pool_name, instance, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a specific instance of a worker pool of a hostingEnvironment (App Service Environment).
-
#get_worker_pool_instance_metrics(resource_group_name, name, worker_pool_name, instance, details = nil, filter = nil, custom_headers = nil) ⇒ Object
Get metrics for a specific instance of a worker pool of a hostingEnvironment (App Service Environment).
-
#get_worker_pool_instance_metrics_async(resource_group_name, name, worker_pool_name, instance, details = nil, filter = nil, custom_headers = nil) ⇒ Concurrent::Promise
Get metrics for a specific instance of a worker pool of a hostingEnvironment (App Service Environment).
-
#get_worker_pool_instance_metrics_with_http_info(resource_group_name, name, worker_pool_name, instance, details = nil, filter = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get metrics for a specific instance of a worker pool of a hostingEnvironment (App Service Environment).
-
#get_worker_pool_skus(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ SkuInfoCollection
Get available skus for scaling a worker pool.
-
#get_worker_pool_skus_async(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ Concurrent::Promise
Get available skus for scaling a worker pool.
-
#get_worker_pool_skus_with_http_info(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get available skus for scaling a worker pool.
-
#get_worker_pool_with_http_info(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get properties of a worker pool.
-
#get_worker_pools(resource_group_name, name, custom_headers = nil) ⇒ WorkerPoolCollection
Get all worker pools.
-
#get_worker_pools_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get all worker pools.
-
#get_worker_pools_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get all worker pools.
-
#initialize(client) ⇒ HostingEnvironments
constructor
Creates and initializes a new instance of the HostingEnvironments class.
-
#reboot_hosting_environment(resource_group_name, name, custom_headers = nil) ⇒ Object
Reboots all machines in a hostingEnvironment (App Service Environment).
-
#reboot_hosting_environment_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Reboots all machines in a hostingEnvironment (App Service Environment).
-
#reboot_hosting_environment_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Reboots all machines in a hostingEnvironment (App Service Environment).
-
#resume_hosting_environment(resource_group_name, name, custom_headers = nil) ⇒ SiteCollection
Resumes the hostingEnvironment.
-
#resume_hosting_environment_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
-
#suspend_hosting_environment(resource_group_name, name, custom_headers = nil) ⇒ SiteCollection
Suspends the hostingEnvironment.
-
#suspend_hosting_environment_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
Constructor Details
#initialize(client) ⇒ HostingEnvironments
Creates and initializes a new instance of the HostingEnvironments class.
25 26 27 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 25 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns reference to the WebSiteManagementClient.
30 31 32 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 30 def client @client end |
Instance Method Details
#begin_create_or_update_hosting_environment(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) ⇒ HostingEnvironment
Create or update a hostingEnvironment (App Service Environment).
hostingEnvironment (App Service Environment) will be added to the HTTP request.
184 185 186 187 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 184 def begin_create_or_update_hosting_environment(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) response = begin_create_or_update_hosting_environment_async(resource_group_name, name, hosting_environment_envelope, custom_headers).value! response.body unless response.nil? end |
#begin_create_or_update_hosting_environment_async(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) ⇒ Concurrent::Promise
Create or update a hostingEnvironment (App Service Environment).
hostingEnvironment (App Service Environment) to the HTTP request.
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 217 def begin_create_or_update_hosting_environment_async(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'hosting_environment_envelope is nil' if hosting_environment_envelope.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request request_mapper = HostingEnvironment.mapper() request_content = @client.serialize(request_mapper, hosting_environment_envelope, 'hosting_environment_envelope') request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 || status_code == 400 || status_code == 404 || status_code == 409 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = HostingEnvironment.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end # Deserialize Response if status_code == 202 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = HostingEnvironment.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#begin_create_or_update_hosting_environment_with_http_info(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a hostingEnvironment (App Service Environment).
hostingEnvironment (App Service Environment) will be added to the HTTP request.
201 202 203 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 201 def begin_create_or_update_hosting_environment_with_http_info(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) begin_create_or_update_hosting_environment_async(resource_group_name, name, hosting_environment_envelope, custom_headers).value! end |
#begin_create_or_update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) ⇒ WorkerPool
Create or update a multiRole pool.
will be added to the HTTP request.
2677 2678 2679 2680 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2677 def begin_create_or_update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) response = begin_create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers).value! response.body unless response.nil? end |
#begin_create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) ⇒ Concurrent::Promise
Create or update a multiRole pool.
to the HTTP request.
2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2708 def begin_create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'multi_role_pool_envelope is nil' if multi_role_pool_envelope.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request request_mapper = WorkerPool.mapper() request_content = @client.serialize(request_mapper, multi_role_pool_envelope, 'multi_role_pool_envelope') request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 || status_code == 400 || status_code == 404 || status_code == 409 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = WorkerPool.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end # Deserialize Response if status_code == 202 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = WorkerPool.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#begin_create_or_update_multi_role_pool_with_http_info(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a multiRole pool.
will be added to the HTTP request.
2693 2694 2695 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2693 def begin_create_or_update_multi_role_pool_with_http_info(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) begin_create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers).value! end |
#begin_create_or_update_worker_pool(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) ⇒ WorkerPool
Create or update a worker pool.
will be added to the HTTP request.
3127 3128 3129 3130 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3127 def begin_create_or_update_worker_pool(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) response = begin_create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers).value! response.body unless response.nil? end |
#begin_create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) ⇒ Concurrent::Promise
Create or update a worker pool.
to the HTTP request.
3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3160 def begin_create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'worker_pool_name is nil' if worker_pool_name.nil? fail ArgumentError, 'worker_pool_envelope is nil' if worker_pool_envelope.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request request_mapper = WorkerPool.mapper() request_content = @client.serialize(request_mapper, worker_pool_envelope, 'worker_pool_envelope') request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'workerPoolName' => worker_pool_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 || status_code == 400 || status_code == 404 || status_code == 409 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = WorkerPool.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end # Deserialize Response if status_code == 202 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = WorkerPool.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#begin_create_or_update_worker_pool_with_http_info(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a worker pool.
will be added to the HTTP request.
3144 3145 3146 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3144 def begin_create_or_update_worker_pool_with_http_info(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) begin_create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers).value! end |
#begin_delete_hosting_environment(resource_group_name, name, force_delete = nil, custom_headers = nil) ⇒ Object
Delete a hostingEnvironment (App Service Environment).
Service Environment) contains resources will be added to the HTTP request.
356 357 358 359 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 356 def begin_delete_hosting_environment(resource_group_name, name, force_delete = nil, custom_headers = nil) response = begin_delete_hosting_environment_async(resource_group_name, name, force_delete, custom_headers).value! response.body unless response.nil? end |
#begin_delete_hosting_environment_async(resource_group_name, name, force_delete = nil, custom_headers = nil) ⇒ Concurrent::Promise
Delete a hostingEnvironment (App Service Environment).
Service Environment) contains resources to the HTTP request.
389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 389 def begin_delete_hosting_environment_async(resource_group_name, name, force_delete = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'forceDelete' => force_delete,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 || status_code == 400 || status_code == 404 || status_code == 409 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#begin_delete_hosting_environment_with_http_info(resource_group_name, name, force_delete = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a hostingEnvironment (App Service Environment).
Service Environment) contains resources will be added to the HTTP request.
373 374 375 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 373 def begin_delete_hosting_environment_with_http_info(resource_group_name, name, force_delete = nil, custom_headers = nil) begin_delete_hosting_environment_async(resource_group_name, name, force_delete, custom_headers).value! end |
#begin_resume_hosting_environment(resource_group_name, name, custom_headers = nil) ⇒ SiteCollection
Resumes the hostingEnvironment.
will be added to the HTTP request.
3925 3926 3927 3928 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3925 def begin_resume_hosting_environment(resource_group_name, name, custom_headers = nil) first_page = begin_resume_hosting_environment_as_lazy(resource_group_name, name, custom_headers) first_page.get_all_items end |
#begin_resume_hosting_environment_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Resumes the hostingEnvironment.
to the HTTP request.
3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3954 def begin_resume_hosting_environment_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/resume' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = SiteCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end # Deserialize Response if status_code == 202 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = SiteCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#begin_resume_hosting_environment_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Resumes the hostingEnvironment.
will be added to the HTTP request.
3940 3941 3942 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3940 def begin_resume_hosting_environment_with_http_info(resource_group_name, name, custom_headers = nil) begin_resume_hosting_environment_async(resource_group_name, name, custom_headers).value! end |
#begin_suspend_hosting_environment(resource_group_name, name, custom_headers = nil) ⇒ SiteCollection
Suspends the hostingEnvironment.
will be added to the HTTP request.
3779 3780 3781 3782 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3779 def begin_suspend_hosting_environment(resource_group_name, name, custom_headers = nil) first_page = begin_suspend_hosting_environment_as_lazy(resource_group_name, name, custom_headers) first_page.get_all_items end |
#begin_suspend_hosting_environment_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Suspends the hostingEnvironment.
to the HTTP request.
3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3808 def begin_suspend_hosting_environment_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/suspend' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = SiteCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end # Deserialize Response if status_code == 202 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = SiteCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#begin_suspend_hosting_environment_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Suspends the hostingEnvironment.
will be added to the HTTP request.
3794 3795 3796 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3794 def begin_suspend_hosting_environment_with_http_info(resource_group_name, name, custom_headers = nil) begin_suspend_hosting_environment_async(resource_group_name, name, custom_headers).value! end |
#create_or_update_hosting_environment(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) ⇒ HostingEnvironment
Create or update a hostingEnvironment (App Service Environment).
hostingEnvironment (App Service Environment) will be added to the HTTP request.
138 139 140 141 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 138 def create_or_update_hosting_environment(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) response = create_or_update_hosting_environment_async(resource_group_name, name, hosting_environment_envelope, custom_headers).value! response.body unless response.nil? end |
#create_or_update_hosting_environment_async(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) ⇒ Concurrent::Promise
hostingEnvironment (App Service Environment) will be added to the HTTP request.
response.
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 154 def create_or_update_hosting_environment_async(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) # Send request promise = begin_create_or_update_hosting_environment_async(resource_group_name, name, hosting_environment_envelope, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = HostingEnvironment.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response') end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#create_or_update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) ⇒ WorkerPool
Create or update a multiRole pool.
will be added to the HTTP request.
2633 2634 2635 2636 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2633 def create_or_update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) response = create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers).value! response.body unless response.nil? end |
#create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
response.
2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2648 def create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) # Send request promise = begin_create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = WorkerPool.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response') end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#create_or_update_worker_pool(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) ⇒ WorkerPool
Create or update a worker pool.
will be added to the HTTP request.
3081 3082 3083 3084 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3081 def create_or_update_worker_pool(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) response = create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers).value! response.body unless response.nil? end |
#create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
response.
3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3097 def create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) # Send request promise = begin_create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = WorkerPool.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response') end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#delete_hosting_environment(resource_group_name, name, force_delete = nil, custom_headers = nil) ⇒ Object
Delete a hostingEnvironment (App Service Environment).
Service Environment) contains resources will be added to the HTTP request.
304 305 306 307 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 304 def delete_hosting_environment(resource_group_name, name, force_delete = nil, custom_headers = nil) response = delete_hosting_environment_async(resource_group_name, name, force_delete, custom_headers).value! response.body unless response.nil? end |
#delete_hosting_environment_async(resource_group_name, name, force_delete = nil, custom_headers = nil) ⇒ Concurrent::Promise
Service Environment) contains resources will be added to the HTTP request.
response.
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 320 def delete_hosting_environment_async(resource_group_name, name, force_delete = nil, custom_headers = nil) # Send request promise = begin_delete_hosting_environment_async(resource_group_name, name, force_delete, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = { required: false, serialized_name: 'parsed_response', type: { name: 'Object' } } parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response') end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#get_hosting_environment(resource_group_name, name, custom_headers = nil) ⇒ HostingEnvironment
Get properties of hostingEnvironment (App Service Environment).
will be added to the HTTP request.
42 43 44 45 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 42 def get_hosting_environment(resource_group_name, name, custom_headers = nil) response = get_hosting_environment_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get properties of hostingEnvironment (App Service Environment).
to the HTTP request.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 71 def get_hosting_environment_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = HostingEnvironment.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_capacities(resource_group_name, name, custom_headers = nil) ⇒ StampCapacityCollection
Get used, available, and total worker capacity for hostingEnvironment (App Service Environment).
will be added to the HTTP request.
651 652 653 654 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 651 def get_hosting_environment_capacities(resource_group_name, name, custom_headers = nil) response = get_hosting_environment_capacities_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_capacities_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get used, available, and total worker capacity for hostingEnvironment (App Service Environment).
to the HTTP request.
682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 682 def get_hosting_environment_capacities_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/compute' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = StampCapacityCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_capacities_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get used, available, and total worker capacity for hostingEnvironment (App Service Environment).
will be added to the HTTP request.
667 668 669 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 667 def get_hosting_environment_capacities_with_http_info(resource_group_name, name, custom_headers = nil) get_hosting_environment_capacities_async(resource_group_name, name, custom_headers).value! end |
#get_hosting_environment_diagnostics(resource_group_name, name, custom_headers = nil) ⇒ Array
Get diagnostic information for hostingEnvironment (App Service Environment).
will be added to the HTTP request.
444 445 446 447 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 444 def get_hosting_environment_diagnostics(resource_group_name, name, custom_headers = nil) response = get_hosting_environment_diagnostics_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_diagnostics_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get diagnostic information for hostingEnvironment (App Service Environment).
to the HTTP request.
473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 473 def get_hosting_environment_diagnostics_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/diagnostics' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { required: false, serialized_name: 'parsed_response', type: { name: 'Sequence', element: { required: false, serialized_name: 'HostingEnvironmentDiagnosticsElementType', type: { name: 'Composite', class_name: 'HostingEnvironmentDiagnostics' } } } } result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_diagnostics_item(resource_group_name, name, diagnostics_name, custom_headers = nil) ⇒ HostingEnvironmentDiagnostics
Get diagnostic information for hostingEnvironment (App Service Environment).
will be added to the HTTP request.
553 554 555 556 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 553 def get_hosting_environment_diagnostics_item(resource_group_name, name, diagnostics_name, custom_headers = nil) response = get_hosting_environment_diagnostics_item_async(resource_group_name, name, diagnostics_name, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_diagnostics_item_async(resource_group_name, name, diagnostics_name, custom_headers = nil) ⇒ Concurrent::Promise
Get diagnostic information for hostingEnvironment (App Service Environment).
to the HTTP request.
584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 584 def get_hosting_environment_diagnostics_item_async(resource_group_name, name, diagnostics_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'diagnostics_name is nil' if diagnostics_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/diagnostics/{diagnosticsName}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'diagnosticsName' => diagnostics_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = HostingEnvironmentDiagnostics.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_diagnostics_item_with_http_info(resource_group_name, name, diagnostics_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get diagnostic information for hostingEnvironment (App Service Environment).
will be added to the HTTP request.
569 570 571 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 569 def get_hosting_environment_diagnostics_item_with_http_info(resource_group_name, name, diagnostics_name, custom_headers = nil) get_hosting_environment_diagnostics_item_async(resource_group_name, name, diagnostics_name, custom_headers).value! end |
#get_hosting_environment_diagnostics_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get diagnostic information for hostingEnvironment (App Service Environment).
will be added to the HTTP request.
459 460 461 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 459 def get_hosting_environment_diagnostics_with_http_info(resource_group_name, name, custom_headers = nil) get_hosting_environment_diagnostics_async(resource_group_name, name, custom_headers).value! end |
#get_hosting_environment_metric_definitions(resource_group_name, name, custom_headers = nil) ⇒ MetricDefinition
Get global metric definitions of hostingEnvironment (App Service Environment).
will be added to the HTTP request.
1306 1307 1308 1309 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1306 def get_hosting_environment_metric_definitions(resource_group_name, name, custom_headers = nil) response = get_hosting_environment_metric_definitions_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_metric_definitions_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get global metric definitions of hostingEnvironment (App Service Environment).
to the HTTP request.
1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1337 def get_hosting_environment_metric_definitions_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/metricdefinitions' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = MetricDefinition.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_metric_definitions_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get global metric definitions of hostingEnvironment (App Service Environment).
will be added to the HTTP request.
1322 1323 1324 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1322 def get_hosting_environment_metric_definitions_with_http_info(resource_group_name, name, custom_headers = nil) get_hosting_environment_metric_definitions_async(resource_group_name, name, custom_headers).value! end |
#get_hosting_environment_metrics(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) ⇒ ResourceMetricCollection
Get global metrics of hostingEnvironment (App Service Environment).
Filter conforms to odata syntax. Example: $filter=(name.value eq ‘Metric1’ or name.value eq ‘Metric2’) and startTime eq ‘2014-01-01T00:00:00Z’ and endTime eq ‘2014-12-31T23:59:59Z’ and timeGrain eq duration’‘. will be added to the HTTP request.
1199 1200 1201 1202 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1199 def get_hosting_environment_metrics(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) response = get_hosting_environment_metrics_async(resource_group_name, name, details, filter, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_metrics_async(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) ⇒ Concurrent::Promise
Get global metrics of hostingEnvironment (App Service Environment).
Filter conforms to odata syntax. Example: $filter=(name.value eq ‘Metric1’ or name.value eq ‘Metric2’) and startTime eq ‘2014-01-01T00:00:00Z’ and endTime eq ‘2014-12-31T23:59:59Z’ and timeGrain eq duration’‘. to the HTTP request.
1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1240 def get_hosting_environment_metrics_async(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/metrics' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'details' => details,'$filter' => filter,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = ResourceMetricCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_metrics_with_http_info(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get global metrics of hostingEnvironment (App Service Environment).
Filter conforms to odata syntax. Example: $filter=(name.value eq ‘Metric1’ or name.value eq ‘Metric2’) and startTime eq ‘2014-01-01T00:00:00Z’ and endTime eq ‘2014-12-31T23:59:59Z’ and timeGrain eq duration’‘. will be added to the HTTP request.
1220 1221 1222 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1220 def get_hosting_environment_metrics_with_http_info(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) get_hosting_environment_metrics_async(resource_group_name, name, details, filter, custom_headers).value! end |
#get_hosting_environment_multi_role_metric_definitions(resource_group_name, name, custom_headers = nil) ⇒ MetricDefinitionCollection
Get metric definitions for a multiRole pool of a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
1755 1756 1757 1758 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1755 def get_hosting_environment_multi_role_metric_definitions(resource_group_name, name, custom_headers = nil) response = get_hosting_environment_multi_role_metric_definitions_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_multi_role_metric_definitions_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get metric definitions for a multiRole pool of a hostingEnvironment (App Service Environment).
to the HTTP request.
1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1786 def get_hosting_environment_multi_role_metric_definitions_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/metricdefinitions' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = MetricDefinitionCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_multi_role_metric_definitions_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a multiRole pool of a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
1771 1772 1773 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1771 def get_hosting_environment_multi_role_metric_definitions_with_http_info(resource_group_name, name, custom_headers = nil) get_hosting_environment_multi_role_metric_definitions_async(resource_group_name, name, custom_headers).value! end |
#get_hosting_environment_multi_role_metrics(resource_group_name, name, start_time = nil, end_time = nil, time_grain = nil, details = nil, filter = nil, custom_headers = nil) ⇒ ResourceMetricCollection
Get metrics for a multiRole pool of a hostingEnvironment (App Service Environment).
Filter conforms to odata syntax. Example: $filter=(name.value eq ‘Metric1’ or name.value eq ‘Metric2’) and startTime eq ‘2014-01-01T00:00:00Z’ and endTime eq ‘2014-12-31T23:59:59Z’ and timeGrain eq duration’‘. will be added to the HTTP request.
1521 1522 1523 1524 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1521 def get_hosting_environment_multi_role_metrics(resource_group_name, name, start_time = nil, end_time = nil, time_grain = nil, details = nil, filter = nil, custom_headers = nil) response = get_hosting_environment_multi_role_metrics_async(resource_group_name, name, start_time, end_time, time_grain, details, filter, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_multi_role_metrics_async(resource_group_name, name, start_time = nil, end_time = nil, time_grain = nil, details = nil, filter = nil, custom_headers = nil) ⇒ Concurrent::Promise
Get metrics for a multiRole pool of a hostingEnvironment (App Service Environment).
Filter conforms to odata syntax. Example: $filter=(name.value eq ‘Metric1’ or name.value eq ‘Metric2’) and startTime eq ‘2014-01-01T00:00:00Z’ and endTime eq ‘2014-12-31T23:59:59Z’ and timeGrain eq duration’‘. to the HTTP request.
1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1570 def get_hosting_environment_multi_role_metrics_async(resource_group_name, name, start_time = nil, end_time = nil, time_grain = nil, details = nil, filter = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/metrics' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'startTime' => start_time,'endTime' => end_time,'timeGrain' => time_grain,'details' => details,'$filter' => filter,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = ResourceMetricCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_multi_role_metrics_with_http_info(resource_group_name, name, start_time = nil, end_time = nil, time_grain = nil, details = nil, filter = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get metrics for a multiRole pool of a hostingEnvironment (App Service Environment).
Filter conforms to odata syntax. Example: $filter=(name.value eq ‘Metric1’ or name.value eq ‘Metric2’) and startTime eq ‘2014-01-01T00:00:00Z’ and endTime eq ‘2014-12-31T23:59:59Z’ and timeGrain eq duration’‘. will be added to the HTTP request.
1546 1547 1548 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1546 def get_hosting_environment_multi_role_metrics_with_http_info(resource_group_name, name, start_time = nil, end_time = nil, time_grain = nil, details = nil, filter = nil, custom_headers = nil) get_hosting_environment_multi_role_metrics_async(resource_group_name, name, start_time, end_time, time_grain, details, filter, custom_headers).value! end |
#get_hosting_environment_multi_role_usages(resource_group_name, name, custom_headers = nil) ⇒ UsageCollection
Get usages for a multiRole pool of a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
1953 1954 1955 1956 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1953 def get_hosting_environment_multi_role_usages(resource_group_name, name, custom_headers = nil) response = get_hosting_environment_multi_role_usages_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_multi_role_usages_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get usages for a multiRole pool of a hostingEnvironment (App Service Environment).
to the HTTP request.
1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1984 def get_hosting_environment_multi_role_usages_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/usages' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = UsageCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_multi_role_usages_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get usages for a multiRole pool of a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
1969 1970 1971 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1969 def get_hosting_environment_multi_role_usages_with_http_info(resource_group_name, name, custom_headers = nil) get_hosting_environment_multi_role_usages_async(resource_group_name, name, custom_headers).value! end |
#get_hosting_environment_operation(resource_group_name, name, operation_id, custom_headers = nil) ⇒ Object
Get status of an operation on a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
1106 1107 1108 1109 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1106 def get_hosting_environment_operation(resource_group_name, name, operation_id, custom_headers = nil) response = get_hosting_environment_operation_async(resource_group_name, name, operation_id, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_operation_async(resource_group_name, name, operation_id, custom_headers = nil) ⇒ Concurrent::Promise
Get status of an operation on a hostingEnvironment (App Service Environment).
to the HTTP request.
1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1137 def get_hosting_environment_operation_async(resource_group_name, name, operation_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'operation_id is nil' if operation_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/operations/{operationId}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'operationId' => operation_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 || status_code == 404 || status_code == 500 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#get_hosting_environment_operation_with_http_info(resource_group_name, name, operation_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get status of an operation on a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
1122 1123 1124 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1122 def get_hosting_environment_operation_with_http_info(resource_group_name, name, operation_id, custom_headers = nil) get_hosting_environment_operation_async(resource_group_name, name, operation_id, custom_headers).value! end |
#get_hosting_environment_operations(resource_group_name, name, custom_headers = nil) ⇒ Object
List all currently running operations on the hostingEnvironment (App Service Environment)
will be added to the HTTP request.
1019 1020 1021 1022 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1019 def get_hosting_environment_operations(resource_group_name, name, custom_headers = nil) response = get_hosting_environment_operations_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_operations_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
List all currently running operations on the hostingEnvironment (App Service Environment)
to the HTTP request.
1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1050 def get_hosting_environment_operations_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/operations' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#get_hosting_environment_operations_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
List all currently running operations on the hostingEnvironment (App Service Environment)
will be added to the HTTP request.
1035 1036 1037 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1035 def get_hosting_environment_operations_with_http_info(resource_group_name, name, custom_headers = nil) get_hosting_environment_operations_async(resource_group_name, name, custom_headers).value! end |
#get_hosting_environment_server_farms(resource_group_name, name, custom_headers = nil) ⇒ ServerFarmCollection
Get all serverfarms (App Service Plans) on the hostingEnvironment (App Service Environment).
will be added to the HTTP request.
2348 2349 2350 2351 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2348 def get_hosting_environment_server_farms(resource_group_name, name, custom_headers = nil) response = get_hosting_environment_server_farms_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_server_farms_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get all serverfarms (App Service Plans) on the hostingEnvironment (App Service Environment).
to the HTTP request.
2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2379 def get_hosting_environment_server_farms_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/serverfarms' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = ServerFarmCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_server_farms_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get all serverfarms (App Service Plans) on the hostingEnvironment (App Service Environment).
will be added to the HTTP request.
2364 2365 2366 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2364 def get_hosting_environment_server_farms_with_http_info(resource_group_name, name, custom_headers = nil) get_hosting_environment_server_farms_async(resource_group_name, name, custom_headers).value! end |
#get_hosting_environment_sites(resource_group_name, name, properties_to_include = nil, custom_headers = nil) ⇒ SiteCollection
Get all sites on the hostingEnvironment (App Service Environment).
properties to include will be added to the HTTP request.
2152 2153 2154 2155 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2152 def get_hosting_environment_sites(resource_group_name, name, properties_to_include = nil, custom_headers = nil) first_page = get_hosting_environment_sites_as_lazy(resource_group_name, name, properties_to_include, custom_headers) first_page.get_all_items end |
#get_hosting_environment_sites_async(resource_group_name, name, properties_to_include = nil, custom_headers = nil) ⇒ Concurrent::Promise
Get all sites on the hostingEnvironment (App Service Environment).
properties to include to the HTTP request.
2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2185 def get_hosting_environment_sites_async(resource_group_name, name, properties_to_include = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/sites' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'propertiesToInclude' => properties_to_include,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = SiteCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_sites_with_http_info(resource_group_name, name, properties_to_include = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get all sites on the hostingEnvironment (App Service Environment).
properties to include will be added to the HTTP request.
2169 2170 2171 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2169 def get_hosting_environment_sites_with_http_info(resource_group_name, name, properties_to_include = nil, custom_headers = nil) get_hosting_environment_sites_async(resource_group_name, name, properties_to_include, custom_headers).value! end |
#get_hosting_environment_usages(resource_group_name, name, filter = nil, custom_headers = nil) ⇒ CsmUsageQuotaCollection
Get global usages of hostingEnvironment (App Service Environment).
Filter conforms to odata syntax. Example: $filter=(name.value eq ‘Metric1’ or name.value eq ‘Metric2’) and startTime eq ‘2014-01-01T00:00:00Z’ and endTime eq ‘2014-12-31T23:59:59Z’ and timeGrain eq duration’‘. will be added to the HTTP request.
1407 1408 1409 1410 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1407 def get_hosting_environment_usages(resource_group_name, name, filter = nil, custom_headers = nil) response = get_hosting_environment_usages_async(resource_group_name, name, filter, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_usages_async(resource_group_name, name, filter = nil, custom_headers = nil) ⇒ Concurrent::Promise
Get global usages of hostingEnvironment (App Service Environment).
Filter conforms to odata syntax. Example: $filter=(name.value eq ‘Metric1’ or name.value eq ‘Metric2’) and startTime eq ‘2014-01-01T00:00:00Z’ and endTime eq ‘2014-12-31T23:59:59Z’ and timeGrain eq duration’‘. to the HTTP request.
1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1446 def get_hosting_environment_usages_async(resource_group_name, name, filter = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/usages' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'$filter' => filter,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = CsmUsageQuotaCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_usages_with_http_info(resource_group_name, name, filter = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get global usages of hostingEnvironment (App Service Environment).
Filter conforms to odata syntax. Example: $filter=(name.value eq ‘Metric1’ or name.value eq ‘Metric2’) and startTime eq ‘2014-01-01T00:00:00Z’ and endTime eq ‘2014-12-31T23:59:59Z’ and timeGrain eq duration’‘. will be added to the HTTP request.
1427 1428 1429 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1427 def get_hosting_environment_usages_with_http_info(resource_group_name, name, filter = nil, custom_headers = nil) get_hosting_environment_usages_async(resource_group_name, name, filter, custom_headers).value! end |
#get_hosting_environment_vips(resource_group_name, name, custom_headers = nil) ⇒ AddressResponse
Get IP addresses assigned to the hostingEnvironment (App Service Environment).
will be added to the HTTP request.
748 749 750 751 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 748 def get_hosting_environment_vips(resource_group_name, name, custom_headers = nil) response = get_hosting_environment_vips_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_vips_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get IP addresses assigned to the hostingEnvironment (App Service Environment).
to the HTTP request.
779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 779 def get_hosting_environment_vips_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/virtualip' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = AddressResponse.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_vips_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get IP addresses assigned to the hostingEnvironment (App Service Environment).
will be added to the HTTP request.
764 765 766 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 764 def get_hosting_environment_vips_with_http_info(resource_group_name, name, custom_headers = nil) get_hosting_environment_vips_async(resource_group_name, name, custom_headers).value! end |
#get_hosting_environment_web_hosting_plans(resource_group_name, name, custom_headers = nil) ⇒ ServerFarmCollection
Get all serverfarms (App Service Plans) on the hostingEnvironment (App Service Environment).
will be added to the HTTP request.
2251 2252 2253 2254 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2251 def get_hosting_environment_web_hosting_plans(resource_group_name, name, custom_headers = nil) response = get_hosting_environment_web_hosting_plans_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_web_hosting_plans_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get all serverfarms (App Service Plans) on the hostingEnvironment (App Service Environment).
to the HTTP request.
2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2282 def get_hosting_environment_web_hosting_plans_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/webhostingplans' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = ServerFarmCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_web_hosting_plans_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get all serverfarms (App Service Plans) on the hostingEnvironment (App Service Environment).
will be added to the HTTP request.
2267 2268 2269 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2267 def get_hosting_environment_web_hosting_plans_with_http_info(resource_group_name, name, custom_headers = nil) get_hosting_environment_web_hosting_plans_async(resource_group_name, name, custom_headers).value! end |
#get_hosting_environment_web_worker_metric_definitions(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ MetricDefinitionCollection
Get metric definitions for a worker pool of a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
1853 1854 1855 1856 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1853 def get_hosting_environment_web_worker_metric_definitions(resource_group_name, name, worker_pool_name, custom_headers = nil) response = get_hosting_environment_web_worker_metric_definitions_async(resource_group_name, name, worker_pool_name, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_web_worker_metric_definitions_async(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ Concurrent::Promise
Get metric definitions for a worker pool of a hostingEnvironment (App Service Environment).
to the HTTP request.
1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1886 def get_hosting_environment_web_worker_metric_definitions_async(resource_group_name, name, worker_pool_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'worker_pool_name is nil' if worker_pool_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/metricdefinitions' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'workerPoolName' => worker_pool_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = MetricDefinitionCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_web_worker_metric_definitions_with_http_info(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a worker pool of a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
1870 1871 1872 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1870 def get_hosting_environment_web_worker_metric_definitions_with_http_info(resource_group_name, name, worker_pool_name, custom_headers = nil) get_hosting_environment_web_worker_metric_definitions_async(resource_group_name, name, worker_pool_name, custom_headers).value! end |
#get_hosting_environment_web_worker_metrics(resource_group_name, name, worker_pool_name, details = nil, filter = nil, custom_headers = nil) ⇒ ResourceMetricCollection
Get metrics for a worker pool of a hostingEnvironment (App Service Environment).
Filter conforms to odata syntax. Example: $filter=(name.value eq ‘Metric1’ or name.value eq ‘Metric2’) and startTime eq ‘2014-01-01T00:00:00Z’ and endTime eq ‘2014-12-31T23:59:59Z’ and timeGrain eq duration’‘. will be added to the HTTP request.
1643 1644 1645 1646 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1643 def get_hosting_environment_web_worker_metrics(resource_group_name, name, worker_pool_name, details = nil, filter = nil, custom_headers = nil) response = get_hosting_environment_web_worker_metrics_async(resource_group_name, name, worker_pool_name, details, filter, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_web_worker_metrics_async(resource_group_name, name, worker_pool_name, details = nil, filter = nil, custom_headers = nil) ⇒ Concurrent::Promise
Get metrics for a worker pool of a hostingEnvironment (App Service Environment).
Filter conforms to odata syntax. Example: $filter=(name.value eq ‘Metric1’ or name.value eq ‘Metric2’) and startTime eq ‘2014-01-01T00:00:00Z’ and endTime eq ‘2014-12-31T23:59:59Z’ and timeGrain eq duration’‘. to the HTTP request.
1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1688 def get_hosting_environment_web_worker_metrics_async(resource_group_name, name, worker_pool_name, details = nil, filter = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'worker_pool_name is nil' if worker_pool_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/metrics' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'workerPoolName' => worker_pool_name,'subscriptionId' => @client.subscription_id}, query_params: {'details' => details,'$filter' => filter,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = ResourceMetricCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_web_worker_metrics_with_http_info(resource_group_name, name, worker_pool_name, details = nil, filter = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get metrics for a worker pool of a hostingEnvironment (App Service Environment).
Filter conforms to odata syntax. Example: $filter=(name.value eq ‘Metric1’ or name.value eq ‘Metric2’) and startTime eq ‘2014-01-01T00:00:00Z’ and endTime eq ‘2014-12-31T23:59:59Z’ and timeGrain eq duration’‘. will be added to the HTTP request.
1666 1667 1668 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 1666 def get_hosting_environment_web_worker_metrics_with_http_info(resource_group_name, name, worker_pool_name, details = nil, filter = nil, custom_headers = nil) get_hosting_environment_web_worker_metrics_async(resource_group_name, name, worker_pool_name, details, filter, custom_headers).value! end |
#get_hosting_environment_web_worker_usages(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ UsageCollection
Get usages for a worker pool of a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
2051 2052 2053 2054 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2051 def get_hosting_environment_web_worker_usages(resource_group_name, name, worker_pool_name, custom_headers = nil) response = get_hosting_environment_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environment_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ Concurrent::Promise
Get usages for a worker pool of a hostingEnvironment (App Service Environment).
to the HTTP request.
2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2084 def get_hosting_environment_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'worker_pool_name is nil' if worker_pool_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/usages' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'workerPoolName' => worker_pool_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = UsageCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environment_web_worker_usages_with_http_info(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get usages for a worker pool of a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
2068 2069 2070 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2068 def get_hosting_environment_web_worker_usages_with_http_info(resource_group_name, name, worker_pool_name, custom_headers = nil) get_hosting_environment_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers).value! end |
#get_hosting_environment_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get properties of hostingEnvironment (App Service Environment).
will be added to the HTTP request.
57 58 59 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 57 def get_hosting_environment_with_http_info(resource_group_name, name, custom_headers = nil) get_hosting_environment_async(resource_group_name, name, custom_headers).value! end |
#get_hosting_environments(resource_group_name, custom_headers = nil) ⇒ HostingEnvironmentCollection
Get all hostingEnvironments (App Service Environments) in a resource group.
will be added to the HTTP request.
843 844 845 846 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 843 def get_hosting_environments(resource_group_name, custom_headers = nil) response = get_hosting_environments_async(resource_group_name, custom_headers).value! response.body unless response.nil? end |
#get_hosting_environments_async(resource_group_name, custom_headers = nil) ⇒ Concurrent::Promise
Get all hostingEnvironments (App Service Environments) in a resource group.
to the HTTP request.
870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 870 def get_hosting_environments_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = HostingEnvironmentCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_hosting_environments_with_http_info(resource_group_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get all hostingEnvironments (App Service Environments) in a resource group.
will be added to the HTTP request.
857 858 859 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 857 def get_hosting_environments_with_http_info(resource_group_name, custom_headers = nil) get_hosting_environments_async(resource_group_name, custom_headers).value! end |
#get_multi_role_pool(resource_group_name, name, custom_headers = nil) ⇒ WorkerPool
Get properties of a multiRool pool.
will be added to the HTTP request.
2538 2539 2540 2541 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2538 def get_multi_role_pool(resource_group_name, name, custom_headers = nil) response = get_multi_role_pool_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#get_multi_role_pool_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get properties of a multiRool pool.
to the HTTP request.
2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2567 def get_multi_role_pool_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = WorkerPool.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_multi_role_pool_instance_metric_definitions(resource_group_name, name, instance, custom_headers = nil) ⇒ Object
Get metric definitions for a specific instance of a multiRole pool of a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
3648 3649 3650 3651 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3648 def get_multi_role_pool_instance_metric_definitions(resource_group_name, name, instance, custom_headers = nil) response = get_multi_role_pool_instance_metric_definitions_async(resource_group_name, name, instance, custom_headers).value! response.body unless response.nil? end |
#get_multi_role_pool_instance_metric_definitions_async(resource_group_name, name, instance, custom_headers = nil) ⇒ Concurrent::Promise
Get metric definitions for a specific instance of a multiRole pool of a hostingEnvironment (App Service Environment).
to the HTTP request.
3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3681 def get_multi_role_pool_instance_metric_definitions_async(resource_group_name, name, instance, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'instance is nil' if instance.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}/metricdefinitions' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'instance' => instance,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#get_multi_role_pool_instance_metric_definitions_with_http_info(resource_group_name, name, instance, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a specific instance of a multiRole pool of a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
3665 3666 3667 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3665 def get_multi_role_pool_instance_metric_definitions_with_http_info(resource_group_name, name, instance, custom_headers = nil) get_multi_role_pool_instance_metric_definitions_async(resource_group_name, name, instance, custom_headers).value! end |
#get_multi_role_pool_instance_metrics(resource_group_name, name, instance, details = nil, custom_headers = nil) ⇒ Object
Get metrics for a specific instance of a multiRole pool of a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
3555 3556 3557 3558 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3555 def get_multi_role_pool_instance_metrics(resource_group_name, name, instance, details = nil, custom_headers = nil) response = get_multi_role_pool_instance_metrics_async(resource_group_name, name, instance, details, custom_headers).value! response.body unless response.nil? end |
#get_multi_role_pool_instance_metrics_async(resource_group_name, name, instance, details = nil, custom_headers = nil) ⇒ Concurrent::Promise
Get metrics for a specific instance of a multiRole pool of a hostingEnvironment (App Service Environment).
to the HTTP request.
3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3590 def get_multi_role_pool_instance_metrics_async(resource_group_name, name, instance, details = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'instance is nil' if instance.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}/metrics' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'instance' => instance,'subscriptionId' => @client.subscription_id}, query_params: {'details' => details,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#get_multi_role_pool_instance_metrics_with_http_info(resource_group_name, name, instance, details = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get metrics for a specific instance of a multiRole pool of a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
3573 3574 3575 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3573 def get_multi_role_pool_instance_metrics_with_http_info(resource_group_name, name, instance, details = nil, custom_headers = nil) get_multi_role_pool_instance_metrics_async(resource_group_name, name, instance, details, custom_headers).value! end |
#get_multi_role_pool_skus(resource_group_name, name, custom_headers = nil) ⇒ SkuInfoCollection
Get available skus for scaling a multiRole pool.
will be added to the HTTP request.
2793 2794 2795 2796 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2793 def get_multi_role_pool_skus(resource_group_name, name, custom_headers = nil) response = get_multi_role_pool_skus_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#get_multi_role_pool_skus_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get available skus for scaling a multiRole pool.
to the HTTP request.
2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2822 def get_multi_role_pool_skus_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/skus' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = SkuInfoCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_multi_role_pool_skus_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get available skus for scaling a multiRole pool.
will be added to the HTTP request.
2808 2809 2810 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2808 def get_multi_role_pool_skus_with_http_info(resource_group_name, name, custom_headers = nil) get_multi_role_pool_skus_async(resource_group_name, name, custom_headers).value! end |
#get_multi_role_pool_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get properties of a multiRool pool.
will be added to the HTTP request.
2553 2554 2555 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2553 def get_multi_role_pool_with_http_info(resource_group_name, name, custom_headers = nil) get_multi_role_pool_async(resource_group_name, name, custom_headers).value! end |
#get_multi_role_pools(resource_group_name, name, custom_headers = nil) ⇒ WorkerPoolCollection
Get all multi role pools
will be added to the HTTP request.
2444 2445 2446 2447 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2444 def get_multi_role_pools(resource_group_name, name, custom_headers = nil) response = get_multi_role_pools_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#get_multi_role_pools_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get all multi role pools
to the HTTP request.
2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2473 def get_multi_role_pools_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = WorkerPoolCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_multi_role_pools_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get all multi role pools
will be added to the HTTP request.
2459 2460 2461 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2459 def get_multi_role_pools_with_http_info(resource_group_name, name, custom_headers = nil) get_multi_role_pools_async(resource_group_name, name, custom_headers).value! end |
#get_worker_pool(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ WorkerPool
Get properties of a worker pool.
will be added to the HTTP request.
2982 2983 2984 2985 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2982 def get_worker_pool(resource_group_name, name, worker_pool_name, custom_headers = nil) response = get_worker_pool_async(resource_group_name, name, worker_pool_name, custom_headers).value! response.body unless response.nil? end |
#get_worker_pool_async(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ Concurrent::Promise
Get properties of a worker pool.
to the HTTP request.
3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3013 def get_worker_pool_async(resource_group_name, name, worker_pool_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'worker_pool_name is nil' if worker_pool_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'workerPoolName' => worker_pool_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = WorkerPool.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_worker_pool_instance_metric_definitions(resource_group_name, name, worker_pool_name, instance, custom_headers = nil) ⇒ Object
Get metric definitions for a specific instance of a worker pool of a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
3460 3461 3462 3463 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3460 def get_worker_pool_instance_metric_definitions(resource_group_name, name, worker_pool_name, instance, custom_headers = nil) response = get_worker_pool_instance_metric_definitions_async(resource_group_name, name, worker_pool_name, instance, custom_headers).value! response.body unless response.nil? end |
#get_worker_pool_instance_metric_definitions_async(resource_group_name, name, worker_pool_name, instance, custom_headers = nil) ⇒ Concurrent::Promise
Get metric definitions for a specific instance of a worker pool of a hostingEnvironment (App Service Environment).
to the HTTP request.
3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3495 def get_worker_pool_instance_metric_definitions_async(resource_group_name, name, worker_pool_name, instance, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'worker_pool_name is nil' if worker_pool_name.nil? fail ArgumentError, 'instance is nil' if instance.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/instances/{instance}/metricdefinitions' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'workerPoolName' => worker_pool_name,'instance' => instance,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#get_worker_pool_instance_metric_definitions_with_http_info(resource_group_name, name, worker_pool_name, instance, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a specific instance of a worker pool of a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
3478 3479 3480 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3478 def get_worker_pool_instance_metric_definitions_with_http_info(resource_group_name, name, worker_pool_name, instance, custom_headers = nil) get_worker_pool_instance_metric_definitions_async(resource_group_name, name, worker_pool_name, instance, custom_headers).value! end |
#get_worker_pool_instance_metrics(resource_group_name, name, worker_pool_name, instance, details = nil, filter = nil, custom_headers = nil) ⇒ Object
Get metrics for a specific instance of a worker pool of a hostingEnvironment (App Service Environment).
Filter conforms to odata syntax. Example: $filter=(name.value eq ‘Metric1’ or name.value eq ‘Metric2’) and startTime eq ‘2014-01-01T00:00:00Z’ and endTime eq ‘2014-12-31T23:59:59Z’ and timeGrain eq duration’‘. will be added to the HTTP request.
3353 3354 3355 3356 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3353 def get_worker_pool_instance_metrics(resource_group_name, name, worker_pool_name, instance, details = nil, filter = nil, custom_headers = nil) response = get_worker_pool_instance_metrics_async(resource_group_name, name, worker_pool_name, instance, details, filter, custom_headers).value! response.body unless response.nil? end |
#get_worker_pool_instance_metrics_async(resource_group_name, name, worker_pool_name, instance, details = nil, filter = nil, custom_headers = nil) ⇒ Concurrent::Promise
Get metrics for a specific instance of a worker pool of a hostingEnvironment (App Service Environment).
Filter conforms to odata syntax. Example: $filter=(name.value eq ‘Metric1’ or name.value eq ‘Metric2’) and startTime eq ‘2014-01-01T00:00:00Z’ and endTime eq ‘2014-12-31T23:59:59Z’ and timeGrain eq duration’‘. to the HTTP request.
3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3400 def get_worker_pool_instance_metrics_async(resource_group_name, name, worker_pool_name, instance, details = nil, filter = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'worker_pool_name is nil' if worker_pool_name.nil? fail ArgumentError, 'instance is nil' if instance.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/instances/{instance}/metrics' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'workerPoolName' => worker_pool_name,'instance' => instance,'subscriptionId' => @client.subscription_id}, query_params: {'details' => details,'$filter' => filter,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#get_worker_pool_instance_metrics_with_http_info(resource_group_name, name, worker_pool_name, instance, details = nil, filter = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get metrics for a specific instance of a worker pool of a hostingEnvironment (App Service Environment).
Filter conforms to odata syntax. Example: $filter=(name.value eq ‘Metric1’ or name.value eq ‘Metric2’) and startTime eq ‘2014-01-01T00:00:00Z’ and endTime eq ‘2014-12-31T23:59:59Z’ and timeGrain eq duration’‘. will be added to the HTTP request.
3377 3378 3379 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3377 def get_worker_pool_instance_metrics_with_http_info(resource_group_name, name, worker_pool_name, instance, details = nil, filter = nil, custom_headers = nil) get_worker_pool_instance_metrics_async(resource_group_name, name, worker_pool_name, instance, details, filter, custom_headers).value! end |
#get_worker_pool_skus(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ SkuInfoCollection
Get available skus for scaling a worker pool.
will be added to the HTTP request.
3247 3248 3249 3250 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3247 def get_worker_pool_skus(resource_group_name, name, worker_pool_name, custom_headers = nil) response = get_worker_pool_skus_async(resource_group_name, name, worker_pool_name, custom_headers).value! response.body unless response.nil? end |
#get_worker_pool_skus_async(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ Concurrent::Promise
Get available skus for scaling a worker pool.
to the HTTP request.
3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3278 def get_worker_pool_skus_async(resource_group_name, name, worker_pool_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'worker_pool_name is nil' if worker_pool_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/skus' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'workerPoolName' => worker_pool_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = SkuInfoCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_worker_pool_skus_with_http_info(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get available skus for scaling a worker pool.
will be added to the HTTP request.
3263 3264 3265 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3263 def get_worker_pool_skus_with_http_info(resource_group_name, name, worker_pool_name, custom_headers = nil) get_worker_pool_skus_async(resource_group_name, name, worker_pool_name, custom_headers).value! end |
#get_worker_pool_with_http_info(resource_group_name, name, worker_pool_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get properties of a worker pool.
will be added to the HTTP request.
2998 2999 3000 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2998 def get_worker_pool_with_http_info(resource_group_name, name, worker_pool_name, custom_headers = nil) get_worker_pool_async(resource_group_name, name, worker_pool_name, custom_headers).value! end |
#get_worker_pools(resource_group_name, name, custom_headers = nil) ⇒ WorkerPoolCollection
Get all worker pools
will be added to the HTTP request.
2887 2888 2889 2890 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2887 def get_worker_pools(resource_group_name, name, custom_headers = nil) response = get_worker_pools_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#get_worker_pools_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get all worker pools
to the HTTP request.
2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2916 def get_worker_pools_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = WorkerPoolCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_worker_pools_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get all worker pools
will be added to the HTTP request.
2902 2903 2904 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 2902 def get_worker_pools_with_http_info(resource_group_name, name, custom_headers = nil) get_worker_pools_async(resource_group_name, name, custom_headers).value! end |
#reboot_hosting_environment(resource_group_name, name, custom_headers = nil) ⇒ Object
Reboots all machines in a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
934 935 936 937 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 934 def reboot_hosting_environment(resource_group_name, name, custom_headers = nil) response = reboot_hosting_environment_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#reboot_hosting_environment_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Reboots all machines in a hostingEnvironment (App Service Environment).
to the HTTP request.
963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 963 def reboot_hosting_environment_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/reboot' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 202 || status_code == 400 || status_code == 404 || status_code == 409 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#reboot_hosting_environment_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Reboots all machines in a hostingEnvironment (App Service Environment).
will be added to the HTTP request.
949 950 951 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 949 def reboot_hosting_environment_with_http_info(resource_group_name, name, custom_headers = nil) reboot_hosting_environment_async(resource_group_name, name, custom_headers).value! end |
#resume_hosting_environment(resource_group_name, name, custom_headers = nil) ⇒ SiteCollection
Resumes the hostingEnvironment.
will be added to the HTTP request.
3883 3884 3885 3886 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3883 def resume_hosting_environment(resource_group_name, name, custom_headers = nil) first_page = resume_hosting_environment_as_lazy(resource_group_name, name, custom_headers) first_page.get_all_items end |
#resume_hosting_environment_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
response.
3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3897 def resume_hosting_environment_async(resource_group_name, name, custom_headers = nil) # Send request promise = begin_resume_hosting_environment_async(resource_group_name, name, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = SiteCollection.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response') end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#suspend_hosting_environment(resource_group_name, name, custom_headers = nil) ⇒ SiteCollection
Suspends the hostingEnvironment.
will be added to the HTTP request.
3737 3738 3739 3740 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3737 def suspend_hosting_environment(resource_group_name, name, custom_headers = nil) first_page = suspend_hosting_environment_as_lazy(resource_group_name, name, custom_headers) first_page.get_all_items end |
#suspend_hosting_environment_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
response.
3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 |
# File 'lib/generated/azure_mgmt_web/hosting_environments.rb', line 3751 def suspend_hosting_environment_async(resource_group_name, name, custom_headers = nil) # Send request promise = begin_suspend_hosting_environment_async(resource_group_name, name, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = SiteCollection.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response') end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |