Class: Azure::Web::Mgmt::V2016_09_01::AppServiceEnvironments
- Inherits:
-
Object
- Object
- Azure::Web::Mgmt::V2016_09_01::AppServiceEnvironments
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb
Overview
WebSite Management Client
Instance Attribute Summary collapse
-
#client ⇒ WebSiteManagementClient
readonly
Reference to the WebSiteManagementClient.
Instance Method Summary collapse
-
#begin_create_or_update(resource_group_name, name, hosting_environment_envelope, custom_headers: nil) ⇒ AppServiceEnvironmentResource
Create or update an App Service Environment.
-
#begin_create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Create or update an App Service Environment.
-
#begin_create_or_update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers: nil) ⇒ WorkerPoolResource
Create or update a multi-role 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 multi-role 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 multi-role pool.
-
#begin_create_or_update_with_http_info(resource_group_name, name, hosting_environment_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update an App Service Environment.
-
#begin_create_or_update_worker_pool(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers: nil) ⇒ WorkerPoolResource
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(resource_group_name, name, force_delete: nil, custom_headers: nil) ⇒ Object
Delete an App Service Environment.
-
#begin_delete_async(resource_group_name, name, force_delete: nil, custom_headers: nil) ⇒ Concurrent::Promise
Delete an App Service Environment.
-
#begin_delete_with_http_info(resource_group_name, name, force_delete: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete an App Service Environment.
-
#begin_resume(resource_group_name, name, custom_headers: nil) ⇒ Array<Site>
Resume an App Service Environment.
-
#begin_resume_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ WebAppCollection
Resume an App Service Environment.
-
#begin_resume_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Resume an App Service Environment.
-
#begin_resume_next(next_page_link, custom_headers: nil) ⇒ WebAppCollection
Resume an App Service Environment.
-
#begin_resume_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Resume an App Service Environment.
-
#begin_resume_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Resume an App Service Environment.
-
#begin_resume_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Resume an App Service Environment.
-
#begin_suspend(resource_group_name, name, custom_headers: nil) ⇒ Array<Site>
Suspend an App Service Environment.
-
#begin_suspend_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ WebAppCollection
Suspend an App Service Environment.
-
#begin_suspend_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Suspend an App Service Environment.
-
#begin_suspend_next(next_page_link, custom_headers: nil) ⇒ WebAppCollection
Suspend an App Service Environment.
-
#begin_suspend_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Suspend an App Service Environment.
-
#begin_suspend_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Suspend an App Service Environment.
-
#begin_suspend_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Suspend an App Service Environment.
-
#create_or_update(resource_group_name, name, hosting_environment_envelope, custom_headers: nil) ⇒ AppServiceEnvironmentResource
Create or update an App Service Environment.
-
#create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#create_or_update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers: nil) ⇒ WorkerPoolResource
Create or update a multi-role pool.
-
#create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#create_or_update_worker_pool(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers: nil) ⇒ WorkerPoolResource
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
resource belongs.
-
#delete(resource_group_name, name, force_delete: nil, custom_headers: nil) ⇒ Object
Delete an App Service Environment.
-
#delete_async(resource_group_name, name, force_delete: nil, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#get(resource_group_name, name, custom_headers: nil) ⇒ AppServiceEnvironmentResource
Get the properties of an App Service Environment.
-
#get_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get the properties of an App Service Environment.
-
#get_diagnostics_item(resource_group_name, name, diagnostics_name, custom_headers: nil) ⇒ HostingEnvironmentDiagnostics
Get a diagnostics item for an App Service Environment.
-
#get_diagnostics_item_async(resource_group_name, name, diagnostics_name, custom_headers: nil) ⇒ Concurrent::Promise
Get a diagnostics item for an App Service Environment.
-
#get_diagnostics_item_with_http_info(resource_group_name, name, diagnostics_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get a diagnostics item for an App Service Environment.
-
#get_multi_role_pool(resource_group_name, name, custom_headers: nil) ⇒ WorkerPoolResource
Get properties of a multi-role pool.
-
#get_multi_role_pool_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get properties of a multi-role pool.
-
#get_multi_role_pool_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get properties of a multi-role pool.
-
#get_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the properties of an App Service Environment.
-
#get_worker_pool(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ WorkerPoolResource
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_with_http_info(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get properties of a worker pool.
-
#initialize(client) ⇒ AppServiceEnvironments
constructor
Creates and initializes a new instance of the AppServiceEnvironments class.
-
#list(custom_headers: nil) ⇒ Array<AppServiceEnvironmentResource>
Get all App Service Environments for a subscription.
-
#list_app_service_plans(resource_group_name, name, custom_headers: nil) ⇒ Array<AppServicePlan>
Get all App Service plans in an App Service Environment.
-
#list_app_service_plans_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ AppServicePlanCollection
Get all App Service plans in an App Service Environment.
-
#list_app_service_plans_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get all App Service plans in an App Service Environment.
-
#list_app_service_plans_next(next_page_link, custom_headers: nil) ⇒ AppServicePlanCollection
Get all App Service plans in an App Service Environment.
-
#list_app_service_plans_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get all App Service plans in an App Service Environment.
-
#list_app_service_plans_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all App Service plans in an App Service Environment.
-
#list_app_service_plans_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all App Service plans in an App Service Environment.
-
#list_as_lazy(custom_headers: nil) ⇒ AppServiceEnvironmentCollection
Get all App Service Environments for a subscription.
-
#list_async(custom_headers: nil) ⇒ Concurrent::Promise
Get all App Service Environments for a subscription.
-
#list_by_resource_group(resource_group_name, custom_headers: nil) ⇒ Array<AppServiceEnvironmentResource>
Get all App Service Environments in a resource group.
-
#list_by_resource_group_as_lazy(resource_group_name, custom_headers: nil) ⇒ AppServiceEnvironmentCollection
Get all App Service Environments in a resource group.
-
#list_by_resource_group_async(resource_group_name, custom_headers: nil) ⇒ Concurrent::Promise
Get all App Service Environments in a resource group.
-
#list_by_resource_group_next(next_page_link, custom_headers: nil) ⇒ AppServiceEnvironmentCollection
Get all App Service Environments in a resource group.
-
#list_by_resource_group_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get all App Service Environments in a resource group.
-
#list_by_resource_group_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all App Service Environments in a resource group.
-
#list_by_resource_group_with_http_info(resource_group_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all App Service Environments in a resource group.
-
#list_capacities(resource_group_name, name, custom_headers: nil) ⇒ Array<StampCapacity>
Get the used, available, and total worker capacity an App Service Environment.
-
#list_capacities_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ StampCapacityCollection
Get the used, available, and total worker capacity an App Service Environment.
-
#list_capacities_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get the used, available, and total worker capacity an App Service Environment.
-
#list_capacities_next(next_page_link, custom_headers: nil) ⇒ StampCapacityCollection
Get the used, available, and total worker capacity an App Service Environment.
-
#list_capacities_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get the used, available, and total worker capacity an App Service Environment.
-
#list_capacities_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the used, available, and total worker capacity an App Service Environment.
-
#list_capacities_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the used, available, and total worker capacity an App Service Environment.
-
#list_diagnostics(resource_group_name, name, custom_headers: nil) ⇒ Array
Get diagnostic information for an App Service Environment.
-
#list_diagnostics_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get diagnostic information for an App Service Environment.
-
#list_diagnostics_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get diagnostic information for an App Service Environment.
-
#list_metric_definitions(resource_group_name, name, custom_headers: nil) ⇒ MetricDefinition
Get global metric definitions of an App Service Environment.
-
#list_metric_definitions_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get global metric definitions of an App Service Environment.
-
#list_metric_definitions_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get global metric definitions of an App Service Environment.
-
#list_metrics(resource_group_name, name, details: nil, filter: nil, custom_headers: nil) ⇒ Array<ResourceMetric>
Get global metrics of an App Service Environment.
-
#list_metrics_as_lazy(resource_group_name, name, details: nil, filter: nil, custom_headers: nil) ⇒ ResourceMetricCollection
Get global metrics of an App Service Environment.
-
#list_metrics_async(resource_group_name, name, details: nil, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Get global metrics of an App Service Environment.
-
#list_metrics_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricCollection
Get global metrics of an App Service Environment.
-
#list_metrics_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get global metrics of an App Service Environment.
-
#list_metrics_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get global metrics of an App Service Environment.
-
#list_metrics_with_http_info(resource_group_name, name, details: nil, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get global metrics of an App Service Environment.
-
#list_multi_role_metric_definitions(resource_group_name, name, custom_headers: nil) ⇒ Array<ResourceMetricDefinition>
Get metric definitions for a multi-role pool of an App Service Environment.
-
#list_multi_role_metric_definitions_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Get metric definitions for a multi-role pool of an App Service Environment.
-
#list_multi_role_metric_definitions_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get metric definitions for a multi-role pool of an App Service Environment.
-
#list_multi_role_metric_definitions_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Get metric definitions for a multi-role pool of an App Service Environment.
-
#list_multi_role_metric_definitions_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get metric definitions for a multi-role pool of an App Service Environment.
-
#list_multi_role_metric_definitions_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a multi-role pool of an App Service Environment.
-
#list_multi_role_metric_definitions_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a multi-role pool of an App Service Environment.
-
#list_multi_role_metrics(resource_group_name, name, start_time: nil, end_time: nil, time_grain: nil, details: nil, filter: nil, custom_headers: nil) ⇒ Array<ResourceMetric>
Get metrics for a multi-role pool of an App Service Environment.
-
#list_multi_role_metrics_as_lazy(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 multi-role pool of an App Service Environment.
-
#list_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 multi-role pool of an App Service Environment.
-
#list_multi_role_metrics_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricCollection
Get metrics for a multi-role pool of an App Service Environment.
-
#list_multi_role_metrics_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get metrics for a multi-role pool of an App Service Environment.
-
#list_multi_role_metrics_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metrics for a multi-role pool of an App Service Environment.
-
#list_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 multi-role pool of an App Service Environment.
-
#list_multi_role_pool_instance_metric_definitions(resource_group_name, name, instance, custom_headers: nil) ⇒ Array<ResourceMetricDefinition>
Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
-
#list_multi_role_pool_instance_metric_definitions_as_lazy(resource_group_name, name, instance, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
-
#list_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 multi-role pool of an App Service Environment.
-
#list_multi_role_pool_instance_metric_definitions_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
-
#list_multi_role_pool_instance_metric_definitions_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
-
#list_multi_role_pool_instance_metric_definitions_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
-
#list_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 multi-role pool of an App Service Environment.
-
#list_multi_role_pool_instance_metrics(resource_group_name, name, instance, details: nil, custom_headers: nil) ⇒ Array<ResourceMetric>
Get metrics for a specific instance of a multi-role pool of an App Service Environment.
-
#list_multi_role_pool_instance_metrics_as_lazy(resource_group_name, name, instance, details: nil, custom_headers: nil) ⇒ ResourceMetricCollection
Get metrics for a specific instance of a multi-role pool of an App Service Environment.
-
#list_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 multi-role pool of an App Service Environment.
-
#list_multi_role_pool_instance_metrics_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricCollection
Get metrics for a specific instance of a multi-role pool of an App Service Environment.
-
#list_multi_role_pool_instance_metrics_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get metrics for a specific instance of a multi-role pool of an App Service Environment.
-
#list_multi_role_pool_instance_metrics_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metrics for a specific instance of a multi-role pool of an App Service Environment.
-
#list_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 multi-role pool of an App Service Environment.
-
#list_multi_role_pool_skus(resource_group_name, name, custom_headers: nil) ⇒ Array<SkuInfo>
Get available SKUs for scaling a multi-role pool.
-
#list_multi_role_pool_skus_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ SkuInfoCollection
Get available SKUs for scaling a multi-role pool.
-
#list_multi_role_pool_skus_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get available SKUs for scaling a multi-role pool.
-
#list_multi_role_pool_skus_next(next_page_link, custom_headers: nil) ⇒ SkuInfoCollection
Get available SKUs for scaling a multi-role pool.
-
#list_multi_role_pool_skus_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get available SKUs for scaling a multi-role pool.
-
#list_multi_role_pool_skus_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get available SKUs for scaling a multi-role pool.
-
#list_multi_role_pool_skus_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get available SKUs for scaling a multi-role pool.
-
#list_multi_role_pools(resource_group_name, name, custom_headers: nil) ⇒ Array<WorkerPoolResource>
Get all multi-role pools.
-
#list_multi_role_pools_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ WorkerPoolCollection
Get all multi-role pools.
-
#list_multi_role_pools_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get all multi-role pools.
-
#list_multi_role_pools_next(next_page_link, custom_headers: nil) ⇒ WorkerPoolCollection
Get all multi-role pools.
-
#list_multi_role_pools_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get all multi-role pools.
-
#list_multi_role_pools_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all multi-role pools.
-
#list_multi_role_pools_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all multi-role pools.
-
#list_multi_role_usages(resource_group_name, name, custom_headers: nil) ⇒ Array<Usage>
Get usage metrics for a multi-role pool of an App Service Environment.
-
#list_multi_role_usages_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ UsageCollection
Get usage metrics for a multi-role pool of an App Service Environment.
-
#list_multi_role_usages_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get usage metrics for a multi-role pool of an App Service Environment.
-
#list_multi_role_usages_next(next_page_link, custom_headers: nil) ⇒ UsageCollection
Get usage metrics for a multi-role pool of an App Service Environment.
-
#list_multi_role_usages_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get usage metrics for a multi-role pool of an App Service Environment.
-
#list_multi_role_usages_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get usage metrics for a multi-role pool of an App Service Environment.
-
#list_multi_role_usages_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get usage metrics for a multi-role pool of an App Service Environment.
-
#list_next(next_page_link, custom_headers: nil) ⇒ AppServiceEnvironmentCollection
Get all App Service Environments for a subscription.
-
#list_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get all App Service Environments for a subscription.
-
#list_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all App Service Environments for a subscription.
-
#list_operations(resource_group_name, name, custom_headers: nil) ⇒ Array
List all currently running operations on the App Service Environment.
-
#list_operations_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
List all currently running operations on the App Service Environment.
-
#list_operations_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List all currently running operations on the App Service Environment.
-
#list_usages(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ Array<CsmUsageQuota>
Get global usage metrics of an App Service Environment.
-
#list_usages_as_lazy(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ CsmUsageQuotaCollection
Get global usage metrics of an App Service Environment.
-
#list_usages_async(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Get global usage metrics of an App Service Environment.
-
#list_usages_next(next_page_link, custom_headers: nil) ⇒ CsmUsageQuotaCollection
Get global usage metrics of an App Service Environment.
-
#list_usages_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get global usage metrics of an App Service Environment.
-
#list_usages_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get global usage metrics of an App Service Environment.
-
#list_usages_with_http_info(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get global usage metrics of an App Service Environment.
-
#list_vips(resource_group_name, name, custom_headers: nil) ⇒ AddressResponse
Get IP addresses assigned to an App Service Environment.
-
#list_vips_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get IP addresses assigned to an App Service Environment.
-
#list_vips_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get IP addresses assigned to an App Service Environment.
-
#list_web_apps(resource_group_name, name, properties_to_include: nil, custom_headers: nil) ⇒ Array<Site>
Get all apps in an App Service Environment.
-
#list_web_apps_as_lazy(resource_group_name, name, properties_to_include: nil, custom_headers: nil) ⇒ WebAppCollection
Get all apps in an App Service Environment.
-
#list_web_apps_async(resource_group_name, name, properties_to_include: nil, custom_headers: nil) ⇒ Concurrent::Promise
Get all apps in an App Service Environment.
-
#list_web_apps_next(next_page_link, custom_headers: nil) ⇒ WebAppCollection
Get all apps in an App Service Environment.
-
#list_web_apps_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get all apps in an App Service Environment.
-
#list_web_apps_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all apps in an App Service Environment.
-
#list_web_apps_with_http_info(resource_group_name, name, properties_to_include: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all apps in an App Service Environment.
-
#list_web_worker_metric_definitions(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ Array<ResourceMetricDefinition>
Get metric definitions for a worker pool of an App Service Environment.
-
#list_web_worker_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Get metric definitions for a worker pool of an App Service Environment.
-
#list_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 an App Service Environment.
-
#list_web_worker_metric_definitions_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Get metric definitions for a worker pool of an App Service Environment.
-
#list_web_worker_metric_definitions_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get metric definitions for a worker pool of an App Service Environment.
-
#list_web_worker_metric_definitions_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a worker pool of an App Service Environment.
-
#list_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 an App Service Environment.
-
#list_web_worker_metrics(resource_group_name, name, worker_pool_name, details: nil, filter: nil, custom_headers: nil) ⇒ Array<ResourceMetric>
Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
-
#list_web_worker_metrics_as_lazy(resource_group_name, name, worker_pool_name, details: nil, filter: nil, custom_headers: nil) ⇒ ResourceMetricCollection
Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
-
#list_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 AppServiceEnvironment (App Service Environment).
-
#list_web_worker_metrics_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricCollection
Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
-
#list_web_worker_metrics_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
-
#list_web_worker_metrics_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
-
#list_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 AppServiceEnvironment (App Service Environment).
-
#list_web_worker_usages(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ Array<Usage>
Get usage metrics for a worker pool of an App Service Environment.
-
#list_web_worker_usages_as_lazy(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ UsageCollection
Get usage metrics for a worker pool of an App Service Environment.
-
#list_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ Concurrent::Promise
Get usage metrics for a worker pool of an App Service Environment.
-
#list_web_worker_usages_next(next_page_link, custom_headers: nil) ⇒ UsageCollection
Get usage metrics for a worker pool of an App Service Environment.
-
#list_web_worker_usages_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get usage metrics for a worker pool of an App Service Environment.
-
#list_web_worker_usages_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get usage metrics for a worker pool of an App Service Environment.
-
#list_web_worker_usages_with_http_info(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get usage metrics for a worker pool of an App Service Environment.
-
#list_with_http_info(custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all App Service Environments for a subscription.
-
#list_worker_pool_instance_metric_definitions(resource_group_name, name, worker_pool_name, instance, custom_headers: nil) ⇒ Array<ResourceMetricDefinition>
Get metric definitions for a specific instance of a worker pool of an App Service Environment.
-
#list_worker_pool_instance_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, instance, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Get metric definitions for a specific instance of a worker pool of an App Service Environment.
-
#list_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 an App Service Environment.
-
#list_worker_pool_instance_metric_definitions_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Get metric definitions for a specific instance of a worker pool of an App Service Environment.
-
#list_worker_pool_instance_metric_definitions_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get metric definitions for a specific instance of a worker pool of an App Service Environment.
-
#list_worker_pool_instance_metric_definitions_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a specific instance of a worker pool of an App Service Environment.
-
#list_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 an App Service Environment.
-
#list_worker_pool_instance_metrics(resource_group_name, name, worker_pool_name, instance, details: nil, filter: nil, custom_headers: nil) ⇒ Array<ResourceMetric>
Get metrics for a specific instance of a worker pool of an App Service Environment.
-
#list_worker_pool_instance_metrics_as_lazy(resource_group_name, name, worker_pool_name, instance, details: nil, filter: nil, custom_headers: nil) ⇒ ResourceMetricCollection
Get metrics for a specific instance of a worker pool of an App Service Environment.
-
#list_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 an App Service Environment.
-
#list_worker_pool_instance_metrics_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricCollection
Get metrics for a specific instance of a worker pool of an App Service Environment.
-
#list_worker_pool_instance_metrics_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get metrics for a specific instance of a worker pool of an App Service Environment.
-
#list_worker_pool_instance_metrics_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metrics for a specific instance of a worker pool of an App Service Environment.
-
#list_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 an App Service Environment.
-
#list_worker_pool_skus(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ Array<SkuInfo>
Get available SKUs for scaling a worker pool.
-
#list_worker_pool_skus_as_lazy(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ SkuInfoCollection
Get available SKUs for scaling a worker pool.
-
#list_worker_pool_skus_async(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ Concurrent::Promise
Get available SKUs for scaling a worker pool.
-
#list_worker_pool_skus_next(next_page_link, custom_headers: nil) ⇒ SkuInfoCollection
Get available SKUs for scaling a worker pool.
-
#list_worker_pool_skus_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get available SKUs for scaling a worker pool.
-
#list_worker_pool_skus_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get available SKUs for scaling a worker pool.
-
#list_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.
-
#list_worker_pools(resource_group_name, name, custom_headers: nil) ⇒ Array<WorkerPoolResource>
Get all worker pools of an App Service Environment.
-
#list_worker_pools_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ WorkerPoolCollection
Get all worker pools of an App Service Environment.
-
#list_worker_pools_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get all worker pools of an App Service Environment.
-
#list_worker_pools_next(next_page_link, custom_headers: nil) ⇒ WorkerPoolCollection
Get all worker pools of an App Service Environment.
-
#list_worker_pools_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get all worker pools of an App Service Environment.
-
#list_worker_pools_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all worker pools of an App Service Environment.
-
#list_worker_pools_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all worker pools of an App Service Environment.
-
#reboot(resource_group_name, name, custom_headers: nil) ⇒ Object
Reboot all machines in an App Service Environment.
-
#reboot_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Reboot all machines in an App Service Environment.
-
#reboot_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Reboot all machines in an App Service Environment.
-
#resume(resource_group_name, name, custom_headers: nil) ⇒ Array<Site>
Resume an App Service Environment.
-
#resume_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#resume_next(next_page_link, custom_headers: nil) ⇒ WebAppCollection
Resume an App Service Environment.
-
#resume_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
to List operation.
-
#suspend(resource_group_name, name, custom_headers: nil) ⇒ Array<Site>
Suspend an App Service Environment.
-
#suspend_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#suspend_next(next_page_link, custom_headers: nil) ⇒ WebAppCollection
Suspend an App Service Environment.
-
#suspend_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
to List operation.
-
#update(resource_group_name, name, hosting_environment_envelope, custom_headers: nil) ⇒ AppServiceEnvironmentResource
Create or update an App Service Environment.
-
#update_async(resource_group_name, name, hosting_environment_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Create or update an App Service Environment.
-
#update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers: nil) ⇒ WorkerPoolResource
Create or update a multi-role pool.
-
#update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Create or update a multi-role pool.
-
#update_multi_role_pool_with_http_info(resource_group_name, name, multi_role_pool_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a multi-role pool.
-
#update_with_http_info(resource_group_name, name, hosting_environment_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update an App Service Environment.
-
#update_worker_pool(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers: nil) ⇒ WorkerPoolResource
Create or update a worker pool.
-
#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.
-
#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.
Constructor Details
#initialize(client) ⇒ AppServiceEnvironments
Creates and initializes a new instance of the AppServiceEnvironments class.
17 18 19 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 17 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ WebSiteManagementClient (readonly)
Returns reference to the WebSiteManagementClient.
22 23 24 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 22 def client @client end |
Instance Method Details
#begin_create_or_update(resource_group_name, name, hosting_environment_envelope, custom_headers: nil) ⇒ AppServiceEnvironmentResource
Create or update an App Service Environment.
Create or update an App Service Environment.
resource belongs. Configuration details of the App Service Environment. will be added to the HTTP request.
4148 4149 4150 4151 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4148 def begin_create_or_update(resource_group_name, name, hosting_environment_envelope, custom_headers:nil) response = begin_create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Create or update an App Service Environment.
Create or update an App Service Environment.
resource belongs. Configuration details of the App Service Environment. to the HTTP request.
4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4187 def begin_create_or_update_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentResource.mapper() request_content = @client.serialize(request_mapper, 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}' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:put, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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 = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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(resource_group_name, name, multi_role_pool_envelope, custom_headers: nil) ⇒ WorkerPoolResource
Create or update a multi-role pool.
Create or update a multi-role pool.
resource belongs. multi-role pool. will be added to the HTTP request.
4382 4383 4384 4385 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4382 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: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 multi-role pool.
Create or update a multi-role pool.
resource belongs. multi-role pool. to the HTTP request.
4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4421 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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() request_content = @client.serialize(request_mapper, 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:put, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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 = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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 multi-role pool.
Create or update a multi-role pool.
resource belongs. multi-role pool. will be added to the HTTP request.
4402 4403 4404 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4402 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:custom_headers).value! end |
#begin_create_or_update_with_http_info(resource_group_name, name, hosting_environment_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update an App Service Environment.
Create or update an App Service Environment.
resource belongs. Configuration details of the App Service Environment. will be added to the HTTP request.
4168 4169 4170 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4168 def begin_create_or_update_with_http_info(resource_group_name, name, hosting_environment_envelope, custom_headers:nil) begin_create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers:custom_headers).value! end |
#begin_create_or_update_worker_pool(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers: nil) ⇒ WorkerPoolResource
Create or update a worker pool.
Create or update a worker pool.
resource belongs. pool. will be added to the HTTP request.
4745 4746 4747 4748 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4745 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: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.
Create or update a worker pool.
resource belongs. pool. to the HTTP request.
4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4786 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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() request_content = @client.serialize(request_mapper, 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}' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:put, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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 = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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.
Create or update a worker pool.
resource belongs. pool. will be added to the HTTP request.
4766 4767 4768 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4766 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:custom_headers).value! end |
#begin_delete(resource_group_name, name, force_delete: nil, custom_headers: nil) ⇒ Object
Delete an App Service Environment.
Delete an App Service Environment.
resource belongs. even if the App Service Environment contains resources. The default is false. will be added to the HTTP request.
4278 4279 4280 4281 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4278 def begin_delete(resource_group_name, name, force_delete:nil, custom_headers:nil) response = begin_delete_async(resource_group_name, name, force_delete:force_delete, custom_headers:custom_headers).value! nil end |
#begin_delete_async(resource_group_name, name, force_delete: nil, custom_headers: nil) ⇒ Concurrent::Promise
Delete an App Service Environment.
Delete an App Service Environment.
resource belongs. even if the App Service Environment contains resources. The default is false. to the HTTP request.
4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4319 def begin_delete_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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}' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:delete, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 202 || status_code == 204 || status_code == 400 || status_code == 404 || status_code == 409 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#begin_delete_with_http_info(resource_group_name, name, force_delete: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete an App Service Environment.
Delete an App Service Environment.
resource belongs. even if the App Service Environment contains resources. The default is false. will be added to the HTTP request.
4299 4300 4301 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4299 def begin_delete_with_http_info(resource_group_name, name, force_delete:nil, custom_headers:nil) begin_delete_async(resource_group_name, name, force_delete:force_delete, custom_headers:custom_headers).value! end |
#begin_resume(resource_group_name, name, custom_headers: nil) ⇒ Array<Site>
Resume an App Service Environment.
Resume an App Service Environment.
resource belongs. will be added to the HTTP request.
4510 4511 4512 4513 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4510 def begin_resume(resource_group_name, name, custom_headers:nil) first_page = begin_resume_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#begin_resume_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ WebAppCollection
Resume an App Service Environment.
Resume an App Service Environment.
resource belongs. will be added to the HTTP request.
response.
7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7805 def begin_resume_as_lazy(resource_group_name, name, custom_headers:nil) response = begin_resume_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| begin_resume_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#begin_resume_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Resume an App Service Environment.
Resume an App Service Environment.
resource belongs. to the HTTP request.
4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4545 def begin_resume_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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 = Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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_next(next_page_link, custom_headers: nil) ⇒ WebAppCollection
Resume an App Service Environment.
Resume an App Service Environment.
to List operation. will be added to the HTTP request.
7015 7016 7017 7018 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7015 def begin_resume_next(next_page_link, custom_headers:nil) response = begin_resume_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_resume_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Resume an App Service Environment.
Resume an App Service Environment.
to List operation. to the HTTP request.
7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7048 def begin_resume_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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 = Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Resume an App Service Environment.
Resume an App Service Environment.
to List operation. will be added to the HTTP request.
7032 7033 7034 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7032 def begin_resume_next_with_http_info(next_page_link, custom_headers:nil) begin_resume_next_async(next_page_link, custom_headers:custom_headers).value! end |
#begin_resume_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Resume an App Service Environment.
Resume an App Service Environment.
resource belongs. will be added to the HTTP request.
4528 4529 4530 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4528 def begin_resume_with_http_info(resource_group_name, name, custom_headers:nil) begin_resume_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#begin_suspend(resource_group_name, name, custom_headers: nil) ⇒ Array<Site>
Suspend an App Service Environment.
Suspend an App Service Environment.
resource belongs. will be added to the HTTP request.
4626 4627 4628 4629 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4626 def begin_suspend(resource_group_name, name, custom_headers:nil) first_page = begin_suspend_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#begin_suspend_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ WebAppCollection
Suspend an App Service Environment.
Suspend an App Service Environment.
resource belongs. will be added to the HTTP request.
response.
7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7830 def begin_suspend_as_lazy(resource_group_name, name, custom_headers:nil) response = begin_suspend_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| begin_suspend_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#begin_suspend_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Suspend an App Service Environment.
Suspend an App Service Environment.
resource belongs. to the HTTP request.
4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4661 def begin_suspend_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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 = Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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_next(next_page_link, custom_headers: nil) ⇒ WebAppCollection
Suspend an App Service Environment.
Suspend an App Service Environment.
to List operation. will be added to the HTTP request.
7121 7122 7123 7124 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7121 def begin_suspend_next(next_page_link, custom_headers:nil) response = begin_suspend_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_suspend_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Suspend an App Service Environment.
Suspend an App Service Environment.
to List operation. to the HTTP request.
7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7154 def begin_suspend_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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 = Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Suspend an App Service Environment.
Suspend an App Service Environment.
to List operation. will be added to the HTTP request.
7138 7139 7140 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7138 def begin_suspend_next_with_http_info(next_page_link, custom_headers:nil) begin_suspend_next_async(next_page_link, custom_headers:custom_headers).value! end |
#begin_suspend_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Suspend an App Service Environment.
Suspend an App Service Environment.
resource belongs. will be added to the HTTP request.
4644 4645 4646 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4644 def begin_suspend_with_http_info(resource_group_name, name, custom_headers:nil) begin_suspend_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#create_or_update(resource_group_name, name, hosting_environment_envelope, custom_headers: nil) ⇒ AppServiceEnvironmentResource
Create or update an App Service Environment.
Create or update an App Service Environment.
resource belongs. Configuration details of the App Service Environment. will be added to the HTTP request.
339 340 341 342 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 339 def create_or_update(resource_group_name, name, hosting_environment_envelope, custom_headers:nil) response = create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. Configuration details of the App Service Environment. will be added to the HTTP request.
response.
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 356 def create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers:nil) # Send request promise = begin_create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentResource.mapper() parsed_response = @client.deserialize(result_mapper, 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) ⇒ WorkerPoolResource
Create or update a multi-role pool.
Create or update a multi-role pool.
resource belongs. multi-role pool. will be added to the HTTP request.
1460 1461 1462 1463 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1460 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: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
resource belongs. multi-role pool. will be added to the HTTP request.
response.
1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1477 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:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() parsed_response = @client.deserialize(result_mapper, 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) ⇒ WorkerPoolResource
Create or update a worker pool.
Create or update a worker pool.
resource belongs. pool. will be added to the HTTP request.
3239 3240 3241 3242 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3239 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: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
resource belongs. pool. will be added to the HTTP request.
response.
3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3257 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:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#delete(resource_group_name, name, force_delete: nil, custom_headers: nil) ⇒ Object
Delete an App Service Environment.
Delete an App Service Environment.
resource belongs. even if the App Service Environment contains resources. The default is false. will be added to the HTTP request.
388 389 390 391 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 388 def delete(resource_group_name, name, force_delete:nil, custom_headers:nil) response = delete_async(resource_group_name, name, force_delete:force_delete, custom_headers:custom_headers).value! nil end |
#delete_async(resource_group_name, name, force_delete: nil, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. even if the App Service Environment contains resources. The default is false. will be added to the HTTP request.
response.
406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 406 def delete_async(resource_group_name, name, force_delete:nil, custom_headers:nil) # Send request promise = begin_delete_async(resource_group_name, name, force_delete:force_delete, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#get(resource_group_name, name, custom_headers: nil) ⇒ AppServiceEnvironmentResource
Get the properties of an App Service Environment.
Get the properties of an App Service Environment.
resource belongs. will be added to the HTTP request.
231 232 233 234 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 231 def get(resource_group_name, name, custom_headers:nil) response = get_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get the properties of an App Service Environment.
Get the properties of an App Service Environment.
resource belongs. to the HTTP request.
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 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 266 def get_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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}' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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_diagnostics_item(resource_group_name, name, diagnostics_name, custom_headers: nil) ⇒ HostingEnvironmentDiagnostics
Get a diagnostics item for an App Service Environment.
Get a diagnostics item for an App Service Environment.
resource belongs. will be added to the HTTP request.
906 907 908 909 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 906 def get_diagnostics_item(resource_group_name, name, diagnostics_name, custom_headers:nil) response = get_diagnostics_item_async(resource_group_name, name, diagnostics_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_diagnostics_item_async(resource_group_name, name, diagnostics_name, custom_headers: nil) ⇒ Concurrent::Promise
Get a diagnostics item for an App Service Environment.
Get a diagnostics item for an App Service Environment.
resource belongs. to the HTTP request.
943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 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 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 943 def get_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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}' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::HostingEnvironmentDiagnostics.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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_diagnostics_item_with_http_info(resource_group_name, name, diagnostics_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get a diagnostics item for an App Service Environment.
Get a diagnostics item for an App Service Environment.
resource belongs. will be added to the HTTP request.
925 926 927 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 925 def get_diagnostics_item_with_http_info(resource_group_name, name, diagnostics_name, custom_headers:nil) get_diagnostics_item_async(resource_group_name, name, diagnostics_name, custom_headers:custom_headers).value! end |
#get_multi_role_pool(resource_group_name, name, custom_headers: nil) ⇒ WorkerPoolResource
Get properties of a multi-role pool.
Get properties of a multi-role pool.
resource belongs. will be added to the HTTP request.
1352 1353 1354 1355 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1352 def get_multi_role_pool(resource_group_name, name, custom_headers:nil) response = get_multi_role_pool_async(resource_group_name, name, custom_headers: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 multi-role pool.
Get properties of a multi-role pool.
resource belongs. to the HTTP request.
1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1387 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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get properties of a multi-role pool.
Get properties of a multi-role pool.
resource belongs. will be added to the HTTP request.
1370 1371 1372 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1370 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:custom_headers).value! end |
#get_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the properties of an App Service Environment.
Get the properties of an App Service Environment.
resource belongs. will be added to the HTTP request.
249 250 251 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 249 def get_with_http_info(resource_group_name, name, custom_headers:nil) get_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#get_worker_pool(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ WorkerPoolResource
Get properties of a worker pool.
Get properties of a worker pool.
resource belongs. will be added to the HTTP request.
3127 3128 3129 3130 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3127 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: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.
Get properties of a worker pool.
resource belongs. to the HTTP request.
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 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3164 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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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}' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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_with_http_info(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get properties of a worker pool.
Get properties of a worker pool.
resource belongs. will be added to the HTTP request.
3146 3147 3148 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3146 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:custom_headers).value! end |
#list(custom_headers: nil) ⇒ Array<AppServiceEnvironmentResource>
Get all App Service Environments for a subscription.
Get all App Service Environments for a subscription.
will be added to the HTTP request.
34 35 36 37 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 34 def list(custom_headers:nil) first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end |
#list_app_service_plans(resource_group_name, name, custom_headers: nil) ⇒ Array<AppServicePlan>
Get all App Service plans in an App Service Environment.
Get all App Service plans in an App Service Environment.
resource belongs. will be added to the HTTP request.
2614 2615 2616 2617 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2614 def list_app_service_plans(resource_group_name, name, custom_headers:nil) first_page = list_app_service_plans_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_app_service_plans_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ AppServicePlanCollection
Get all App Service plans in an App Service Environment.
Get all App Service plans in an App Service Environment.
resource belongs. will be added to the HTTP request.
response.
7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7524 def list_app_service_plans_as_lazy(resource_group_name, name, custom_headers:nil) response = list_app_service_plans_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_app_service_plans_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_app_service_plans_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get all App Service plans in an App Service Environment.
Get all App Service plans in an App Service Environment.
resource belongs. to the HTTP request.
2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2649 def list_app_service_plans_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServicePlanCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_app_service_plans_next(next_page_link, custom_headers: nil) ⇒ AppServicePlanCollection
Get all App Service plans in an App Service Environment.
Get all App Service plans in an App Service Environment.
to List operation. will be added to the HTTP request.
5993 5994 5995 5996 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5993 def list_app_service_plans_next(next_page_link, custom_headers:nil) response = list_app_service_plans_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_app_service_plans_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get all App Service plans in an App Service Environment.
Get all App Service plans in an App Service Environment.
to List operation. to the HTTP request.
6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6026 def list_app_service_plans_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServicePlanCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_app_service_plans_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all App Service plans in an App Service Environment.
Get all App Service plans in an App Service Environment.
to List operation. will be added to the HTTP request.
6010 6011 6012 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6010 def list_app_service_plans_next_with_http_info(next_page_link, custom_headers:nil) list_app_service_plans_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_app_service_plans_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all App Service plans in an App Service Environment.
Get all App Service plans in an App Service Environment.
resource belongs. will be added to the HTTP request.
2632 2633 2634 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2632 def list_app_service_plans_with_http_info(resource_group_name, name, custom_headers:nil) list_app_service_plans_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_as_lazy(custom_headers: nil) ⇒ AppServiceEnvironmentCollection
Get all App Service Environments for a subscription.
Get all App Service Environments for a subscription.
will be added to the HTTP request.
of the response.
7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7226 def list_as_lazy(custom_headers:nil) response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_async(custom_headers: nil) ⇒ Concurrent::Promise
Get all App Service Environments for a subscription.
Get all App Service Environments for a subscription.
to the HTTP request.
63 64 65 66 67 68 69 70 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 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 63 def list_async(custom_headers: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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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}/providers/Microsoft.Web/hostingEnvironments' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_resource_group(resource_group_name, custom_headers: nil) ⇒ Array<AppServiceEnvironmentResource>
Get all App Service Environments in a resource group.
Get all App Service Environments in a resource group.
resource belongs. will be added to the HTTP request.
128 129 130 131 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 128 def list_by_resource_group(resource_group_name, custom_headers:nil) first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end |
#list_by_resource_group_as_lazy(resource_group_name, custom_headers: nil) ⇒ AppServiceEnvironmentCollection
Get all App Service Environments in a resource group.
Get all App Service Environments in a resource group.
resource belongs. will be added to the HTTP request.
of the response.
7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7250 def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_by_resource_group_async(resource_group_name, custom_headers: nil) ⇒ Concurrent::Promise
Get all App Service Environments in a resource group.
Get all App Service Environments in a resource group.
resource belongs. to the HTTP request.
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 161 def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_resource_group_next(next_page_link, custom_headers: nil) ⇒ AppServiceEnvironmentCollection
Get all App Service Environments in a resource group.
Get all App Service Environments in a resource group.
to List operation. will be added to the HTTP request.
4971 4972 4973 4974 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4971 def list_by_resource_group_next(next_page_link, custom_headers:nil) response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_by_resource_group_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get all App Service Environments in a resource group.
Get all App Service Environments in a resource group.
to List operation. to the HTTP request.
5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5004 def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_resource_group_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all App Service Environments in a resource group.
Get all App Service Environments in a resource group.
to List operation. will be added to the HTTP request.
4988 4989 4990 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4988 def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_by_resource_group_with_http_info(resource_group_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all App Service Environments in a resource group.
Get all App Service Environments in a resource group.
resource belongs. will be added to the HTTP request.
145 146 147 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 145 def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end |
#list_capacities(resource_group_name, name, custom_headers: nil) ⇒ Array<StampCapacity>
Get the used, available, and total worker capacity an App Service Environment.
Get the used, available, and total worker capacity an App Service Environment.
resource belongs. will be added to the HTTP request.
567 568 569 570 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 567 def list_capacities(resource_group_name, name, custom_headers:nil) first_page = list_capacities_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_capacities_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ StampCapacityCollection
Get the used, available, and total worker capacity an App Service Environment.
Get the used, available, and total worker capacity an App Service Environment.
resource belongs. will be added to the HTTP request.
response.
7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7277 def list_capacities_as_lazy(resource_group_name, name, custom_headers:nil) response = list_capacities_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_capacities_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_capacities_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get the used, available, and total worker capacity an App Service Environment.
Get the used, available, and total worker capacity an App Service Environment.
resource belongs. to the HTTP request.
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 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 606 def list_capacities_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::StampCapacityCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_capacities_next(next_page_link, custom_headers: nil) ⇒ StampCapacityCollection
Get the used, available, and total worker capacity an App Service Environment.
Get the used, available, and total worker capacity an App Service Environment.
to List operation. will be added to the HTTP request.
5069 5070 5071 5072 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5069 def list_capacities_next(next_page_link, custom_headers:nil) response = list_capacities_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_capacities_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get the used, available, and total worker capacity an App Service Environment.
Get the used, available, and total worker capacity an App Service Environment.
to List operation. to the HTTP request.
5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5106 def list_capacities_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::StampCapacityCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_capacities_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the used, available, and total worker capacity an App Service Environment.
Get the used, available, and total worker capacity an App Service Environment.
to List operation. will be added to the HTTP request.
5088 5089 5090 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5088 def list_capacities_next_with_http_info(next_page_link, custom_headers:nil) list_capacities_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_capacities_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the used, available, and total worker capacity an App Service Environment.
Get the used, available, and total worker capacity an App Service Environment.
resource belongs. will be added to the HTTP request.
587 588 589 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 587 def list_capacities_with_http_info(resource_group_name, name, custom_headers:nil) list_capacities_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_diagnostics(resource_group_name, name, custom_headers: nil) ⇒ Array
Get diagnostic information for an App Service Environment.
Get diagnostic information for an App Service Environment.
resource belongs. will be added to the HTTP request.
783 784 785 786 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 783 def list_diagnostics(resource_group_name, name, custom_headers:nil) response = list_diagnostics_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_diagnostics_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get diagnostic information for an App Service Environment.
Get diagnostic information for an App Service Environment.
resource belongs. to the HTTP request.
818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 818 def list_diagnostics_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { client_side_validation: true, required: false, serialized_name: 'parsed_response', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'HostingEnvironmentDiagnosticsElementType', type: { name: 'Composite', class_name: 'HostingEnvironmentDiagnostics' } } } } result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_diagnostics_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get diagnostic information for an App Service Environment.
Get diagnostic information for an App Service Environment.
resource belongs. will be added to the HTTP request.
801 802 803 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 801 def list_diagnostics_with_http_info(resource_group_name, name, custom_headers:nil) list_diagnostics_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_metric_definitions(resource_group_name, name, custom_headers: nil) ⇒ MetricDefinition
Get global metric definitions of an App Service Environment.
Get global metric definitions of an App Service Environment.
resource belongs. will be added to the HTTP request.
1015 1016 1017 1018 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1015 def list_metric_definitions(resource_group_name, name, custom_headers:nil) response = list_metric_definitions_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_metric_definitions_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get global metric definitions of an App Service Environment.
Get global metric definitions of an App Service Environment.
resource belongs. 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 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1050 def list_metric_definitions_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::MetricDefinition.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_metric_definitions_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get global metric definitions of an App Service Environment.
Get global metric definitions of an App Service Environment.
resource belongs. will be added to the HTTP request.
1033 1034 1035 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1033 def list_metric_definitions_with_http_info(resource_group_name, name, custom_headers:nil) list_metric_definitions_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_metrics(resource_group_name, name, details: nil, filter: nil, custom_headers: nil) ⇒ Array<ResourceMetric>
Get global metrics of an App Service Environment.
Get global metrics of an App Service Environment.
resource belongs. details. The default is false. 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.
1127 1128 1129 1130 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1127 def list_metrics(resource_group_name, name, details:nil, filter:nil, custom_headers:nil) first_page = list_metrics_as_lazy(resource_group_name, name, details:details, filter:filter, custom_headers:custom_headers) first_page.get_all_items end |
#list_metrics_as_lazy(resource_group_name, name, details: nil, filter: nil, custom_headers: nil) ⇒ ResourceMetricCollection
Get global metrics of an App Service Environment.
Get global metrics of an App Service Environment.
resource belongs. details. The default is false. 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.
response.
7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7308 def list_metrics_as_lazy(resource_group_name, name, details:nil, filter:nil, custom_headers:nil) response = list_metrics_async(resource_group_name, name, details:details, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_metrics_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_metrics_async(resource_group_name, name, details: nil, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Get global metrics of an App Service Environment.
Get global metrics of an App Service Environment.
resource belongs. details. The default is false. 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.
1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1174 def list_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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,'api-version' => @client.api_version}, skip_encoding_query_params: {'$filter' => filter}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_metrics_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricCollection
Get global metrics of an App Service Environment.
Get global metrics of an App Service Environment.
to List operation. will be added to the HTTP request.
5169 5170 5171 5172 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5169 def list_metrics_next(next_page_link, custom_headers:nil) response = list_metrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_metrics_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get global metrics of an App Service Environment.
Get global metrics of an App Service Environment.
to List operation. to the HTTP request.
5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5202 def list_metrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_metrics_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get global metrics of an App Service Environment.
Get global metrics of an App Service Environment.
to List operation. will be added to the HTTP request.
5186 5187 5188 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5186 def list_metrics_next_with_http_info(next_page_link, custom_headers:nil) list_metrics_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_metrics_with_http_info(resource_group_name, name, details: nil, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get global metrics of an App Service Environment.
Get global metrics of an App Service Environment.
resource belongs. details. The default is false. 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.
1151 1152 1153 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1151 def list_metrics_with_http_info(resource_group_name, name, details:nil, filter:nil, custom_headers:nil) list_metrics_async(resource_group_name, name, details:details, filter:filter, custom_headers:custom_headers).value! end |
#list_multi_role_metric_definitions(resource_group_name, name, custom_headers: nil) ⇒ Array<ResourceMetricDefinition>
Get metric definitions for a multi-role pool of an App Service Environment.
Get metric definitions for a multi-role pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
1876 1877 1878 1879 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1876 def list_multi_role_metric_definitions(resource_group_name, name, custom_headers:nil) first_page = list_multi_role_metric_definitions_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_multi_role_metric_definitions_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Get metric definitions for a multi-role pool of an App Service Environment.
Get metric definitions for a multi-role pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
pages of the response.
7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7416 def list_multi_role_metric_definitions_as_lazy(resource_group_name, name, custom_headers:nil) response = list_multi_role_metric_definitions_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_multi_role_metric_definitions_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_multi_role_metric_definitions_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get metric definitions for a multi-role pool of an App Service Environment.
Get metric definitions for a multi-role pool of an App Service Environment.
resource belongs. to the HTTP request.
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 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1911 def list_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricDefinitionCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_multi_role_metric_definitions_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Get metric definitions for a multi-role pool of an App Service Environment.
Get metric definitions for a multi-role pool of an App Service Environment.
to List operation. will be added to the HTTP request.
5565 5566 5567 5568 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5565 def list_multi_role_metric_definitions_next(next_page_link, custom_headers:nil) response = list_multi_role_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_multi_role_metric_definitions_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get metric definitions for a multi-role pool of an App Service Environment.
Get metric definitions for a multi-role pool of an App Service Environment.
to List operation. to the HTTP request.
5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5598 def list_multi_role_metric_definitions_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricDefinitionCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_multi_role_metric_definitions_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a multi-role pool of an App Service Environment.
Get metric definitions for a multi-role pool of an App Service Environment.
to List operation. will be added to the HTTP request.
5582 5583 5584 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5582 def list_multi_role_metric_definitions_next_with_http_info(next_page_link, custom_headers:nil) list_multi_role_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_multi_role_metric_definitions_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a multi-role pool of an App Service Environment.
Get metric definitions for a multi-role pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
1894 1895 1896 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1894 def list_multi_role_metric_definitions_with_http_info(resource_group_name, name, custom_headers:nil) list_multi_role_metric_definitions_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_multi_role_metrics(resource_group_name, name, start_time: nil, end_time: nil, time_grain: nil, details: nil, filter: nil, custom_headers: nil) ⇒ Array<ResourceMetric>
Get metrics for a multi-role pool of an App Service Environment.
Get metrics for a multi-role pool of an App Service Environment.
resource belongs. details. The default is false. 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.
1991 1992 1993 1994 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1991 def list_multi_role_metrics(resource_group_name, name, start_time:nil, end_time:nil, time_grain:nil, details:nil, filter:nil, custom_headers:nil) first_page = list_multi_role_metrics_as_lazy(resource_group_name, name, start_time:start_time, end_time:end_time, time_grain:time_grain, details:details, filter:filter, custom_headers:custom_headers) first_page.get_all_items end |
#list_multi_role_metrics_as_lazy(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 multi-role pool of an App Service Environment.
Get metrics for a multi-role pool of an App Service Environment.
resource belongs. details. The default is false. 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.
response.
7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7450 def list_multi_role_metrics_as_lazy(resource_group_name, name, start_time:nil, end_time:nil, time_grain:nil, details:nil, filter:nil, custom_headers:nil) response = list_multi_role_metrics_async(resource_group_name, name, start_time:start_time, end_time:end_time, time_grain:time_grain, details:details, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_multi_role_metrics_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_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 multi-role pool of an App Service Environment.
Get metrics for a multi-role pool of an App Service Environment.
resource belongs. details. The default is false. 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.
2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2044 def list_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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,'api-version' => @client.api_version}, skip_encoding_query_params: {'$filter' => filter}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_multi_role_metrics_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricCollection
Get metrics for a multi-role pool of an App Service Environment.
Get metrics for a multi-role pool of an App Service Environment.
to List operation. will be added to the HTTP request.
5661 5662 5663 5664 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5661 def list_multi_role_metrics_next(next_page_link, custom_headers:nil) response = list_multi_role_metrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_multi_role_metrics_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get metrics for a multi-role pool of an App Service Environment.
Get metrics for a multi-role pool of an App Service Environment.
to List operation. to the HTTP request.
5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5694 def list_multi_role_metrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_multi_role_metrics_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metrics for a multi-role pool of an App Service Environment.
Get metrics for a multi-role pool of an App Service Environment.
to List operation. will be added to the HTTP request.
5678 5679 5680 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5678 def list_multi_role_metrics_next_with_http_info(next_page_link, custom_headers:nil) list_multi_role_metrics_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_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 multi-role pool of an App Service Environment.
Get metrics for a multi-role pool of an App Service Environment.
resource belongs. details. The default is false. 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.
2018 2019 2020 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2018 def list_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) list_multi_role_metrics_async(resource_group_name, name, start_time:start_time, end_time:end_time, time_grain:time_grain, details:details, filter:filter, custom_headers:custom_headers).value! end |
#list_multi_role_pool_instance_metric_definitions(resource_group_name, name, instance, custom_headers: nil) ⇒ Array<ResourceMetricDefinition>
Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
1641 1642 1643 1644 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1641 def list_multi_role_pool_instance_metric_definitions(resource_group_name, name, instance, custom_headers:nil) first_page = list_multi_role_pool_instance_metric_definitions_as_lazy(resource_group_name, name, instance, custom_headers:custom_headers) first_page.get_all_items end |
#list_multi_role_pool_instance_metric_definitions_as_lazy(resource_group_name, name, instance, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
pages of the response.
7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7361 def list_multi_role_pool_instance_metric_definitions_as_lazy(resource_group_name, name, instance, custom_headers:nil) response = list_multi_role_pool_instance_metric_definitions_async(resource_group_name, name, instance, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_multi_role_pool_instance_metric_definitions_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_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 multi-role pool of an App Service Environment.
Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
resource belongs. to the HTTP request.
1682 1683 1684 1685 1686 1687 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 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1682 def list_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricDefinitionCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_multi_role_pool_instance_metric_definitions_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
to List operation. will be added to the HTTP request.
5363 5364 5365 5366 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5363 def list_multi_role_pool_instance_metric_definitions_next(next_page_link, custom_headers:nil) response = list_multi_role_pool_instance_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_multi_role_pool_instance_metric_definitions_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
to List operation. to the HTTP request.
5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5400 def list_multi_role_pool_instance_metric_definitions_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricDefinitionCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_multi_role_pool_instance_metric_definitions_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
to List operation. will be added to the HTTP request.
5382 5383 5384 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5382 def list_multi_role_pool_instance_metric_definitions_next_with_http_info(next_page_link, custom_headers:nil) list_multi_role_pool_instance_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_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 multi-role pool of an App Service Environment.
Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
1662 1663 1664 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1662 def list_multi_role_pool_instance_metric_definitions_with_http_info(resource_group_name, name, instance, custom_headers:nil) list_multi_role_pool_instance_metric_definitions_async(resource_group_name, name, instance, custom_headers:custom_headers).value! end |
#list_multi_role_pool_instance_metrics(resource_group_name, name, instance, details: nil, custom_headers: nil) ⇒ Array<ResourceMetric>
Get metrics for a specific instance of a multi-role pool of an App Service Environment.
Get metrics for a specific instance of a multi-role pool of an App Service Environment.
resource belongs. details. The default is false. will be added to the HTTP request.
1759 1760 1761 1762 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1759 def list_multi_role_pool_instance_metrics(resource_group_name, name, instance, details:nil, custom_headers:nil) first_page = list_multi_role_pool_instance_metrics_as_lazy(resource_group_name, name, instance, details:details, custom_headers:custom_headers) first_page.get_all_items end |
#list_multi_role_pool_instance_metrics_as_lazy(resource_group_name, name, instance, details: nil, custom_headers: nil) ⇒ ResourceMetricCollection
Get metrics for a specific instance of a multi-role pool of an App Service Environment.
Get metrics for a specific instance of a multi-role pool of an App Service Environment.
resource belongs. details. The default is false. will be added to the HTTP request.
response.
7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7391 def list_multi_role_pool_instance_metrics_as_lazy(resource_group_name, name, instance, details:nil, custom_headers:nil) response = list_multi_role_pool_instance_metrics_async(resource_group_name, name, instance, details:details, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_multi_role_pool_instance_metrics_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_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 multi-role pool of an App Service Environment.
Get metrics for a specific instance of a multi-role pool of an App Service Environment.
resource belongs. details. The default is false. to the HTTP request.
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 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1804 def list_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_multi_role_pool_instance_metrics_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricCollection
Get metrics for a specific instance of a multi-role pool of an App Service Environment.
Get metrics for a specific instance of a multi-role pool of an App Service Environment.
to List operation. will be added to the HTTP request.
5465 5466 5467 5468 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5465 def list_multi_role_pool_instance_metrics_next(next_page_link, custom_headers:nil) response = list_multi_role_pool_instance_metrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_multi_role_pool_instance_metrics_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get metrics for a specific instance of a multi-role pool of an App Service Environment.
Get metrics for a specific instance of a multi-role pool of an App Service Environment.
to List operation. to the HTTP request.
5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5502 def list_multi_role_pool_instance_metrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_multi_role_pool_instance_metrics_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metrics for a specific instance of a multi-role pool of an App Service Environment.
Get metrics for a specific instance of a multi-role pool of an App Service Environment.
to List operation. will be added to the HTTP request.
5484 5485 5486 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5484 def list_multi_role_pool_instance_metrics_next_with_http_info(next_page_link, custom_headers:nil) list_multi_role_pool_instance_metrics_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_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 multi-role pool of an App Service Environment.
Get metrics for a specific instance of a multi-role pool of an App Service Environment.
resource belongs. details. The default is false. will be added to the HTTP request.
1782 1783 1784 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1782 def list_multi_role_pool_instance_metrics_with_http_info(resource_group_name, name, instance, details:nil, custom_headers:nil) list_multi_role_pool_instance_metrics_async(resource_group_name, name, instance, details:details, custom_headers:custom_headers).value! end |
#list_multi_role_pool_skus(resource_group_name, name, custom_headers: nil) ⇒ Array<SkuInfo>
Get available SKUs for scaling a multi-role pool.
Get available SKUs for scaling a multi-role pool.
resource belongs. will be added to the HTTP request.
2116 2117 2118 2119 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2116 def list_multi_role_pool_skus(resource_group_name, name, custom_headers:nil) first_page = list_multi_role_pool_skus_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_multi_role_pool_skus_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ SkuInfoCollection
Get available SKUs for scaling a multi-role pool.
Get available SKUs for scaling a multi-role pool.
resource belongs. will be added to the HTTP request.
response.
7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7475 def list_multi_role_pool_skus_as_lazy(resource_group_name, name, custom_headers:nil) response = list_multi_role_pool_skus_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_multi_role_pool_skus_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_multi_role_pool_skus_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get available SKUs for scaling a multi-role pool.
Get available SKUs for scaling a multi-role pool.
resource belongs. to the HTTP request.
2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2151 def list_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::SkuInfoCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_multi_role_pool_skus_next(next_page_link, custom_headers: nil) ⇒ SkuInfoCollection
Get available SKUs for scaling a multi-role pool.
Get available SKUs for scaling a multi-role pool.
to List operation. will be added to the HTTP request.
5757 5758 5759 5760 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5757 def list_multi_role_pool_skus_next(next_page_link, custom_headers:nil) response = list_multi_role_pool_skus_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_multi_role_pool_skus_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get available SKUs for scaling a multi-role pool.
Get available SKUs for scaling a multi-role pool.
to List operation. to the HTTP request.
5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5790 def list_multi_role_pool_skus_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::SkuInfoCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_multi_role_pool_skus_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get available SKUs for scaling a multi-role pool.
Get available SKUs for scaling a multi-role pool.
to List operation. will be added to the HTTP request.
5774 5775 5776 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5774 def list_multi_role_pool_skus_next_with_http_info(next_page_link, custom_headers:nil) list_multi_role_pool_skus_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_multi_role_pool_skus_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get available SKUs for scaling a multi-role pool.
Get available SKUs for scaling a multi-role pool.
resource belongs. will be added to the HTTP request.
2134 2135 2136 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2134 def list_multi_role_pool_skus_with_http_info(resource_group_name, name, custom_headers:nil) list_multi_role_pool_skus_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_multi_role_pools(resource_group_name, name, custom_headers: nil) ⇒ Array<WorkerPoolResource>
Get all multi-role pools.
Get all multi-role pools.
resource belongs. will be added to the HTTP request.
1246 1247 1248 1249 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1246 def list_multi_role_pools(resource_group_name, name, custom_headers:nil) first_page = list_multi_role_pools_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_multi_role_pools_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ WorkerPoolCollection
Get all multi-role pools.
Get all multi-role pools.
resource belongs. will be added to the HTTP request.
response.
7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7333 def list_multi_role_pools_as_lazy(resource_group_name, name, custom_headers:nil) response = list_multi_role_pools_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_multi_role_pools_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_multi_role_pools_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get all multi-role pools.
Get all multi-role pools.
resource belongs. to the HTTP request.
1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1281 def list_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_multi_role_pools_next(next_page_link, custom_headers: nil) ⇒ WorkerPoolCollection
Get all multi-role pools.
Get all multi-role pools.
to List operation. will be added to the HTTP request.
5265 5266 5267 5268 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5265 def list_multi_role_pools_next(next_page_link, custom_headers:nil) response = list_multi_role_pools_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_multi_role_pools_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get all multi-role pools.
Get all multi-role pools.
to List operation. to the HTTP request.
5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5298 def list_multi_role_pools_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_multi_role_pools_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all multi-role pools.
Get all multi-role pools.
to List operation. will be added to the HTTP request.
5282 5283 5284 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5282 def list_multi_role_pools_next_with_http_info(next_page_link, custom_headers:nil) list_multi_role_pools_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_multi_role_pools_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all multi-role pools.
Get all multi-role pools.
resource belongs. will be added to the HTTP request.
1264 1265 1266 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1264 def list_multi_role_pools_with_http_info(resource_group_name, name, custom_headers:nil) list_multi_role_pools_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_multi_role_usages(resource_group_name, name, custom_headers: nil) ⇒ Array<Usage>
Get usage metrics for a multi-role pool of an App Service Environment.
Get usage metrics for a multi-role pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
2222 2223 2224 2225 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2222 def list_multi_role_usages(resource_group_name, name, custom_headers:nil) first_page = list_multi_role_usages_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_multi_role_usages_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ UsageCollection
Get usage metrics for a multi-role pool of an App Service Environment.
Get usage metrics for a multi-role pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7499 def list_multi_role_usages_as_lazy(resource_group_name, name, custom_headers:nil) response = list_multi_role_usages_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_multi_role_usages_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_multi_role_usages_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get usage metrics for a multi-role pool of an App Service Environment.
Get usage metrics for a multi-role pool of an App Service Environment.
resource belongs. to the HTTP request.
2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 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 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2257 def list_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::UsageCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_multi_role_usages_next(next_page_link, custom_headers: nil) ⇒ UsageCollection
Get usage metrics for a multi-role pool of an App Service Environment.
Get usage metrics for a multi-role pool of an App Service Environment.
to List operation. will be added to the HTTP request.
5853 5854 5855 5856 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5853 def list_multi_role_usages_next(next_page_link, custom_headers:nil) response = list_multi_role_usages_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_multi_role_usages_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get usage metrics for a multi-role pool of an App Service Environment.
Get usage metrics for a multi-role pool of an App Service Environment.
to List operation. to the HTTP request.
5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5886 def list_multi_role_usages_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::UsageCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_multi_role_usages_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get usage metrics for a multi-role pool of an App Service Environment.
Get usage metrics for a multi-role pool of an App Service Environment.
to List operation. will be added to the HTTP request.
5870 5871 5872 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5870 def list_multi_role_usages_next_with_http_info(next_page_link, custom_headers:nil) list_multi_role_usages_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_multi_role_usages_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get usage metrics for a multi-role pool of an App Service Environment.
Get usage metrics for a multi-role pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
2240 2241 2242 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2240 def list_multi_role_usages_with_http_info(resource_group_name, name, custom_headers:nil) list_multi_role_usages_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_next(next_page_link, custom_headers: nil) ⇒ AppServiceEnvironmentCollection
Get all App Service Environments for a subscription.
Get all App Service Environments for a subscription.
to List operation. will be added to the HTTP request.
4875 4876 4877 4878 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4875 def list_next(next_page_link, custom_headers:nil) response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get all App Service Environments for a subscription.
Get all App Service Environments for a subscription.
to List operation. to the HTTP request.
4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4908 def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all App Service Environments for a subscription.
Get all App Service Environments for a subscription.
to List operation. will be added to the HTTP request.
4892 4893 4894 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4892 def list_next_with_http_info(next_page_link, custom_headers:nil) list_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_operations(resource_group_name, name, custom_headers: nil) ⇒ Array
List all currently running operations on the App Service Environment.
List all currently running operations on the App Service Environment.
resource belongs. will be added to the HTTP request.
2328 2329 2330 2331 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2328 def list_operations(resource_group_name, name, custom_headers:nil) response = list_operations_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_operations_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
List all currently running operations on the App Service Environment.
List all currently running operations on the App Service Environment.
resource belongs. to the HTTP request.
2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 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 2433 2434 2435 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2363 def list_operations_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { client_side_validation: true, required: false, serialized_name: 'parsed_response', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'OperationElementType', type: { name: 'Composite', class_name: 'Operation' } } } } result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_operations_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List all currently running operations on the App Service Environment.
List all currently running operations on the App Service Environment.
resource belongs. will be added to the HTTP request.
2346 2347 2348 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2346 def list_operations_with_http_info(resource_group_name, name, custom_headers:nil) list_operations_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_usages(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ Array<CsmUsageQuota>
Get global usage metrics of an App Service Environment.
Get global usage metrics of an App Service Environment.
resource belongs. 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.
2905 2906 2907 2908 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2905 def list_usages(resource_group_name, name, filter:nil, custom_headers:nil) first_page = list_usages_as_lazy(resource_group_name, name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end |
#list_usages_as_lazy(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ CsmUsageQuotaCollection
Get global usage metrics of an App Service Environment.
Get global usage metrics of an App Service Environment.
resource belongs. 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.
response.
7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7580 def list_usages_as_lazy(resource_group_name, name, filter:nil, custom_headers:nil) response = list_usages_async(resource_group_name, name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_usages_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_usages_async(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Get global usage metrics of an App Service Environment.
Get global usage metrics of an App Service Environment.
resource belongs. 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.
2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2948 def list_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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}, skip_encoding_query_params: {'$filter' => filter}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::CsmUsageQuotaCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_usages_next(next_page_link, custom_headers: nil) ⇒ CsmUsageQuotaCollection
Get global usage metrics of an App Service Environment.
Get global usage metrics of an App Service Environment.
to List operation. will be added to the HTTP request.
6229 6230 6231 6232 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6229 def list_usages_next(next_page_link, custom_headers:nil) response = list_usages_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_usages_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get global usage metrics of an App Service Environment.
Get global usage metrics of an App Service Environment.
to List operation. to the HTTP request.
6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6262 def list_usages_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::CsmUsageQuotaCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_usages_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get global usage metrics of an App Service Environment.
Get global usage metrics of an App Service Environment.
to List operation. will be added to the HTTP request.
6246 6247 6248 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6246 def list_usages_next_with_http_info(next_page_link, custom_headers:nil) list_usages_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_usages_with_http_info(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get global usage metrics of an App Service Environment.
Get global usage metrics of an App Service Environment.
resource belongs. 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.
2927 2928 2929 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2927 def list_usages_with_http_info(resource_group_name, name, filter:nil, custom_headers:nil) list_usages_async(resource_group_name, name, filter:filter, custom_headers:custom_headers).value! end |
#list_vips(resource_group_name, name, custom_headers: nil) ⇒ AddressResponse
Get IP addresses assigned to an App Service Environment.
Get IP addresses assigned to an App Service Environment.
resource belongs. will be added to the HTTP request.
677 678 679 680 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 677 def list_vips(resource_group_name, name, custom_headers:nil) response = list_vips_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_vips_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get IP addresses assigned to an App Service Environment.
Get IP addresses assigned to an App Service Environment.
resource belongs. to the HTTP request.
712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 712 def list_vips_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AddressResponse.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_vips_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get IP addresses assigned to an App Service Environment.
Get IP addresses assigned to an App Service Environment.
resource belongs. will be added to the HTTP request.
695 696 697 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 695 def list_vips_with_http_info(resource_group_name, name, custom_headers:nil) list_vips_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_web_apps(resource_group_name, name, properties_to_include: nil, custom_headers: nil) ⇒ Array<Site>
Get all apps in an App Service Environment.
Get all apps in an App Service Environment.
resource belongs. to include. will be added to the HTTP request.
2722 2723 2724 2725 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2722 def list_web_apps(resource_group_name, name, properties_to_include:nil, custom_headers:nil) first_page = list_web_apps_as_lazy(resource_group_name, name, properties_to_include:properties_to_include, custom_headers:custom_headers) first_page.get_all_items end |
#list_web_apps_as_lazy(resource_group_name, name, properties_to_include: nil, custom_headers: nil) ⇒ WebAppCollection
Get all apps in an App Service Environment.
Get all apps in an App Service Environment.
resource belongs. to include. will be added to the HTTP request.
response.
7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7551 def list_web_apps_as_lazy(resource_group_name, name, properties_to_include:nil, custom_headers:nil) response = list_web_apps_async(resource_group_name, name, properties_to_include:properties_to_include, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_web_apps_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_web_apps_async(resource_group_name, name, properties_to_include: nil, custom_headers: nil) ⇒ Concurrent::Promise
Get all apps in an App Service Environment.
Get all apps in an App Service Environment.
resource belongs. to include. to the HTTP request.
2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2761 def list_web_apps_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_web_apps_next(next_page_link, custom_headers: nil) ⇒ WebAppCollection
Get all apps in an App Service Environment.
Get all apps in an App Service Environment.
to List operation. will be added to the HTTP request.
6089 6090 6091 6092 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6089 def list_web_apps_next(next_page_link, custom_headers:nil) response = list_web_apps_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_web_apps_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get all apps in an App Service Environment.
Get all apps in an App Service Environment.
to List operation. to the HTTP request.
6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6122 def list_web_apps_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_web_apps_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all apps in an App Service Environment.
Get all apps in an App Service Environment.
to List operation. will be added to the HTTP request.
6106 6107 6108 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6106 def list_web_apps_next_with_http_info(next_page_link, custom_headers:nil) list_web_apps_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_web_apps_with_http_info(resource_group_name, name, properties_to_include: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all apps in an App Service Environment.
Get all apps in an App Service Environment.
resource belongs. to include. will be added to the HTTP request.
2742 2743 2744 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2742 def list_web_apps_with_http_info(resource_group_name, name, properties_to_include:nil, custom_headers:nil) list_web_apps_async(resource_group_name, name, properties_to_include:properties_to_include, custom_headers:custom_headers).value! end |
#list_web_worker_metric_definitions(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ Array<ResourceMetricDefinition>
Get metric definitions for a worker pool of an App Service Environment.
Get metric definitions for a worker pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
3682 3683 3684 3685 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3682 def list_web_worker_metric_definitions(resource_group_name, name, worker_pool_name, custom_headers:nil) first_page = list_web_worker_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, custom_headers:custom_headers) first_page.get_all_items end |
#list_web_worker_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Get metric definitions for a worker pool of an App Service Environment.
Get metric definitions for a worker pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
pages of the response.
7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7695 def list_web_worker_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, custom_headers:nil) response = list_web_worker_metric_definitions_async(resource_group_name, name, worker_pool_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_web_worker_metric_definitions_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_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 an App Service Environment.
Get metric definitions for a worker pool of an App Service Environment.
resource belongs. to the HTTP request.
3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3719 def list_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricDefinitionCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_web_worker_metric_definitions_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Get metric definitions for a worker pool of an App Service Environment.
Get metric definitions for a worker pool of an App Service Environment.
to List operation. will be added to the HTTP request.
6625 6626 6627 6628 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6625 def list_web_worker_metric_definitions_next(next_page_link, custom_headers:nil) response = list_web_worker_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_web_worker_metric_definitions_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get metric definitions for a worker pool of an App Service Environment.
Get metric definitions for a worker pool of an App Service Environment.
to List operation. to the HTTP request.
6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6658 def list_web_worker_metric_definitions_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricDefinitionCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_web_worker_metric_definitions_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a worker pool of an App Service Environment.
Get metric definitions for a worker pool of an App Service Environment.
to List operation. will be added to the HTTP request.
6642 6643 6644 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6642 def list_web_worker_metric_definitions_next_with_http_info(next_page_link, custom_headers:nil) list_web_worker_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_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 an App Service Environment.
Get metric definitions for a worker pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
3701 3702 3703 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3701 def list_web_worker_metric_definitions_with_http_info(resource_group_name, name, worker_pool_name, custom_headers:nil) list_web_worker_metric_definitions_async(resource_group_name, name, worker_pool_name, custom_headers:custom_headers).value! end |
#list_web_worker_metrics(resource_group_name, name, worker_pool_name, details: nil, filter: nil, custom_headers: nil) ⇒ Array<ResourceMetric>
Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
resource belongs. details. The default is false. 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.
3800 3801 3802 3803 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3800 def list_web_worker_metrics(resource_group_name, name, worker_pool_name, details:nil, filter:nil, custom_headers:nil) first_page = list_web_worker_metrics_as_lazy(resource_group_name, name, worker_pool_name, details:details, filter:filter, custom_headers:custom_headers) first_page.get_all_items end |
#list_web_worker_metrics_as_lazy(resource_group_name, name, worker_pool_name, details: nil, filter: nil, custom_headers: nil) ⇒ ResourceMetricCollection
Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
resource belongs. details. The default is false. 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.
response.
7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7729 def list_web_worker_metrics_as_lazy(resource_group_name, name, worker_pool_name, details:nil, filter:nil, custom_headers:nil) response = list_web_worker_metrics_async(resource_group_name, name, worker_pool_name, details:details, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_web_worker_metrics_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_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 AppServiceEnvironment (App Service Environment).
Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
resource belongs. details. The default is false. 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.
3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3853 def list_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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,'api-version' => @client.api_version}, skip_encoding_query_params: {'$filter' => filter}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_web_worker_metrics_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricCollection
Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
to List operation. will be added to the HTTP request.
6723 6724 6725 6726 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6723 def list_web_worker_metrics_next(next_page_link, custom_headers:nil) response = list_web_worker_metrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_web_worker_metrics_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
to List operation. to the HTTP request.
6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6760 def list_web_worker_metrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_web_worker_metrics_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
to List operation. will be added to the HTTP request.
6742 6743 6744 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6742 def list_web_worker_metrics_next_with_http_info(next_page_link, custom_headers:nil) list_web_worker_metrics_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_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 AppServiceEnvironment (App Service Environment).
Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
resource belongs. details. The default is false. 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.
3827 3828 3829 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3827 def list_web_worker_metrics_with_http_info(resource_group_name, name, worker_pool_name, details:nil, filter:nil, custom_headers:nil) list_web_worker_metrics_async(resource_group_name, name, worker_pool_name, details:details, filter:filter, custom_headers:custom_headers).value! end |
#list_web_worker_usages(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ Array<Usage>
Get usage metrics for a worker pool of an App Service Environment.
Get usage metrics for a worker pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
4037 4038 4039 4040 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4037 def list_web_worker_usages(resource_group_name, name, worker_pool_name, custom_headers:nil) first_page = list_web_worker_usages_as_lazy(resource_group_name, name, worker_pool_name, custom_headers:custom_headers) first_page.get_all_items end |
#list_web_worker_usages_as_lazy(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ UsageCollection
Get usage metrics for a worker pool of an App Service Environment.
Get usage metrics for a worker pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7780 def list_web_worker_usages_as_lazy(resource_group_name, name, worker_pool_name, custom_headers:nil) response = list_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_web_worker_usages_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ Concurrent::Promise
Get usage metrics for a worker pool of an App Service Environment.
Get usage metrics for a worker pool of an App Service Environment.
resource belongs. to the HTTP request.
4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4074 def list_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::UsageCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_web_worker_usages_next(next_page_link, custom_headers: nil) ⇒ UsageCollection
Get usage metrics for a worker pool of an App Service Environment.
Get usage metrics for a worker pool of an App Service Environment.
to List operation. will be added to the HTTP request.
6919 6920 6921 6922 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6919 def list_web_worker_usages_next(next_page_link, custom_headers:nil) response = list_web_worker_usages_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_web_worker_usages_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get usage metrics for a worker pool of an App Service Environment.
Get usage metrics for a worker pool of an App Service Environment.
to List operation. to the HTTP request.
6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6952 def list_web_worker_usages_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::UsageCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_web_worker_usages_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get usage metrics for a worker pool of an App Service Environment.
Get usage metrics for a worker pool of an App Service Environment.
to List operation. will be added to the HTTP request.
6936 6937 6938 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6936 def list_web_worker_usages_next_with_http_info(next_page_link, custom_headers:nil) list_web_worker_usages_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_web_worker_usages_with_http_info(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get usage metrics for a worker pool of an App Service Environment.
Get usage metrics for a worker pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
4056 4057 4058 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 4056 def list_web_worker_usages_with_http_info(resource_group_name, name, worker_pool_name, custom_headers:nil) list_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers:custom_headers).value! end |
#list_with_http_info(custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all App Service Environments for a subscription.
Get all App Service Environments for a subscription.
will be added to the HTTP request.
49 50 51 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 49 def list_with_http_info(custom_headers:nil) list_async(custom_headers:custom_headers).value! end |
#list_worker_pool_instance_metric_definitions(resource_group_name, name, worker_pool_name, instance, custom_headers: nil) ⇒ Array<ResourceMetricDefinition>
Get metric definitions for a specific instance of a worker pool of an App Service Environment.
Get metric definitions for a specific instance of a worker pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
3426 3427 3428 3429 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3426 def list_worker_pool_instance_metric_definitions(resource_group_name, name, worker_pool_name, instance, custom_headers:nil) first_page = list_worker_pool_instance_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, instance, custom_headers:custom_headers) first_page.get_all_items end |
#list_worker_pool_instance_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, instance, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Get metric definitions for a specific instance of a worker pool of an App Service Environment.
Get metric definitions for a specific instance of a worker pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
pages of the response.
7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7634 def list_worker_pool_instance_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, instance, custom_headers:nil) response = list_worker_pool_instance_metric_definitions_async(resource_group_name, name, worker_pool_name, instance, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_worker_pool_instance_metric_definitions_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_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 an App Service Environment.
Get metric definitions for a specific instance of a worker pool of an App Service Environment.
resource belongs. to the HTTP request.
3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 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 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3469 def list_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricDefinitionCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_worker_pool_instance_metric_definitions_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Get metric definitions for a specific instance of a worker pool of an App Service Environment.
Get metric definitions for a specific instance of a worker pool of an App Service Environment.
to List operation. will be added to the HTTP request.
6423 6424 6425 6426 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6423 def list_worker_pool_instance_metric_definitions_next(next_page_link, custom_headers:nil) response = list_worker_pool_instance_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_worker_pool_instance_metric_definitions_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get metric definitions for a specific instance of a worker pool of an App Service Environment.
Get metric definitions for a specific instance of a worker pool of an App Service Environment.
to List operation. to the HTTP request.
6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6460 def list_worker_pool_instance_metric_definitions_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricDefinitionCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_worker_pool_instance_metric_definitions_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metric definitions for a specific instance of a worker pool of an App Service Environment.
Get metric definitions for a specific instance of a worker pool of an App Service Environment.
to List operation. will be added to the HTTP request.
6442 6443 6444 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6442 def list_worker_pool_instance_metric_definitions_next_with_http_info(next_page_link, custom_headers:nil) list_worker_pool_instance_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_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 an App Service Environment.
Get metric definitions for a specific instance of a worker pool of an App Service Environment.
resource belongs. will be added to the HTTP request.
3448 3449 3450 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3448 def list_worker_pool_instance_metric_definitions_with_http_info(resource_group_name, name, worker_pool_name, instance, custom_headers:nil) list_worker_pool_instance_metric_definitions_async(resource_group_name, name, worker_pool_name, instance, custom_headers:custom_headers).value! end |
#list_worker_pool_instance_metrics(resource_group_name, name, worker_pool_name, instance, details: nil, filter: nil, custom_headers: nil) ⇒ Array<ResourceMetric>
Get metrics for a specific instance of a worker pool of an App Service Environment.
Get metrics for a specific instance of a worker pool of an App Service Environment.
resource belongs. details. The default is false. 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.
3552 3553 3554 3555 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3552 def list_worker_pool_instance_metrics(resource_group_name, name, worker_pool_name, instance, details:nil, filter:nil, custom_headers:nil) first_page = list_worker_pool_instance_metrics_as_lazy(resource_group_name, name, worker_pool_name, instance, details:details, filter:filter, custom_headers:custom_headers) first_page.get_all_items end |
#list_worker_pool_instance_metrics_as_lazy(resource_group_name, name, worker_pool_name, instance, details: nil, filter: nil, custom_headers: nil) ⇒ ResourceMetricCollection
Get metrics for a specific instance of a worker pool of an App Service Environment.
Get metrics for a specific instance of a worker pool of an App Service Environment.
resource belongs. details. The default is false. 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.
response.
7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7669 def list_worker_pool_instance_metrics_as_lazy(resource_group_name, name, worker_pool_name, instance, details:nil, filter:nil, custom_headers:nil) response = list_worker_pool_instance_metrics_async(resource_group_name, name, worker_pool_name, instance, details:details, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_worker_pool_instance_metrics_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_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 an App Service Environment.
Get metrics for a specific instance of a worker pool of an App Service Environment.
resource belongs. details. The default is false. 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.
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 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3607 def list_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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,'api-version' => @client.api_version}, skip_encoding_query_params: {'$filter' => filter}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_worker_pool_instance_metrics_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricCollection
Get metrics for a specific instance of a worker pool of an App Service Environment.
Get metrics for a specific instance of a worker pool of an App Service Environment.
to List operation. will be added to the HTTP request.
6525 6526 6527 6528 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6525 def list_worker_pool_instance_metrics_next(next_page_link, custom_headers:nil) response = list_worker_pool_instance_metrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_worker_pool_instance_metrics_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get metrics for a specific instance of a worker pool of an App Service Environment.
Get metrics for a specific instance of a worker pool of an App Service Environment.
to List operation. to the HTTP request.
6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6562 def list_worker_pool_instance_metrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_worker_pool_instance_metrics_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get metrics for a specific instance of a worker pool of an App Service Environment.
Get metrics for a specific instance of a worker pool of an App Service Environment.
to List operation. will be added to the HTTP request.
6544 6545 6546 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6544 def list_worker_pool_instance_metrics_next_with_http_info(next_page_link, custom_headers:nil) list_worker_pool_instance_metrics_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_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 an App Service Environment.
Get metrics for a specific instance of a worker pool of an App Service Environment.
resource belongs. details. The default is false. 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.
3580 3581 3582 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3580 def list_worker_pool_instance_metrics_with_http_info(resource_group_name, name, worker_pool_name, instance, details:nil, filter:nil, custom_headers:nil) list_worker_pool_instance_metrics_async(resource_group_name, name, worker_pool_name, instance, details:details, filter:filter, custom_headers:custom_headers).value! end |
#list_worker_pool_skus(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ Array<SkuInfo>
Get available SKUs for scaling a worker pool.
Get available SKUs for scaling a worker pool.
resource belongs. will be added to the HTTP request.
3927 3928 3929 3930 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3927 def list_worker_pool_skus(resource_group_name, name, worker_pool_name, custom_headers:nil) first_page = list_worker_pool_skus_as_lazy(resource_group_name, name, worker_pool_name, custom_headers:custom_headers) first_page.get_all_items end |
#list_worker_pool_skus_as_lazy(resource_group_name, name, worker_pool_name, custom_headers: nil) ⇒ SkuInfoCollection
Get available SKUs for scaling a worker pool.
Get available SKUs for scaling a worker pool.
resource belongs. will be added to the HTTP request.
response.
7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7755 def list_worker_pool_skus_as_lazy(resource_group_name, name, worker_pool_name, custom_headers:nil) response = list_worker_pool_skus_async(resource_group_name, name, worker_pool_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_worker_pool_skus_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_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 available SKUs for scaling a worker pool.
resource belongs. to the HTTP request.
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 4018 4019 4020 4021 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3964 def list_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::SkuInfoCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_worker_pool_skus_next(next_page_link, custom_headers: nil) ⇒ SkuInfoCollection
Get available SKUs for scaling a worker pool.
Get available SKUs for scaling a worker pool.
to List operation. will be added to the HTTP request.
6823 6824 6825 6826 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6823 def list_worker_pool_skus_next(next_page_link, custom_headers:nil) response = list_worker_pool_skus_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_worker_pool_skus_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get available SKUs for scaling a worker pool.
Get available SKUs for scaling a worker pool.
to List operation. to the HTTP request.
6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6856 def list_worker_pool_skus_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::SkuInfoCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_worker_pool_skus_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get available SKUs for scaling a worker pool.
Get available SKUs for scaling a worker pool.
to List operation. will be added to the HTTP request.
6840 6841 6842 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6840 def list_worker_pool_skus_next_with_http_info(next_page_link, custom_headers:nil) list_worker_pool_skus_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_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 available SKUs for scaling a worker pool.
resource belongs. will be added to the HTTP request.
3946 3947 3948 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3946 def list_worker_pool_skus_with_http_info(resource_group_name, name, worker_pool_name, custom_headers:nil) list_worker_pool_skus_async(resource_group_name, name, worker_pool_name, custom_headers:custom_headers).value! end |
#list_worker_pools(resource_group_name, name, custom_headers: nil) ⇒ Array<WorkerPoolResource>
Get all worker pools of an App Service Environment.
Get all worker pools of an App Service Environment.
resource belongs. will be added to the HTTP request.
3020 3021 3022 3023 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3020 def list_worker_pools(resource_group_name, name, custom_headers:nil) first_page = list_worker_pools_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_worker_pools_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ WorkerPoolCollection
Get all worker pools of an App Service Environment.
Get all worker pools of an App Service Environment.
resource belongs. will be added to the HTTP request.
response.
7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 7605 def list_worker_pools_as_lazy(resource_group_name, name, custom_headers:nil) response = list_worker_pools_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_worker_pools_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_worker_pools_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get all worker pools of an App Service Environment.
Get all worker pools of an App Service Environment.
resource belongs. to the HTTP request.
3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3055 def list_worker_pools_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_worker_pools_next(next_page_link, custom_headers: nil) ⇒ WorkerPoolCollection
Get all worker pools of an App Service Environment.
Get all worker pools of an App Service Environment.
to List operation. will be added to the HTTP request.
6325 6326 6327 6328 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6325 def list_worker_pools_next(next_page_link, custom_headers:nil) response = list_worker_pools_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_worker_pools_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get all worker pools of an App Service Environment.
Get all worker pools of an App Service Environment.
to List operation. to the HTTP request.
6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6358 def list_worker_pools_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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 = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_worker_pools_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all worker pools of an App Service Environment.
Get all worker pools of an App Service Environment.
to List operation. will be added to the HTTP request.
6342 6343 6344 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6342 def list_worker_pools_next_with_http_info(next_page_link, custom_headers:nil) list_worker_pools_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_worker_pools_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all worker pools of an App Service Environment.
Get all worker pools of an App Service Environment.
resource belongs. will be added to the HTTP request.
3038 3039 3040 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3038 def list_worker_pools_with_http_info(resource_group_name, name, custom_headers:nil) list_worker_pools_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#reboot(resource_group_name, name, custom_headers: nil) ⇒ Object
Reboot all machines in an App Service Environment.
Reboot all machines in an App Service Environment.
resource belongs. will be added to the HTTP request.
2449 2450 2451 2452 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2449 def reboot(resource_group_name, name, custom_headers:nil) response = reboot_async(resource_group_name, name, custom_headers:custom_headers).value! nil end |
#reboot_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Reboot all machines in an App Service Environment.
Reboot all machines in an App Service Environment.
resource belongs. to the HTTP request.
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 2527 2528 2529 2530 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2484 def reboot_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#reboot_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Reboot all machines in an App Service Environment.
Reboot all machines in an App Service Environment.
resource belongs. will be added to the HTTP request.
2467 2468 2469 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2467 def reboot_with_http_info(resource_group_name, name, custom_headers:nil) reboot_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#resume(resource_group_name, name, custom_headers: nil) ⇒ Array<Site>
Resume an App Service Environment.
Resume an App Service Environment.
resource belongs. will be added to the HTTP request.
2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2545 def resume(resource_group_name, name, custom_headers:nil) response = resume_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| resume_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#resume_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. will be added to the HTTP request.
response.
2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2583 def resume_async(resource_group_name, name, custom_headers:nil) # Send request promise = begin_resume_async(resource_group_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#resume_next(next_page_link, custom_headers: nil) ⇒ WebAppCollection
Resume an App Service Environment.
Resume an App Service Environment.
to List operation. will be added to the HTTP request.
5949 5950 5951 5952 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5949 def resume_next(next_page_link, custom_headers:nil) response = resume_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#resume_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
to List operation. will be added to the HTTP request.
response.
5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 5963 def resume_next_async(next_page_link, custom_headers:nil) # Send request promise = begin_resume_next_async(next_page_link, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#suspend(resource_group_name, name, custom_headers: nil) ⇒ Array<Site>
Suspend an App Service Environment.
Suspend an App Service Environment.
resource belongs. will be added to the HTTP request.
2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2832 def suspend(resource_group_name, name, custom_headers:nil) response = suspend_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| suspend_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#suspend_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. will be added to the HTTP request.
response.
2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 2870 def suspend_async(resource_group_name, name, custom_headers:nil) # Send request promise = begin_suspend_async(resource_group_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#suspend_next(next_page_link, custom_headers: nil) ⇒ WebAppCollection
Suspend an App Service Environment.
Suspend an App Service Environment.
to List operation. will be added to the HTTP request.
6185 6186 6187 6188 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6185 def suspend_next(next_page_link, custom_headers:nil) response = suspend_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#suspend_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
to List operation. will be added to the HTTP request.
response.
6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 6199 def suspend_next_async(next_page_link, custom_headers:nil) # Send request promise = begin_suspend_next_async(next_page_link, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#update(resource_group_name, name, hosting_environment_envelope, custom_headers: nil) ⇒ AppServiceEnvironmentResource
Create or update an App Service Environment.
Create or update an App Service Environment.
resource belongs. Configuration details of the App Service Environment. will be added to the HTTP request.
437 438 439 440 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 437 def update(resource_group_name, name, hosting_environment_envelope, custom_headers:nil) response = update_async(resource_group_name, name, hosting_environment_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_async(resource_group_name, name, hosting_environment_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Create or update an App Service Environment.
Create or update an App Service Environment.
resource belongs. Configuration details of the App Service Environment. to the HTTP request.
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 541 542 543 544 545 546 547 548 549 550 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 476 def update_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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentPatchResource.mapper() request_content = @client.serialize(request_mapper, 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}' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:patch, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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 = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers: nil) ⇒ WorkerPoolResource
Create or update a multi-role pool.
Create or update a multi-role pool.
resource belongs. multi-role pool. will be added to the HTTP request.
1510 1511 1512 1513 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1510 def update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers:nil) response = update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Create or update a multi-role pool.
Create or update a multi-role pool.
resource belongs. multi-role pool. to the HTTP request.
1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 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/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1549 def 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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() request_content = @client.serialize(request_mapper, 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' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:patch, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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 = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#update_multi_role_pool_with_http_info(resource_group_name, name, multi_role_pool_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a multi-role pool.
Create or update a multi-role pool.
resource belongs. multi-role pool. will be added to the HTTP request.
1530 1531 1532 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 1530 def update_multi_role_pool_with_http_info(resource_group_name, name, multi_role_pool_envelope, custom_headers:nil) update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers:custom_headers).value! end |
#update_with_http_info(resource_group_name, name, hosting_environment_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update an App Service Environment.
Create or update an App Service Environment.
resource belongs. Configuration details of the App Service Environment. will be added to the HTTP request.
457 458 459 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 457 def update_with_http_info(resource_group_name, name, hosting_environment_envelope, custom_headers:nil) update_async(resource_group_name, name, hosting_environment_envelope, custom_headers:custom_headers).value! end |
#update_worker_pool(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers: nil) ⇒ WorkerPoolResource
Create or update a worker pool.
Create or update a worker pool.
resource belongs. pool. will be added to the HTTP request.
3291 3292 3293 3294 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3291 def update_worker_pool(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers:nil) response = update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#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.
Create or update a worker pool.
resource belongs. pool. to the HTTP request.
3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3332 def 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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).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 = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() request_content = @client.serialize(request_mapper, 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}' request_url = @base_url || @client.base_url = { 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 || {}), base_url: request_url } promise = @client.make_request_async(:patch, path_template, ) promise = promise.then do |result| http_response = result.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(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) 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 = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#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.
Create or update a worker pool.
resource belongs. pool. will be added to the HTTP request.
3312 3313 3314 |
# File 'lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb', line 3312 def update_worker_pool_with_http_info(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers:nil) update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers:custom_headers).value! end |