Class: Azure::Web::Mgmt::V2016_08_01::WebApps
- Inherits:
-
Object
- Object
- Azure::Web::Mgmt::V2016_08_01::WebApps
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb
Overview
WebSite Management Client
Instance Attribute Summary collapse
-
#client ⇒ WebSiteManagementClient
readonly
Reference to the WebSiteManagementClient.
Instance Method Summary collapse
-
#add_premier_add_on(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers: nil) ⇒ PremierAddOn
Updates a named add-on of an app.
-
#add_premier_add_on_async(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers: nil) ⇒ Concurrent::Promise
Updates a named add-on of an app.
-
#add_premier_add_on_slot(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers: nil) ⇒ PremierAddOn
Updates a named add-on of an app.
-
#add_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates a named add-on of an app.
-
#add_premier_add_on_slot_with_http_info(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates a named add-on of an app.
-
#add_premier_add_on_with_http_info(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates a named add-on of an app.
-
#analyze_custom_hostname(resource_group_name, name, host_name: nil, custom_headers: nil) ⇒ CustomHostnameAnalysisResult
Analyze a custom hostname.
-
#analyze_custom_hostname_async(resource_group_name, name, host_name: nil, custom_headers: nil) ⇒ Concurrent::Promise
Analyze a custom hostname.
-
#analyze_custom_hostname_slot(resource_group_name, name, slot, host_name: nil, custom_headers: nil) ⇒ CustomHostnameAnalysisResult
Analyze a custom hostname.
-
#analyze_custom_hostname_slot_async(resource_group_name, name, slot, host_name: nil, custom_headers: nil) ⇒ Concurrent::Promise
Analyze a custom hostname.
-
#analyze_custom_hostname_slot_with_http_info(resource_group_name, name, slot, host_name: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Analyze a custom hostname.
-
#analyze_custom_hostname_with_http_info(resource_group_name, name, host_name: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Analyze a custom hostname.
-
#apply_slot_config_to_production(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ Object
Applies the configuration settings from the target slot onto the current slot.
-
#apply_slot_config_to_production_async(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ Concurrent::Promise
Applies the configuration settings from the target slot onto the current slot.
-
#apply_slot_config_to_production_with_http_info(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Applies the configuration settings from the target slot onto the current slot.
-
#apply_slot_configuration_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ Object
Applies the configuration settings from the target slot onto the current slot.
-
#apply_slot_configuration_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ Concurrent::Promise
Applies the configuration settings from the target slot onto the current slot.
-
#apply_slot_configuration_slot_with_http_info(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Applies the configuration settings from the target slot onto the current slot.
-
#backup(resource_group_name, name, request, custom_headers: nil) ⇒ BackupItem
Creates a backup of an app.
-
#backup_async(resource_group_name, name, request, custom_headers: nil) ⇒ Concurrent::Promise
Creates a backup of an app.
-
#backup_slot(resource_group_name, name, request, slot, custom_headers: nil) ⇒ BackupItem
Creates a backup of an app.
-
#backup_slot_async(resource_group_name, name, request, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a backup of an app.
-
#backup_slot_with_http_info(resource_group_name, name, request, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a backup of an app.
-
#backup_with_http_info(resource_group_name, name, request, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a backup of an app.
-
#begin_create_function(resource_group_name, name, function_name, function_envelope, custom_headers: nil) ⇒ FunctionEnvelope
Create function for web site, or a deployment slot.
-
#begin_create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Create function for web site, or a deployment slot.
-
#begin_create_function_with_http_info(resource_group_name, name, function_name, function_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create function for web site, or a deployment slot.
-
#begin_create_instance_function_slot(resource_group_name, name, function_name, slot, function_envelope, custom_headers: nil) ⇒ FunctionEnvelope
Create function for web site, or a deployment slot.
-
#begin_create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Create function for web site, or a deployment slot.
-
#begin_create_instance_function_slot_with_http_info(resource_group_name, name, function_name, slot, function_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create function for web site, or a deployment slot.
-
#begin_create_instance_msdeploy_operation(resource_group_name, name, instance_id, msdeploy, custom_headers: nil) ⇒ MSDeployStatus
Invoke the MSDeploy web app extension.
-
#begin_create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers: nil) ⇒ Concurrent::Promise
Invoke the MSDeploy web app extension.
-
#begin_create_instance_msdeploy_operation_slot(resource_group_name, name, slot, instance_id, msdeploy, custom_headers: nil) ⇒ MSDeployStatus
Invoke the MSDeploy web app extension.
-
#begin_create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers: nil) ⇒ Concurrent::Promise
Invoke the MSDeploy web app extension.
-
#begin_create_instance_msdeploy_operation_slot_with_http_info(resource_group_name, name, slot, instance_id, msdeploy, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Invoke the MSDeploy web app extension.
-
#begin_create_instance_msdeploy_operation_with_http_info(resource_group_name, name, instance_id, msdeploy, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Invoke the MSDeploy web app extension.
-
#begin_create_msdeploy_operation(resource_group_name, name, msdeploy, custom_headers: nil) ⇒ MSDeployStatus
Invoke the MSDeploy web app extension.
-
#begin_create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers: nil) ⇒ Concurrent::Promise
Invoke the MSDeploy web app extension.
-
#begin_create_msdeploy_operation_slot(resource_group_name, name, slot, msdeploy, custom_headers: nil) ⇒ MSDeployStatus
Invoke the MSDeploy web app extension.
-
#begin_create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers: nil) ⇒ Concurrent::Promise
Invoke the MSDeploy web app extension.
-
#begin_create_msdeploy_operation_slot_with_http_info(resource_group_name, name, slot, msdeploy, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Invoke the MSDeploy web app extension.
-
#begin_create_msdeploy_operation_with_http_info(resource_group_name, name, msdeploy, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Invoke the MSDeploy web app extension.
-
#begin_create_or_update(resource_group_name, name, site_envelope, custom_headers: nil) ⇒ Site
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
-
#begin_create_or_update_async(resource_group_name, name, site_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
-
#begin_create_or_update_slot(resource_group_name, name, site_envelope, slot, skip_dns_registration: nil, skip_custom_domain_verification: nil, force_dns_registration: nil, ttl_in_seconds: nil, custom_headers: nil) ⇒ Site
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
-
#begin_create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration: nil, skip_custom_domain_verification: nil, force_dns_registration: nil, ttl_in_seconds: nil, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
-
#begin_create_or_update_slot_with_http_info(resource_group_name, name, site_envelope, slot, skip_dns_registration: nil, skip_custom_domain_verification: nil, force_dns_registration: nil, ttl_in_seconds: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
-
#begin_create_or_update_source_control(resource_group_name, name, site_source_control, custom_headers: nil) ⇒ SiteSourceControl
Updates the source control configuration of an app.
-
#begin_create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers: nil) ⇒ Concurrent::Promise
Updates the source control configuration of an app.
-
#begin_create_or_update_source_control_slot(resource_group_name, name, site_source_control, slot, custom_headers: nil) ⇒ SiteSourceControl
Updates the source control configuration of an app.
-
#begin_create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates the source control configuration of an app.
-
#begin_create_or_update_source_control_slot_with_http_info(resource_group_name, name, site_source_control, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the source control configuration of an app.
-
#begin_create_or_update_source_control_with_http_info(resource_group_name, name, site_source_control, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the source control configuration of an app.
-
#begin_create_or_update_with_http_info(resource_group_name, name, site_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
-
#begin_install_site_extension(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ SiteExtensionInfo
Install site extension on a web site, or a deployment slot.
-
#begin_install_site_extension_async(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ Concurrent::Promise
Install site extension on a web site, or a deployment slot.
-
#begin_install_site_extension_slot(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ SiteExtensionInfo
Install site extension on a web site, or a deployment slot.
-
#begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Install site extension on a web site, or a deployment slot.
-
#begin_install_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Install site extension on a web site, or a deployment slot.
-
#begin_install_site_extension_with_http_info(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Install site extension on a web site, or a deployment slot.
-
#begin_list_publishing_credentials(resource_group_name, name, custom_headers: nil) ⇒ User
Gets the Git/FTP publishing credentials of an app.
-
#begin_list_publishing_credentials_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the Git/FTP publishing credentials of an app.
-
#begin_list_publishing_credentials_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ User
Gets the Git/FTP publishing credentials of an app.
-
#begin_list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the Git/FTP publishing credentials of an app.
-
#begin_list_publishing_credentials_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the Git/FTP publishing credentials of an app.
-
#begin_list_publishing_credentials_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the Git/FTP publishing credentials of an app.
-
#begin_migrate_my_sql(resource_group_name, name, migration_request_envelope, custom_headers: nil) ⇒ Operation
Migrates a local (in-app) MySql database to a remote MySql database.
-
#begin_migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Migrates a local (in-app) MySql database to a remote MySql database.
-
#begin_migrate_my_sql_with_http_info(resource_group_name, name, migration_request_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Migrates a local (in-app) MySql database to a remote MySql database.
-
#begin_migrate_storage(subscription_name, resource_group_name, name, migration_options, custom_headers: nil) ⇒ StorageMigrationResponse
Restores a web app.
-
#begin_migrate_storage_async(subscription_name, resource_group_name, name, migration_options, custom_headers: nil) ⇒ Concurrent::Promise
Restores a web app.
-
#begin_migrate_storage_with_http_info(subscription_name, resource_group_name, name, migration_options, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Restores a web app.
-
#begin_recover(resource_group_name, name, recovery_entity, custom_headers: nil) ⇒ Object
Recovers a web app to a previous snapshot.
-
#begin_recover_async(resource_group_name, name, recovery_entity, custom_headers: nil) ⇒ Concurrent::Promise
Recovers a web app to a previous snapshot.
-
#begin_recover_slot(resource_group_name, name, recovery_entity, slot, custom_headers: nil) ⇒ Object
Recovers a web app to a previous snapshot.
-
#begin_recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers: nil) ⇒ Concurrent::Promise
Recovers a web app to a previous snapshot.
-
#begin_recover_slot_with_http_info(resource_group_name, name, recovery_entity, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Recovers a web app to a previous snapshot.
-
#begin_recover_with_http_info(resource_group_name, name, recovery_entity, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Recovers a web app to a previous snapshot.
-
#begin_restore(resource_group_name, name, backup_id, request, custom_headers: nil) ⇒ RestoreResponse
Restores a specific backup to another app (or deployment slot, if specified).
-
#begin_restore_async(resource_group_name, name, backup_id, request, custom_headers: nil) ⇒ Concurrent::Promise
Restores a specific backup to another app (or deployment slot, if specified).
-
#begin_restore_slot(resource_group_name, name, backup_id, request, slot, custom_headers: nil) ⇒ RestoreResponse
Restores a specific backup to another app (or deployment slot, if specified).
-
#begin_restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers: nil) ⇒ Concurrent::Promise
Restores a specific backup to another app (or deployment slot, if specified).
-
#begin_restore_slot_with_http_info(resource_group_name, name, backup_id, request, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Restores a specific backup to another app (or deployment slot, if specified).
-
#begin_restore_with_http_info(resource_group_name, name, backup_id, request, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Restores a specific backup to another app (or deployment slot, if specified).
-
#begin_swap_slot_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ Object
Swaps two deployment slots of an app.
-
#begin_swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ Concurrent::Promise
Swaps two deployment slots of an app.
-
#begin_swap_slot_slot_with_http_info(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Swaps two deployment slots of an app.
-
#begin_swap_slot_with_production(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ Object
Swaps two deployment slots of an app.
-
#begin_swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ Concurrent::Promise
Swaps two deployment slots of an app.
-
#begin_swap_slot_with_production_with_http_info(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Swaps two deployment slots of an app.
-
#create_deployment(resource_group_name, name, id, deployment, custom_headers: nil) ⇒ Deployment
Create a deployment for an app, or a deployment slot.
-
#create_deployment_async(resource_group_name, name, id, deployment, custom_headers: nil) ⇒ Concurrent::Promise
Create a deployment for an app, or a deployment slot.
-
#create_deployment_slot(resource_group_name, name, id, slot, deployment, custom_headers: nil) ⇒ Deployment
Create a deployment for an app, or a deployment slot.
-
#create_deployment_slot_async(resource_group_name, name, id, slot, deployment, custom_headers: nil) ⇒ Concurrent::Promise
Create a deployment for an app, or a deployment slot.
-
#create_deployment_slot_with_http_info(resource_group_name, name, id, slot, deployment, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create a deployment for an app, or a deployment slot.
-
#create_deployment_with_http_info(resource_group_name, name, id, deployment, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create a deployment for an app, or a deployment slot.
-
#create_function(resource_group_name, name, function_name, function_envelope, custom_headers: nil) ⇒ FunctionEnvelope
Create function for web site, or a deployment slot.
-
#create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#create_instance_function_slot(resource_group_name, name, function_name, slot, function_envelope, custom_headers: nil) ⇒ FunctionEnvelope
Create function for web site, or a deployment slot.
-
#create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#create_instance_msdeploy_operation(resource_group_name, name, instance_id, msdeploy, custom_headers: nil) ⇒ MSDeployStatus
Invoke the MSDeploy web app extension.
-
#create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#create_instance_msdeploy_operation_slot(resource_group_name, name, slot, instance_id, msdeploy, custom_headers: nil) ⇒ MSDeployStatus
Invoke the MSDeploy web app extension.
-
#create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#create_msdeploy_operation(resource_group_name, name, msdeploy, custom_headers: nil) ⇒ MSDeployStatus
Invoke the MSDeploy web app extension.
-
#create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#create_msdeploy_operation_slot(resource_group_name, name, slot, msdeploy, custom_headers: nil) ⇒ MSDeployStatus
Invoke the MSDeploy web app extension.
-
#create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#create_or_update(resource_group_name, name, site_envelope, custom_headers: nil) ⇒ Site
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
-
#create_or_update_async(resource_group_name, name, site_envelope, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#create_or_update_configuration(resource_group_name, name, site_config, custom_headers: nil) ⇒ SiteConfigResource
Updates the configuration of an app.
-
#create_or_update_configuration_async(resource_group_name, name, site_config, custom_headers: nil) ⇒ Concurrent::Promise
Updates the configuration of an app.
-
#create_or_update_configuration_slot(resource_group_name, name, site_config, slot, custom_headers: nil) ⇒ SiteConfigResource
Updates the configuration of an app.
-
#create_or_update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates the configuration of an app.
-
#create_or_update_configuration_slot_with_http_info(resource_group_name, name, site_config, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the configuration of an app.
-
#create_or_update_configuration_with_http_info(resource_group_name, name, site_config, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the configuration of an app.
-
#create_or_update_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers: nil) ⇒ Identifier
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
-
#create_or_update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers: nil) ⇒ Concurrent::Promise
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
-
#create_or_update_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers: nil) ⇒ Identifier
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
-
#create_or_update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
-
#create_or_update_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
-
#create_or_update_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
-
#create_or_update_host_name_binding(resource_group_name, name, host_name, host_name_binding, custom_headers: nil) ⇒ HostNameBinding
Creates a hostname binding for an app.
-
#create_or_update_host_name_binding_async(resource_group_name, name, host_name, host_name_binding, custom_headers: nil) ⇒ Concurrent::Promise
Creates a hostname binding for an app.
-
#create_or_update_host_name_binding_slot(resource_group_name, name, host_name, host_name_binding, slot, custom_headers: nil) ⇒ HostNameBinding
Creates a hostname binding for an app.
-
#create_or_update_host_name_binding_slot_async(resource_group_name, name, host_name, host_name_binding, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a hostname binding for an app.
-
#create_or_update_host_name_binding_slot_with_http_info(resource_group_name, name, host_name, host_name_binding, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a hostname binding for an app.
-
#create_or_update_host_name_binding_with_http_info(resource_group_name, name, host_name, host_name_binding, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a hostname binding for an app.
-
#create_or_update_hybrid_connection(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers: nil) ⇒ HybridConnection
Creates a new Hybrid Connection using a Service Bus relay.
-
#create_or_update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new Hybrid Connection using a Service Bus relay.
-
#create_or_update_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers: nil) ⇒ HybridConnection
Creates a new Hybrid Connection using a Service Bus relay.
-
#create_or_update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new Hybrid Connection using a Service Bus relay.
-
#create_or_update_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new Hybrid Connection using a Service Bus relay.
-
#create_or_update_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new Hybrid Connection using a Service Bus relay.
-
#create_or_update_public_certificate(resource_group_name, name, public_certificate_name, public_certificate, custom_headers: nil) ⇒ PublicCertificate
Creates a hostname binding for an app.
-
#create_or_update_public_certificate_async(resource_group_name, name, public_certificate_name, public_certificate, custom_headers: nil) ⇒ Concurrent::Promise
Creates a hostname binding for an app.
-
#create_or_update_public_certificate_slot(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers: nil) ⇒ PublicCertificate
Creates a hostname binding for an app.
-
#create_or_update_public_certificate_slot_async(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a hostname binding for an app.
-
#create_or_update_public_certificate_slot_with_http_info(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a hostname binding for an app.
-
#create_or_update_public_certificate_with_http_info(resource_group_name, name, public_certificate_name, public_certificate, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a hostname binding for an app.
-
#create_or_update_relay_service_connection(resource_group_name, name, entity_name, connection_envelope, custom_headers: nil) ⇒ RelayServiceConnectionEntity
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
-
#create_or_update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
-
#create_or_update_relay_service_connection_slot(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers: nil) ⇒ RelayServiceConnectionEntity
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
-
#create_or_update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
-
#create_or_update_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
-
#create_or_update_relay_service_connection_with_http_info(resource_group_name, name, entity_name, connection_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
-
#create_or_update_slot(resource_group_name, name, site_envelope, slot, skip_dns_registration: nil, skip_custom_domain_verification: nil, force_dns_registration: nil, ttl_in_seconds: nil, custom_headers: nil) ⇒ Site
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
-
#create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration: nil, skip_custom_domain_verification: nil, force_dns_registration: nil, ttl_in_seconds: nil, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#create_or_update_source_control(resource_group_name, name, site_source_control, custom_headers: nil) ⇒ SiteSourceControl
Updates the source control configuration of an app.
-
#create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#create_or_update_source_control_slot(resource_group_name, name, site_source_control, slot, custom_headers: nil) ⇒ SiteSourceControl
Updates the source control configuration of an app.
-
#create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#create_or_update_vnet_connection(resource_group_name, name, vnet_name, connection_envelope, custom_headers: nil) ⇒ VnetInfo
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
-
#create_or_update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
-
#create_or_update_vnet_connection_gateway(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers: nil) ⇒ VnetGateway
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
-
#create_or_update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
-
#create_or_update_vnet_connection_gateway_slot(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers: nil) ⇒ VnetGateway
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
-
#create_or_update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers: nil) ⇒ Concurrent::Promise
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
-
#create_or_update_vnet_connection_gateway_slot_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
-
#create_or_update_vnet_connection_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
-
#create_or_update_vnet_connection_slot(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers: nil) ⇒ VnetInfo
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
-
#create_or_update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers: nil) ⇒ Concurrent::Promise
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
-
#create_or_update_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
-
#create_or_update_vnet_connection_with_http_info(resource_group_name, name, vnet_name, connection_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
-
#delete(resource_group_name, name, delete_metrics: nil, delete_empty_server_farm: nil, custom_headers: nil) ⇒ Object
Deletes a web, mobile, or API app, or one of the deployment slots.
-
#delete_async(resource_group_name, name, delete_metrics: nil, delete_empty_server_farm: nil, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a web, mobile, or API app, or one of the deployment slots.
-
#delete_backup(resource_group_name, name, backup_id, custom_headers: nil) ⇒ Object
Deletes a backup of an app by its ID.
-
#delete_backup_async(resource_group_name, name, backup_id, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a backup of an app by its ID.
-
#delete_backup_configuration(resource_group_name, name, custom_headers: nil) ⇒ Object
Deletes the backup configuration of an app.
-
#delete_backup_configuration_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes the backup configuration of an app.
-
#delete_backup_configuration_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Object
Deletes the backup configuration of an app.
-
#delete_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Deletes the backup configuration of an app.
-
#delete_backup_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes the backup configuration of an app.
-
#delete_backup_configuration_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes the backup configuration of an app.
-
#delete_backup_slot(resource_group_name, name, backup_id, slot, custom_headers: nil) ⇒ Object
Deletes a backup of an app by its ID.
-
#delete_backup_slot_async(resource_group_name, name, backup_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a backup of an app by its ID.
-
#delete_backup_slot_with_http_info(resource_group_name, name, backup_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a backup of an app by its ID.
-
#delete_backup_with_http_info(resource_group_name, name, backup_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a backup of an app by its ID.
-
#delete_continuous_web_job(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Object
Delete a continuous web job by its ID for an app, or a deployment slot.
-
#delete_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
Delete a continuous web job by its ID for an app, or a deployment slot.
-
#delete_continuous_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Object
Delete a continuous web job by its ID for an app, or a deployment slot.
-
#delete_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Delete a continuous web job by its ID for an app, or a deployment slot.
-
#delete_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a continuous web job by its ID for an app, or a deployment slot.
-
#delete_continuous_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a continuous web job by its ID for an app, or a deployment slot.
-
#delete_deployment(resource_group_name, name, id, custom_headers: nil) ⇒ Object
Delete a deployment by its ID for an app, or a deployment slot.
-
#delete_deployment_async(resource_group_name, name, id, custom_headers: nil) ⇒ Concurrent::Promise
Delete a deployment by its ID for an app, or a deployment slot.
-
#delete_deployment_slot(resource_group_name, name, id, slot, custom_headers: nil) ⇒ Object
Delete a deployment by its ID for an app, or a deployment slot.
-
#delete_deployment_slot_async(resource_group_name, name, id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Delete a deployment by its ID for an app, or a deployment slot.
-
#delete_deployment_slot_with_http_info(resource_group_name, name, id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a deployment by its ID for an app, or a deployment slot.
-
#delete_deployment_with_http_info(resource_group_name, name, id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a deployment by its ID for an app, or a deployment slot.
-
#delete_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, custom_headers: nil) ⇒ Object
Deletes a domain ownership identifier for a web app.
-
#delete_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a domain ownership identifier for a web app.
-
#delete_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers: nil) ⇒ Object
Deletes a domain ownership identifier for a web app.
-
#delete_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a domain ownership identifier for a web app.
-
#delete_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a domain ownership identifier for a web app.
-
#delete_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a domain ownership identifier for a web app.
-
#delete_function(resource_group_name, name, function_name, custom_headers: nil) ⇒ Object
Delete a function for web site, or a deployment slot.
-
#delete_function_async(resource_group_name, name, function_name, custom_headers: nil) ⇒ Concurrent::Promise
Delete a function for web site, or a deployment slot.
-
#delete_function_with_http_info(resource_group_name, name, function_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a function for web site, or a deployment slot.
-
#delete_host_name_binding(resource_group_name, name, host_name, custom_headers: nil) ⇒ Object
Deletes a hostname binding for an app.
-
#delete_host_name_binding_async(resource_group_name, name, host_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a hostname binding for an app.
-
#delete_host_name_binding_slot(resource_group_name, name, slot, host_name, custom_headers: nil) ⇒ Object
Deletes a hostname binding for an app.
-
#delete_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a hostname binding for an app.
-
#delete_host_name_binding_slot_with_http_info(resource_group_name, name, slot, host_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a hostname binding for an app.
-
#delete_host_name_binding_with_http_info(resource_group_name, name, host_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a hostname binding for an app.
-
#delete_hybrid_connection(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ Object
Removes a Hybrid Connection from this site.
-
#delete_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ Concurrent::Promise
Removes a Hybrid Connection from this site.
-
#delete_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ Object
Removes a Hybrid Connection from this site.
-
#delete_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Removes a Hybrid Connection from this site.
-
#delete_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Removes a Hybrid Connection from this site.
-
#delete_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Removes a Hybrid Connection from this site.
-
#delete_instance_function_slot(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ Object
Delete a function for web site, or a deployment slot.
-
#delete_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Delete a function for web site, or a deployment slot.
-
#delete_instance_function_slot_with_http_info(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a function for web site, or a deployment slot.
-
#delete_instance_process(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ Object
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
-
#delete_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
-
#delete_instance_process_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ Object
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
-
#delete_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
-
#delete_instance_process_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
-
#delete_instance_process_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
-
#delete_premier_add_on(resource_group_name, name, premier_add_on_name, custom_headers: nil) ⇒ Object
Delete a premier add-on from an app.
-
#delete_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers: nil) ⇒ Concurrent::Promise
Delete a premier add-on from an app.
-
#delete_premier_add_on_slot(resource_group_name, name, premier_add_on_name, slot, custom_headers: nil) ⇒ Object
Delete a premier add-on from an app.
-
#delete_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Delete a premier add-on from an app.
-
#delete_premier_add_on_slot_with_http_info(resource_group_name, name, premier_add_on_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a premier add-on from an app.
-
#delete_premier_add_on_with_http_info(resource_group_name, name, premier_add_on_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a premier add-on from an app.
-
#delete_process(resource_group_name, name, process_id, custom_headers: nil) ⇒ Object
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
-
#delete_process_async(resource_group_name, name, process_id, custom_headers: nil) ⇒ Concurrent::Promise
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
-
#delete_process_slot(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ Object
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
-
#delete_process_slot_async(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
-
#delete_process_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
-
#delete_process_with_http_info(resource_group_name, name, process_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
-
#delete_public_certificate(resource_group_name, name, public_certificate_name, custom_headers: nil) ⇒ Object
Deletes a hostname binding for an app.
-
#delete_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a hostname binding for an app.
-
#delete_public_certificate_slot(resource_group_name, name, slot, public_certificate_name, custom_headers: nil) ⇒ Object
Deletes a hostname binding for an app.
-
#delete_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a hostname binding for an app.
-
#delete_public_certificate_slot_with_http_info(resource_group_name, name, slot, public_certificate_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a hostname binding for an app.
-
#delete_public_certificate_with_http_info(resource_group_name, name, public_certificate_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a hostname binding for an app.
-
#delete_relay_service_connection(resource_group_name, name, entity_name, custom_headers: nil) ⇒ Object
Deletes a relay service connection by its name.
-
#delete_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a relay service connection by its name.
-
#delete_relay_service_connection_slot(resource_group_name, name, entity_name, slot, custom_headers: nil) ⇒ Object
Deletes a relay service connection by its name.
-
#delete_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a relay service connection by its name.
-
#delete_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a relay service connection by its name.
-
#delete_relay_service_connection_with_http_info(resource_group_name, name, entity_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a relay service connection by its name.
-
#delete_site_extension(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ Object
Remove a site extension from a web site, or a deployment slot.
-
#delete_site_extension_async(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ Concurrent::Promise
Remove a site extension from a web site, or a deployment slot.
-
#delete_site_extension_slot(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ Object
Remove a site extension from a web site, or a deployment slot.
-
#delete_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Remove a site extension from a web site, or a deployment slot.
-
#delete_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Remove a site extension from a web site, or a deployment slot.
-
#delete_site_extension_with_http_info(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Remove a site extension from a web site, or a deployment slot.
-
#delete_slot(resource_group_name, name, slot, delete_metrics: nil, delete_empty_server_farm: nil, skip_dns_registration: nil, custom_headers: nil) ⇒ Object
Deletes a web, mobile, or API app, or one of the deployment slots.
-
#delete_slot_async(resource_group_name, name, slot, delete_metrics: nil, delete_empty_server_farm: nil, skip_dns_registration: nil, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a web, mobile, or API app, or one of the deployment slots.
-
#delete_slot_with_http_info(resource_group_name, name, slot, delete_metrics: nil, delete_empty_server_farm: nil, skip_dns_registration: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a web, mobile, or API app, or one of the deployment slots.
-
#delete_source_control(resource_group_name, name, custom_headers: nil) ⇒ Object
Deletes the source control configuration of an app.
-
#delete_source_control_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes the source control configuration of an app.
-
#delete_source_control_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Object
Deletes the source control configuration of an app.
-
#delete_source_control_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Deletes the source control configuration of an app.
-
#delete_source_control_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes the source control configuration of an app.
-
#delete_source_control_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes the source control configuration of an app.
-
#delete_triggered_web_job(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Object
Delete a triggered web job by its ID for an app, or a deployment slot.
-
#delete_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
Delete a triggered web job by its ID for an app, or a deployment slot.
-
#delete_triggered_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Object
Delete a triggered web job by its ID for an app, or a deployment slot.
-
#delete_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Delete a triggered web job by its ID for an app, or a deployment slot.
-
#delete_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a triggered web job by its ID for an app, or a deployment slot.
-
#delete_triggered_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a triggered web job by its ID for an app, or a deployment slot.
-
#delete_vnet_connection(resource_group_name, name, vnet_name, custom_headers: nil) ⇒ Object
Deletes a connection from an app (or deployment slot to a named virtual network.
-
#delete_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a connection from an app (or deployment slot to a named virtual network.
-
#delete_vnet_connection_slot(resource_group_name, name, vnet_name, slot, custom_headers: nil) ⇒ Object
Deletes a connection from an app (or deployment slot to a named virtual network.
-
#delete_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a connection from an app (or deployment slot to a named virtual network.
-
#delete_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a connection from an app (or deployment slot to a named virtual network.
-
#delete_vnet_connection_with_http_info(resource_group_name, name, vnet_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a connection from an app (or deployment slot to a named virtual network.
-
#delete_with_http_info(resource_group_name, name, delete_metrics: nil, delete_empty_server_farm: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a web, mobile, or API app, or one of the deployment slots.
-
#discover_restore(resource_group_name, name, request, custom_headers: nil) ⇒ RestoreRequest
Discovers an existing app backup that can be restored from a blob in Azure storage.
-
#discover_restore_async(resource_group_name, name, request, custom_headers: nil) ⇒ Concurrent::Promise
Discovers an existing app backup that can be restored from a blob in Azure storage.
-
#discover_restore_slot(resource_group_name, name, request, slot, custom_headers: nil) ⇒ RestoreRequest
Discovers an existing app backup that can be restored from a blob in Azure storage.
-
#discover_restore_slot_async(resource_group_name, name, request, slot, custom_headers: nil) ⇒ Concurrent::Promise
Discovers an existing app backup that can be restored from a blob in Azure storage.
-
#discover_restore_slot_with_http_info(resource_group_name, name, request, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Discovers an existing app backup that can be restored from a blob in Azure storage.
-
#discover_restore_with_http_info(resource_group_name, name, request, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Discovers an existing app backup that can be restored from a blob in Azure storage.
-
#generate_new_site_publishing_password(resource_group_name, name, custom_headers: nil) ⇒ Object
Generates a new publishing password for an app (or deployment slot, if specified).
-
#generate_new_site_publishing_password_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Generates a new publishing password for an app (or deployment slot, if specified).
-
#generate_new_site_publishing_password_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Object
Generates a new publishing password for an app (or deployment slot, if specified).
-
#generate_new_site_publishing_password_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Generates a new publishing password for an app (or deployment slot, if specified).
-
#generate_new_site_publishing_password_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Generates a new publishing password for an app (or deployment slot, if specified).
-
#generate_new_site_publishing_password_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Generates a new publishing password for an app (or deployment slot, if specified).
-
#get(resource_group_name, name, custom_headers: nil) ⇒ Site
Gets the details of a web, mobile, or API app.
-
#get_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the details of a web, mobile, or API app.
-
#get_auth_settings(resource_group_name, name, custom_headers: nil) ⇒ SiteAuthSettings
Gets the Authentication/Authorization settings of an app.
-
#get_auth_settings_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the Authentication/Authorization settings of an app.
-
#get_auth_settings_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ SiteAuthSettings
Gets the Authentication/Authorization settings of an app.
-
#get_auth_settings_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the Authentication/Authorization settings of an app.
-
#get_auth_settings_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the Authentication/Authorization settings of an app.
-
#get_auth_settings_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the Authentication/Authorization settings of an app.
-
#get_backup_configuration(resource_group_name, name, custom_headers: nil) ⇒ BackupRequest
Gets the backup configuration of an app.
-
#get_backup_configuration_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the backup configuration of an app.
-
#get_backup_configuration_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ BackupRequest
Gets the backup configuration of an app.
-
#get_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the backup configuration of an app.
-
#get_backup_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the backup configuration of an app.
-
#get_backup_configuration_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the backup configuration of an app.
-
#get_backup_status(resource_group_name, name, backup_id, custom_headers: nil) ⇒ BackupItem
Gets a backup of an app by its ID.
-
#get_backup_status_async(resource_group_name, name, backup_id, custom_headers: nil) ⇒ Concurrent::Promise
Gets a backup of an app by its ID.
-
#get_backup_status_slot(resource_group_name, name, backup_id, slot, custom_headers: nil) ⇒ BackupItem
Gets a backup of an app by its ID.
-
#get_backup_status_slot_async(resource_group_name, name, backup_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a backup of an app by its ID.
-
#get_backup_status_slot_with_http_info(resource_group_name, name, backup_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a backup of an app by its ID.
-
#get_backup_status_with_http_info(resource_group_name, name, backup_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a backup of an app by its ID.
-
#get_configuration(resource_group_name, name, custom_headers: nil) ⇒ SiteConfigResource
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
-
#get_configuration_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
-
#get_configuration_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ SiteConfigResource
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
-
#get_configuration_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
-
#get_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
-
#get_configuration_snapshot(resource_group_name, name, snapshot_id, custom_headers: nil) ⇒ SiteConfigResource
Gets a snapshot of the configuration of an app at a previous point in time.
-
#get_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers: nil) ⇒ Concurrent::Promise
Gets a snapshot of the configuration of an app at a previous point in time.
-
#get_configuration_snapshot_slot(resource_group_name, name, snapshot_id, slot, custom_headers: nil) ⇒ SiteConfigResource
Gets a snapshot of the configuration of an app at a previous point in time.
-
#get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a snapshot of the configuration of an app at a previous point in time.
-
#get_configuration_snapshot_slot_with_http_info(resource_group_name, name, snapshot_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a snapshot of the configuration of an app at a previous point in time.
-
#get_configuration_snapshot_with_http_info(resource_group_name, name, snapshot_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a snapshot of the configuration of an app at a previous point in time.
-
#get_configuration_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
-
#get_continuous_web_job(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ ContinuousWebJob
Gets a continuous web job by its ID for an app, or a deployment slot.
-
#get_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets a continuous web job by its ID for an app, or a deployment slot.
-
#get_continuous_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ ContinuousWebJob
Gets a continuous web job by its ID for an app, or a deployment slot.
-
#get_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a continuous web job by its ID for an app, or a deployment slot.
-
#get_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a continuous web job by its ID for an app, or a deployment slot.
-
#get_continuous_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a continuous web job by its ID for an app, or a deployment slot.
-
#get_deployment(resource_group_name, name, id, custom_headers: nil) ⇒ Deployment
Get a deployment by its ID for an app, or a deployment slot.
-
#get_deployment_async(resource_group_name, name, id, custom_headers: nil) ⇒ Concurrent::Promise
Get a deployment by its ID for an app, or a deployment slot.
-
#get_deployment_slot(resource_group_name, name, id, slot, custom_headers: nil) ⇒ Deployment
Get a deployment by its ID for an app, or a deployment slot.
-
#get_deployment_slot_async(resource_group_name, name, id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get a deployment by its ID for an app, or a deployment slot.
-
#get_deployment_slot_with_http_info(resource_group_name, name, id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get a deployment by its ID for an app, or a deployment slot.
-
#get_deployment_with_http_info(resource_group_name, name, id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get a deployment by its ID for an app, or a deployment slot.
-
#get_diagnostic_logs_configuration(resource_group_name, name, custom_headers: nil) ⇒ SiteLogsConfig
Gets the logging configuration of an app.
-
#get_diagnostic_logs_configuration_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the logging configuration of an app.
-
#get_diagnostic_logs_configuration_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ SiteLogsConfig
Gets the logging configuration of an app.
-
#get_diagnostic_logs_configuration_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the logging configuration of an app.
-
#get_diagnostic_logs_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the logging configuration of an app.
-
#get_diagnostic_logs_configuration_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the logging configuration of an app.
-
#get_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, custom_headers: nil) ⇒ Identifier
Get domain ownership identifier for web app.
-
#get_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers: nil) ⇒ Concurrent::Promise
Get domain ownership identifier for web app.
-
#get_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers: nil) ⇒ Identifier
Get domain ownership identifier for web app.
-
#get_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get domain ownership identifier for web app.
-
#get_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get domain ownership identifier for web app.
-
#get_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get domain ownership identifier for web app.
-
#get_function(resource_group_name, name, function_name, custom_headers: nil) ⇒ FunctionEnvelope
Get function information by its ID for web site, or a deployment slot.
-
#get_function_async(resource_group_name, name, function_name, custom_headers: nil) ⇒ Concurrent::Promise
Get function information by its ID for web site, or a deployment slot.
-
#get_function_with_http_info(resource_group_name, name, function_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get function information by its ID for web site, or a deployment slot.
-
#get_functions_admin_token(resource_group_name, name, custom_headers: nil) ⇒ String
Fetch a short lived token that can be exchanged for a master key.
-
#get_functions_admin_token_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Fetch a short lived token that can be exchanged for a master key.
-
#get_functions_admin_token_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ String
Fetch a short lived token that can be exchanged for a master key.
-
#get_functions_admin_token_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Fetch a short lived token that can be exchanged for a master key.
-
#get_functions_admin_token_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Fetch a short lived token that can be exchanged for a master key.
-
#get_functions_admin_token_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Fetch a short lived token that can be exchanged for a master key.
-
#get_host_name_binding(resource_group_name, name, host_name, custom_headers: nil) ⇒ HostNameBinding
Get the named hostname binding for an app (or deployment slot, if specified).
-
#get_host_name_binding_async(resource_group_name, name, host_name, custom_headers: nil) ⇒ Concurrent::Promise
Get the named hostname binding for an app (or deployment slot, if specified).
-
#get_host_name_binding_slot(resource_group_name, name, slot, host_name, custom_headers: nil) ⇒ HostNameBinding
Get the named hostname binding for an app (or deployment slot, if specified).
-
#get_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers: nil) ⇒ Concurrent::Promise
Get the named hostname binding for an app (or deployment slot, if specified).
-
#get_host_name_binding_slot_with_http_info(resource_group_name, name, slot, host_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the named hostname binding for an app (or deployment slot, if specified).
-
#get_host_name_binding_with_http_info(resource_group_name, name, host_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the named hostname binding for an app (or deployment slot, if specified).
-
#get_hybrid_connection(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ HybridConnection
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
-
#get_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ Concurrent::Promise
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
-
#get_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ HybridConnection
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
-
#get_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
-
#get_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
-
#get_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
-
#get_instance_function_slot(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ FunctionEnvelope
Get function information by its ID for web site, or a deployment slot.
-
#get_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get function information by its ID for web site, or a deployment slot.
-
#get_instance_function_slot_with_http_info(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get function information by its ID for web site, or a deployment slot.
-
#get_instance_ms_deploy_status(resource_group_name, name, instance_id, custom_headers: nil) ⇒ MSDeployStatus
Get the status of the last MSDeploy operation.
-
#get_instance_ms_deploy_status_async(resource_group_name, name, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get the status of the last MSDeploy operation.
-
#get_instance_ms_deploy_status_slot(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ MSDeployStatus
Get the status of the last MSDeploy operation.
-
#get_instance_ms_deploy_status_slot_async(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get the status of the last MSDeploy operation.
-
#get_instance_ms_deploy_status_slot_with_http_info(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the status of the last MSDeploy operation.
-
#get_instance_ms_deploy_status_with_http_info(resource_group_name, name, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the status of the last MSDeploy operation.
-
#get_instance_msdeploy_log(resource_group_name, name, instance_id, custom_headers: nil) ⇒ MSDeployLog
Get the MSDeploy Log for the last MSDeploy operation.
-
#get_instance_msdeploy_log_async(resource_group_name, name, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get the MSDeploy Log for the last MSDeploy operation.
-
#get_instance_msdeploy_log_slot(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ MSDeployLog
Get the MSDeploy Log for the last MSDeploy operation.
-
#get_instance_msdeploy_log_slot_async(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get the MSDeploy Log for the last MSDeploy operation.
-
#get_instance_msdeploy_log_slot_with_http_info(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the MSDeploy Log for the last MSDeploy operation.
-
#get_instance_msdeploy_log_with_http_info(resource_group_name, name, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the MSDeploy Log for the last MSDeploy operation.
-
#get_instance_process(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ ProcessInfo
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_instance_process_dump(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
-
#get_instance_process_dump_async(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
-
#get_instance_process_dump_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
-
#get_instance_process_dump_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
-
#get_instance_process_dump_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
-
#get_instance_process_dump_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
-
#get_instance_process_module(resource_group_name, name, process_id, base_address, instance_id, custom_headers: nil) ⇒ ProcessModuleInfo
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_instance_process_module_async(resource_group_name, name, process_id, base_address, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_instance_process_module_slot(resource_group_name, name, process_id, base_address, slot, instance_id, custom_headers: nil) ⇒ ProcessModuleInfo
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_instance_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_instance_process_module_slot_with_http_info(resource_group_name, name, process_id, base_address, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_instance_process_module_with_http_info(resource_group_name, name, process_id, base_address, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_instance_process_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ ProcessInfo
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_instance_process_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_instance_process_thread(resource_group_name, name, process_id, thread_id, instance_id, custom_headers: nil) ⇒ ProcessThreadInfo
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
-
#get_instance_process_thread_async(resource_group_name, name, process_id, thread_id, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
-
#get_instance_process_thread_slot(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers: nil) ⇒ ProcessThreadInfo
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
-
#get_instance_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
-
#get_instance_process_thread_slot_with_http_info(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
-
#get_instance_process_thread_with_http_info(resource_group_name, name, process_id, thread_id, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
-
#get_instance_process_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_migrate_my_sql_status(resource_group_name, name, custom_headers: nil) ⇒ MigrateMySqlStatus
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled.
-
#get_migrate_my_sql_status_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled.
-
#get_migrate_my_sql_status_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ MigrateMySqlStatus
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled.
-
#get_migrate_my_sql_status_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled.
-
#get_migrate_my_sql_status_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled.
-
#get_migrate_my_sql_status_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled.
-
#get_msdeploy_log(resource_group_name, name, custom_headers: nil) ⇒ MSDeployLog
Get the MSDeploy Log for the last MSDeploy operation.
-
#get_msdeploy_log_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get the MSDeploy Log for the last MSDeploy operation.
-
#get_msdeploy_log_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ MSDeployLog
Get the MSDeploy Log for the last MSDeploy operation.
-
#get_msdeploy_log_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get the MSDeploy Log for the last MSDeploy operation.
-
#get_msdeploy_log_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the MSDeploy Log for the last MSDeploy operation.
-
#get_msdeploy_log_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the MSDeploy Log for the last MSDeploy operation.
-
#get_msdeploy_status(resource_group_name, name, custom_headers: nil) ⇒ MSDeployStatus
Get the status of the last MSDeploy operation.
-
#get_msdeploy_status_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get the status of the last MSDeploy operation.
-
#get_msdeploy_status_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ MSDeployStatus
Get the status of the last MSDeploy operation.
-
#get_msdeploy_status_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get the status of the last MSDeploy operation.
-
#get_msdeploy_status_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the status of the last MSDeploy operation.
-
#get_msdeploy_status_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the status of the last MSDeploy operation.
-
#get_premier_add_on(resource_group_name, name, premier_add_on_name, custom_headers: nil) ⇒ PremierAddOn
Gets a named add-on of an app.
-
#get_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets a named add-on of an app.
-
#get_premier_add_on_slot(resource_group_name, name, premier_add_on_name, slot, custom_headers: nil) ⇒ PremierAddOn
Gets a named add-on of an app.
-
#get_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a named add-on of an app.
-
#get_premier_add_on_slot_with_http_info(resource_group_name, name, premier_add_on_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a named add-on of an app.
-
#get_premier_add_on_with_http_info(resource_group_name, name, premier_add_on_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a named add-on of an app.
-
#get_process(resource_group_name, name, process_id, custom_headers: nil) ⇒ ProcessInfo
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_process_async(resource_group_name, name, process_id, custom_headers: nil) ⇒ Concurrent::Promise
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_process_dump(resource_group_name, name, process_id, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
-
#get_process_dump_async(resource_group_name, name, process_id, custom_headers: nil) ⇒ Concurrent::Promise
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
-
#get_process_dump_slot(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
-
#get_process_dump_slot_async(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
-
#get_process_dump_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
-
#get_process_dump_with_http_info(resource_group_name, name, process_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
-
#get_process_module(resource_group_name, name, process_id, base_address, custom_headers: nil) ⇒ ProcessModuleInfo
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_process_module_async(resource_group_name, name, process_id, base_address, custom_headers: nil) ⇒ Concurrent::Promise
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_process_module_slot(resource_group_name, name, process_id, base_address, slot, custom_headers: nil) ⇒ ProcessModuleInfo
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_process_module_slot_with_http_info(resource_group_name, name, process_id, base_address, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_process_module_with_http_info(resource_group_name, name, process_id, base_address, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_process_slot(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ ProcessInfo
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_process_slot_async(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_process_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_process_thread(resource_group_name, name, process_id, thread_id, custom_headers: nil) ⇒ ProcessThreadInfo
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
-
#get_process_thread_async(resource_group_name, name, process_id, thread_id, custom_headers: nil) ⇒ Concurrent::Promise
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
-
#get_process_thread_slot(resource_group_name, name, process_id, thread_id, slot, custom_headers: nil) ⇒ ProcessThreadInfo
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
-
#get_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
-
#get_process_thread_slot_with_http_info(resource_group_name, name, process_id, thread_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
-
#get_process_thread_with_http_info(resource_group_name, name, process_id, thread_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
-
#get_process_with_http_info(resource_group_name, name, process_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get process information by its ID for a specific scaled-out instance in a web site.
-
#get_public_certificate(resource_group_name, name, public_certificate_name, custom_headers: nil) ⇒ PublicCertificate
Get the named public certificate for an app (or deployment slot, if specified).
-
#get_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers: nil) ⇒ Concurrent::Promise
Get the named public certificate for an app (or deployment slot, if specified).
-
#get_public_certificate_slot(resource_group_name, name, slot, public_certificate_name, custom_headers: nil) ⇒ PublicCertificate
Get the named public certificate for an app (or deployment slot, if specified).
-
#get_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers: nil) ⇒ Concurrent::Promise
Get the named public certificate for an app (or deployment slot, if specified).
-
#get_public_certificate_slot_with_http_info(resource_group_name, name, slot, public_certificate_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the named public certificate for an app (or deployment slot, if specified).
-
#get_public_certificate_with_http_info(resource_group_name, name, public_certificate_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the named public certificate for an app (or deployment slot, if specified).
-
#get_relay_service_connection(resource_group_name, name, entity_name, custom_headers: nil) ⇒ RelayServiceConnectionEntity
Gets a hybrid connection configuration by its name.
-
#get_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets a hybrid connection configuration by its name.
-
#get_relay_service_connection_slot(resource_group_name, name, entity_name, slot, custom_headers: nil) ⇒ RelayServiceConnectionEntity
Gets a hybrid connection configuration by its name.
-
#get_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a hybrid connection configuration by its name.
-
#get_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a hybrid connection configuration by its name.
-
#get_relay_service_connection_with_http_info(resource_group_name, name, entity_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a hybrid connection configuration by its name.
-
#get_site_extension(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ SiteExtensionInfo
Get site extension information by its ID for a web site, or a deployment slot.
-
#get_site_extension_async(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ Concurrent::Promise
Get site extension information by its ID for a web site, or a deployment slot.
-
#get_site_extension_slot(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ SiteExtensionInfo
Get site extension information by its ID for a web site, or a deployment slot.
-
#get_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get site extension information by its ID for a web site, or a deployment slot.
-
#get_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get site extension information by its ID for a web site, or a deployment slot.
-
#get_site_extension_with_http_info(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get site extension information by its ID for a web site, or a deployment slot.
-
#get_site_php_error_log_flag(resource_group_name, name, custom_headers: nil) ⇒ SitePhpErrorLogFlag
Gets web app’s event logs.
-
#get_site_php_error_log_flag_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets web app’s event logs.
-
#get_site_php_error_log_flag_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ SitePhpErrorLogFlag
Gets web app’s event logs.
-
#get_site_php_error_log_flag_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets web app’s event logs.
-
#get_site_php_error_log_flag_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets web app’s event logs.
-
#get_site_php_error_log_flag_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets web app’s event logs.
-
#get_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Site
Gets the details of a web, mobile, or API app.
-
#get_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the details of a web, mobile, or API app.
-
#get_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the details of a web, mobile, or API app.
-
#get_source_control(resource_group_name, name, custom_headers: nil) ⇒ SiteSourceControl
Gets the source control configuration of an app.
-
#get_source_control_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the source control configuration of an app.
-
#get_source_control_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ SiteSourceControl
Gets the source control configuration of an app.
-
#get_source_control_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the source control configuration of an app.
-
#get_source_control_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the source control configuration of an app.
-
#get_source_control_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the source control configuration of an app.
-
#get_triggered_web_job(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ TriggeredWebJob
Gets a triggered web job by its ID for an app, or a deployment slot.
-
#get_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets a triggered web job by its ID for an app, or a deployment slot.
-
#get_triggered_web_job_history(resource_group_name, name, web_job_name, id, custom_headers: nil) ⇒ TriggeredJobHistory
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
-
#get_triggered_web_job_history_async(resource_group_name, name, web_job_name, id, custom_headers: nil) ⇒ Concurrent::Promise
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
-
#get_triggered_web_job_history_slot(resource_group_name, name, web_job_name, id, slot, custom_headers: nil) ⇒ TriggeredJobHistory
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
-
#get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_name, id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
-
#get_triggered_web_job_history_slot_with_http_info(resource_group_name, name, web_job_name, id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
-
#get_triggered_web_job_history_with_http_info(resource_group_name, name, web_job_name, id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
-
#get_triggered_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ TriggeredWebJob
Gets a triggered web job by its ID for an app, or a deployment slot.
-
#get_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a triggered web job by its ID for an app, or a deployment slot.
-
#get_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a triggered web job by its ID for an app, or a deployment slot.
-
#get_triggered_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a triggered web job by its ID for an app, or a deployment slot.
-
#get_vnet_connection(resource_group_name, name, vnet_name, custom_headers: nil) ⇒ VnetInfo
Gets a virtual network the app (or deployment slot) is connected to by name.
-
#get_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets a virtual network the app (or deployment slot) is connected to by name.
-
#get_vnet_connection_gateway(resource_group_name, name, vnet_name, gateway_name, custom_headers: nil) ⇒ VnetGateway
Gets an app’s Virtual Network gateway.
-
#get_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets an app’s Virtual Network gateway.
-
#get_vnet_connection_gateway_slot(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers: nil) ⇒ VnetGateway
Gets an app’s Virtual Network gateway.
-
#get_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets an app’s Virtual Network gateway.
-
#get_vnet_connection_gateway_slot_with_http_info(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets an app’s Virtual Network gateway.
-
#get_vnet_connection_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets an app’s Virtual Network gateway.
-
#get_vnet_connection_slot(resource_group_name, name, vnet_name, slot, custom_headers: nil) ⇒ VnetInfo
Gets a virtual network the app (or deployment slot) is connected to by name.
-
#get_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a virtual network the app (or deployment slot) is connected to by name.
-
#get_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a virtual network the app (or deployment slot) is connected to by name.
-
#get_vnet_connection_with_http_info(resource_group_name, name, vnet_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a virtual network the app (or deployment slot) is connected to by name.
-
#get_web_job(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ WebJob
Get webjob information for an app, or a deployment slot.
-
#get_web_job_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
Get webjob information for an app, or a deployment slot.
-
#get_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ WebJob
Get webjob information for an app, or a deployment slot.
-
#get_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get webjob information for an app, or a deployment slot.
-
#get_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get webjob information for an app, or a deployment slot.
-
#get_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get webjob information for an app, or a deployment slot.
-
#get_web_site_container_logs(resource_group_name, name, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Gets the last lines of docker logs for the given site.
-
#get_web_site_container_logs_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the last lines of docker logs for the given site.
-
#get_web_site_container_logs_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Gets the last lines of docker logs for the given site.
-
#get_web_site_container_logs_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the last lines of docker logs for the given site.
-
#get_web_site_container_logs_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the last lines of docker logs for the given site.
-
#get_web_site_container_logs_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the last lines of docker logs for the given site.
-
#get_web_site_container_logs_zip(resource_group_name, name, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Gets the ZIP archived docker log files for the given site.
-
#get_web_site_container_logs_zip_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the ZIP archived docker log files for the given site.
-
#get_web_site_container_logs_zip_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Gets the ZIP archived docker log files for the given site.
-
#get_web_site_container_logs_zip_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the ZIP archived docker log files for the given site.
-
#get_web_site_container_logs_zip_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the ZIP archived docker log files for the given site.
-
#get_web_site_container_logs_zip_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the ZIP archived docker log files for the given site.
-
#get_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the details of a web, mobile, or API app.
-
#initialize(client) ⇒ WebApps
constructor
Creates and initializes a new instance of the WebApps class.
-
#install_site_extension(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ SiteExtensionInfo
Install site extension on a web site, or a deployment slot.
-
#install_site_extension_async(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#install_site_extension_slot(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ SiteExtensionInfo
Install site extension on a web site, or a deployment slot.
-
#install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#is_cloneable(resource_group_name, name, custom_headers: nil) ⇒ SiteCloneability
Shows whether an app can be cloned to another resource group or subscription.
-
#is_cloneable_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Shows whether an app can be cloned to another resource group or subscription.
-
#is_cloneable_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ SiteCloneability
Shows whether an app can be cloned to another resource group or subscription.
-
#is_cloneable_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Shows whether an app can be cloned to another resource group or subscription.
-
#is_cloneable_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Shows whether an app can be cloned to another resource group or subscription.
-
#is_cloneable_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Shows whether an app can be cloned to another resource group or subscription.
-
#list(custom_headers: nil) ⇒ Array<Site>
Get all apps for a subscription.
-
#list_application_settings(resource_group_name, name, custom_headers: nil) ⇒ StringDictionary
Gets the application settings of an app.
-
#list_application_settings_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the application settings of an app.
-
#list_application_settings_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ StringDictionary
Gets the application settings of an app.
-
#list_application_settings_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the application settings of an app.
-
#list_application_settings_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the application settings of an app.
-
#list_application_settings_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the application settings of an app.
-
#list_as_lazy(custom_headers: nil) ⇒ WebAppCollection
Get all apps for a subscription.
-
#list_async(custom_headers: nil) ⇒ Concurrent::Promise
Get all apps for a subscription.
-
#list_backup_status_secrets(resource_group_name, name, backup_id, request, custom_headers: nil) ⇒ BackupItem
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL.
-
#list_backup_status_secrets_async(resource_group_name, name, backup_id, request, custom_headers: nil) ⇒ Concurrent::Promise
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL.
-
#list_backup_status_secrets_slot(resource_group_name, name, backup_id, request, slot, custom_headers: nil) ⇒ BackupItem
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL.
-
#list_backup_status_secrets_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL.
-
#list_backup_status_secrets_slot_with_http_info(resource_group_name, name, backup_id, request, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL.
-
#list_backup_status_secrets_with_http_info(resource_group_name, name, backup_id, request, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL.
-
#list_backups(resource_group_name, name, custom_headers: nil) ⇒ Array<BackupItem>
Gets existing backups of an app.
-
#list_backups_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ BackupItemCollection
Gets existing backups of an app.
-
#list_backups_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets existing backups of an app.
-
#list_backups_next(next_page_link, custom_headers: nil) ⇒ BackupItemCollection
Gets existing backups of an app.
-
#list_backups_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets existing backups of an app.
-
#list_backups_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets existing backups of an app.
-
#list_backups_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<BackupItem>
Gets existing backups of an app.
-
#list_backups_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ BackupItemCollection
Gets existing backups of an app.
-
#list_backups_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets existing backups of an app.
-
#list_backups_slot_next(next_page_link, custom_headers: nil) ⇒ BackupItemCollection
Gets existing backups of an app.
-
#list_backups_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets existing backups of an app.
-
#list_backups_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets existing backups of an app.
-
#list_backups_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets existing backups of an app.
-
#list_backups_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets existing backups of an app.
-
#list_by_resource_group(resource_group_name, include_slots: nil, custom_headers: nil) ⇒ Array<Site>
Gets all web, mobile, and API apps in the specified resource group.
-
#list_by_resource_group_as_lazy(resource_group_name, include_slots: nil, custom_headers: nil) ⇒ WebAppCollection
Gets all web, mobile, and API apps in the specified resource group.
-
#list_by_resource_group_async(resource_group_name, include_slots: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets all web, mobile, and API apps in the specified resource group.
-
#list_by_resource_group_next(next_page_link, custom_headers: nil) ⇒ WebAppCollection
Gets all web, mobile, and API apps in the specified resource group.
-
#list_by_resource_group_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets all web, mobile, and API apps in the specified resource group.
-
#list_by_resource_group_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all web, mobile, and API apps in the specified resource group.
-
#list_by_resource_group_with_http_info(resource_group_name, include_slots: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all web, mobile, and API apps in the specified resource group.
-
#list_configuration_snapshot_info(resource_group_name, name, custom_headers: nil) ⇒ Array<SiteConfigurationSnapshotInfo>
Gets a list of web app configuration snapshots identifiers.
-
#list_configuration_snapshot_info_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ SiteConfigurationSnapshotInfoCollection
Gets a list of web app configuration snapshots identifiers.
-
#list_configuration_snapshot_info_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets a list of web app configuration snapshots identifiers.
-
#list_configuration_snapshot_info_next(next_page_link, custom_headers: nil) ⇒ SiteConfigurationSnapshotInfoCollection
Gets a list of web app configuration snapshots identifiers.
-
#list_configuration_snapshot_info_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets a list of web app configuration snapshots identifiers.
-
#list_configuration_snapshot_info_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a list of web app configuration snapshots identifiers.
-
#list_configuration_snapshot_info_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<SiteConfigurationSnapshotInfo>
Gets a list of web app configuration snapshots identifiers.
-
#list_configuration_snapshot_info_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ SiteConfigurationSnapshotInfoCollection
Gets a list of web app configuration snapshots identifiers.
-
#list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a list of web app configuration snapshots identifiers.
-
#list_configuration_snapshot_info_slot_next(next_page_link, custom_headers: nil) ⇒ SiteConfigurationSnapshotInfoCollection
Gets a list of web app configuration snapshots identifiers.
-
#list_configuration_snapshot_info_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets a list of web app configuration snapshots identifiers.
-
#list_configuration_snapshot_info_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a list of web app configuration snapshots identifiers.
-
#list_configuration_snapshot_info_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a list of web app configuration snapshots identifiers.
-
#list_configuration_snapshot_info_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a list of web app configuration snapshots identifiers.
-
#list_configurations(resource_group_name, name, custom_headers: nil) ⇒ Array<SiteConfigResource>
List the configurations of an app.
-
#list_configurations_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ SiteConfigResourceCollection
List the configurations of an app.
-
#list_configurations_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
List the configurations of an app.
-
#list_configurations_next(next_page_link, custom_headers: nil) ⇒ SiteConfigResourceCollection
List the configurations of an app.
-
#list_configurations_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List the configurations of an app.
-
#list_configurations_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the configurations of an app.
-
#list_configurations_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<SiteConfigResource>
List the configurations of an app.
-
#list_configurations_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ SiteConfigResourceCollection
List the configurations of an app.
-
#list_configurations_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
List the configurations of an app.
-
#list_configurations_slot_next(next_page_link, custom_headers: nil) ⇒ SiteConfigResourceCollection
List the configurations of an app.
-
#list_configurations_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List the configurations of an app.
-
#list_configurations_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the configurations of an app.
-
#list_configurations_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the configurations of an app.
-
#list_configurations_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the configurations of an app.
-
#list_connection_strings(resource_group_name, name, custom_headers: nil) ⇒ ConnectionStringDictionary
Gets the connection strings of an app.
-
#list_connection_strings_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the connection strings of an app.
-
#list_connection_strings_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ ConnectionStringDictionary
Gets the connection strings of an app.
-
#list_connection_strings_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the connection strings of an app.
-
#list_connection_strings_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the connection strings of an app.
-
#list_connection_strings_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the connection strings of an app.
-
#list_continuous_web_jobs(resource_group_name, name, custom_headers: nil) ⇒ Array<ContinuousWebJob>
List continuous web jobs for an app, or a deployment slot.
-
#list_continuous_web_jobs_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ ContinuousWebJobCollection
List continuous web jobs for an app, or a deployment slot.
-
#list_continuous_web_jobs_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
List continuous web jobs for an app, or a deployment slot.
-
#list_continuous_web_jobs_next(next_page_link, custom_headers: nil) ⇒ ContinuousWebJobCollection
List continuous web jobs for an app, or a deployment slot.
-
#list_continuous_web_jobs_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List continuous web jobs for an app, or a deployment slot.
-
#list_continuous_web_jobs_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List continuous web jobs for an app, or a deployment slot.
-
#list_continuous_web_jobs_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<ContinuousWebJob>
List continuous web jobs for an app, or a deployment slot.
-
#list_continuous_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ ContinuousWebJobCollection
List continuous web jobs for an app, or a deployment slot.
-
#list_continuous_web_jobs_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
List continuous web jobs for an app, or a deployment slot.
-
#list_continuous_web_jobs_slot_next(next_page_link, custom_headers: nil) ⇒ ContinuousWebJobCollection
List continuous web jobs for an app, or a deployment slot.
-
#list_continuous_web_jobs_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List continuous web jobs for an app, or a deployment slot.
-
#list_continuous_web_jobs_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List continuous web jobs for an app, or a deployment slot.
-
#list_continuous_web_jobs_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List continuous web jobs for an app, or a deployment slot.
-
#list_continuous_web_jobs_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List continuous web jobs for an app, or a deployment slot.
-
#list_deployment_log(resource_group_name, name, id, custom_headers: nil) ⇒ Deployment
List deployment log for specific deployment for an app, or a deployment slot.
-
#list_deployment_log_async(resource_group_name, name, id, custom_headers: nil) ⇒ Concurrent::Promise
List deployment log for specific deployment for an app, or a deployment slot.
-
#list_deployment_log_slot(resource_group_name, name, id, slot, custom_headers: nil) ⇒ Deployment
List deployment log for specific deployment for an app, or a deployment slot.
-
#list_deployment_log_slot_async(resource_group_name, name, id, slot, custom_headers: nil) ⇒ Concurrent::Promise
List deployment log for specific deployment for an app, or a deployment slot.
-
#list_deployment_log_slot_with_http_info(resource_group_name, name, id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List deployment log for specific deployment for an app, or a deployment slot.
-
#list_deployment_log_with_http_info(resource_group_name, name, id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List deployment log for specific deployment for an app, or a deployment slot.
-
#list_deployments(resource_group_name, name, custom_headers: nil) ⇒ Array<Deployment>
List deployments for an app, or a deployment slot.
-
#list_deployments_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ DeploymentCollection
List deployments for an app, or a deployment slot.
-
#list_deployments_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
List deployments for an app, or a deployment slot.
-
#list_deployments_next(next_page_link, custom_headers: nil) ⇒ DeploymentCollection
List deployments for an app, or a deployment slot.
-
#list_deployments_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List deployments for an app, or a deployment slot.
-
#list_deployments_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List deployments for an app, or a deployment slot.
-
#list_deployments_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<Deployment>
List deployments for an app, or a deployment slot.
-
#list_deployments_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ DeploymentCollection
List deployments for an app, or a deployment slot.
-
#list_deployments_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
List deployments for an app, or a deployment slot.
-
#list_deployments_slot_next(next_page_link, custom_headers: nil) ⇒ DeploymentCollection
List deployments for an app, or a deployment slot.
-
#list_deployments_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List deployments for an app, or a deployment slot.
-
#list_deployments_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List deployments for an app, or a deployment slot.
-
#list_deployments_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List deployments for an app, or a deployment slot.
-
#list_deployments_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List deployments for an app, or a deployment slot.
-
#list_domain_ownership_identifiers(resource_group_name, name, custom_headers: nil) ⇒ Array<Identifier>
Lists ownership identifiers for domain associated with web app.
-
#list_domain_ownership_identifiers_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ IdentifierCollection
Lists ownership identifiers for domain associated with web app.
-
#list_domain_ownership_identifiers_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Lists ownership identifiers for domain associated with web app.
-
#list_domain_ownership_identifiers_next(next_page_link, custom_headers: nil) ⇒ IdentifierCollection
Lists ownership identifiers for domain associated with web app.
-
#list_domain_ownership_identifiers_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists ownership identifiers for domain associated with web app.
-
#list_domain_ownership_identifiers_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists ownership identifiers for domain associated with web app.
-
#list_domain_ownership_identifiers_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<Identifier>
Lists ownership identifiers for domain associated with web app.
-
#list_domain_ownership_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ IdentifierCollection
Lists ownership identifiers for domain associated with web app.
-
#list_domain_ownership_identifiers_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Lists ownership identifiers for domain associated with web app.
-
#list_domain_ownership_identifiers_slot_next(next_page_link, custom_headers: nil) ⇒ IdentifierCollection
Lists ownership identifiers for domain associated with web app.
-
#list_domain_ownership_identifiers_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists ownership identifiers for domain associated with web app.
-
#list_domain_ownership_identifiers_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists ownership identifiers for domain associated with web app.
-
#list_domain_ownership_identifiers_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists ownership identifiers for domain associated with web app.
-
#list_domain_ownership_identifiers_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists ownership identifiers for domain associated with web app.
-
#list_function_secrets(resource_group_name, name, function_name, custom_headers: nil) ⇒ FunctionSecrets
Get function secrets for a function in a web site, or a deployment slot.
-
#list_function_secrets_async(resource_group_name, name, function_name, custom_headers: nil) ⇒ Concurrent::Promise
Get function secrets for a function in a web site, or a deployment slot.
-
#list_function_secrets_slot(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ FunctionSecrets
Get function secrets for a function in a web site, or a deployment slot.
-
#list_function_secrets_slot_async(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get function secrets for a function in a web site, or a deployment slot.
-
#list_function_secrets_slot_with_http_info(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get function secrets for a function in a web site, or a deployment slot.
-
#list_function_secrets_with_http_info(resource_group_name, name, function_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get function secrets for a function in a web site, or a deployment slot.
-
#list_functions(resource_group_name, name, custom_headers: nil) ⇒ Array<FunctionEnvelope>
List the functions for a web site, or a deployment slot.
-
#list_functions_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ FunctionEnvelopeCollection
List the functions for a web site, or a deployment slot.
-
#list_functions_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
List the functions for a web site, or a deployment slot.
-
#list_functions_next(next_page_link, custom_headers: nil) ⇒ FunctionEnvelopeCollection
List the functions for a web site, or a deployment slot.
-
#list_functions_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List the functions for a web site, or a deployment slot.
-
#list_functions_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the functions for a web site, or a deployment slot.
-
#list_functions_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the functions for a web site, or a deployment slot.
-
#list_host_name_bindings(resource_group_name, name, custom_headers: nil) ⇒ Array<HostNameBinding>
Get hostname bindings for an app or a deployment slot.
-
#list_host_name_bindings_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ HostNameBindingCollection
Get hostname bindings for an app or a deployment slot.
-
#list_host_name_bindings_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get hostname bindings for an app or a deployment slot.
-
#list_host_name_bindings_next(next_page_link, custom_headers: nil) ⇒ HostNameBindingCollection
Get hostname bindings for an app or a deployment slot.
-
#list_host_name_bindings_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get hostname bindings for an app or a deployment slot.
-
#list_host_name_bindings_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get hostname bindings for an app or a deployment slot.
-
#list_host_name_bindings_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<HostNameBinding>
Get hostname bindings for an app or a deployment slot.
-
#list_host_name_bindings_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ HostNameBindingCollection
Get hostname bindings for an app or a deployment slot.
-
#list_host_name_bindings_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get hostname bindings for an app or a deployment slot.
-
#list_host_name_bindings_slot_next(next_page_link, custom_headers: nil) ⇒ HostNameBindingCollection
Get hostname bindings for an app or a deployment slot.
-
#list_host_name_bindings_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get hostname bindings for an app or a deployment slot.
-
#list_host_name_bindings_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get hostname bindings for an app or a deployment slot.
-
#list_host_name_bindings_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get hostname bindings for an app or a deployment slot.
-
#list_host_name_bindings_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get hostname bindings for an app or a deployment slot.
-
#list_hybrid_connection_keys(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ HybridConnectionKey
Gets the send key name and value for a Hybrid Connection.
-
#list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the send key name and value for a Hybrid Connection.
-
#list_hybrid_connection_keys_slot(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ HybridConnectionKey
Gets the send key name and value for a Hybrid Connection.
-
#list_hybrid_connection_keys_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the send key name and value for a Hybrid Connection.
-
#list_hybrid_connection_keys_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the send key name and value for a Hybrid Connection.
-
#list_hybrid_connection_keys_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the send key name and value for a Hybrid Connection.
-
#list_hybrid_connections(resource_group_name, name, custom_headers: nil) ⇒ HybridConnection
Retrieves all Service Bus Hybrid Connections used by this Web App.
-
#list_hybrid_connections_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Retrieves all Service Bus Hybrid Connections used by this Web App.
-
#list_hybrid_connections_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ HybridConnection
Retrieves all Service Bus Hybrid Connections used by this Web App.
-
#list_hybrid_connections_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Retrieves all Service Bus Hybrid Connections used by this Web App.
-
#list_hybrid_connections_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Retrieves all Service Bus Hybrid Connections used by this Web App.
-
#list_hybrid_connections_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Retrieves all Service Bus Hybrid Connections used by this Web App.
-
#list_instance_functions_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<FunctionEnvelope>
List the functions for a web site, or a deployment slot.
-
#list_instance_functions_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ FunctionEnvelopeCollection
List the functions for a web site, or a deployment slot.
-
#list_instance_functions_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
List the functions for a web site, or a deployment slot.
-
#list_instance_functions_slot_next(next_page_link, custom_headers: nil) ⇒ FunctionEnvelopeCollection
List the functions for a web site, or a deployment slot.
-
#list_instance_functions_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List the functions for a web site, or a deployment slot.
-
#list_instance_functions_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the functions for a web site, or a deployment slot.
-
#list_instance_functions_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the functions for a web site, or a deployment slot.
-
#list_instance_identifiers(resource_group_name, name, custom_headers: nil) ⇒ Array<SiteInstance>
Gets all scale-out instances of an app.
-
#list_instance_identifiers_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ WebAppInstanceCollection
Gets all scale-out instances of an app.
-
#list_instance_identifiers_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets all scale-out instances of an app.
-
#list_instance_identifiers_next(next_page_link, custom_headers: nil) ⇒ WebAppInstanceCollection
Gets all scale-out instances of an app.
-
#list_instance_identifiers_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets all scale-out instances of an app.
-
#list_instance_identifiers_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all scale-out instances of an app.
-
#list_instance_identifiers_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<SiteInstance>
Gets all scale-out instances of an app.
-
#list_instance_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ WebAppInstanceCollection
Gets all scale-out instances of an app.
-
#list_instance_identifiers_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets all scale-out instances of an app.
-
#list_instance_identifiers_slot_next(next_page_link, custom_headers: nil) ⇒ WebAppInstanceCollection
Gets all scale-out instances of an app.
-
#list_instance_identifiers_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets all scale-out instances of an app.
-
#list_instance_identifiers_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all scale-out instances of an app.
-
#list_instance_identifiers_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all scale-out instances of an app.
-
#list_instance_identifiers_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all scale-out instances of an app.
-
#list_instance_process_modules(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ Array<ProcessModuleInfo>
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_modules_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ ProcessModuleInfoCollection
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_modules_async(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_modules_next(next_page_link, custom_headers: nil) ⇒ ProcessModuleInfoCollection
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_modules_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_modules_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_modules_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ Array<ProcessModuleInfo>
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_modules_slot_as_lazy(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ ProcessModuleInfoCollection
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_modules_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_modules_slot_next(next_page_link, custom_headers: nil) ⇒ ProcessModuleInfoCollection
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_modules_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_modules_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_modules_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_modules_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_threads(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ Array<ProcessThreadInfo>
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_threads_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ ProcessThreadInfoCollection
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_threads_async(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_threads_next(next_page_link, custom_headers: nil) ⇒ ProcessThreadInfoCollection
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_threads_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_threads_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_threads_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ Array<ProcessThreadInfo>
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_threads_slot_as_lazy(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ ProcessThreadInfoCollection
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_threads_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_threads_slot_next(next_page_link, custom_headers: nil) ⇒ ProcessThreadInfoCollection
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_threads_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_threads_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_threads_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_process_threads_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_instance_processes(resource_group_name, name, instance_id, custom_headers: nil) ⇒ Array<ProcessInfo>
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_instance_processes_as_lazy(resource_group_name, name, instance_id, custom_headers: nil) ⇒ ProcessInfoCollection
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_instance_processes_async(resource_group_name, name, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_instance_processes_next(next_page_link, custom_headers: nil) ⇒ ProcessInfoCollection
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_instance_processes_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_instance_processes_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_instance_processes_slot(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ Array<ProcessInfo>
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_instance_processes_slot_as_lazy(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ ProcessInfoCollection
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_instance_processes_slot_async(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_instance_processes_slot_next(next_page_link, custom_headers: nil) ⇒ ProcessInfoCollection
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_instance_processes_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_instance_processes_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_instance_processes_slot_with_http_info(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_instance_processes_with_http_info(resource_group_name, name, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_metadata(resource_group_name, name, custom_headers: nil) ⇒ StringDictionary
Gets the metadata of an app.
-
#list_metadata_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the metadata of an app.
-
#list_metadata_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ StringDictionary
Gets the metadata of an app.
-
#list_metadata_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the metadata of an app.
-
#list_metadata_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the metadata of an app.
-
#list_metadata_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the metadata of an app.
-
#list_metric_definitions(resource_group_name, name, custom_headers: nil) ⇒ Array<ResourceMetricDefinition>
Gets all metric definitions of an app (or deployment slot, if specified).
-
#list_metric_definitions_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Gets all metric definitions of an app (or deployment slot, if specified).
-
#list_metric_definitions_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets all metric definitions of an app (or deployment slot, if specified).
-
#list_metric_definitions_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Gets all metric definitions of an app (or deployment slot, if specified).
-
#list_metric_definitions_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets all metric definitions of an app (or deployment slot, if specified).
-
#list_metric_definitions_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all metric definitions of an app (or deployment slot, if specified).
-
#list_metric_definitions_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<ResourceMetricDefinition>
Gets all metric definitions of an app (or deployment slot, if specified).
-
#list_metric_definitions_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Gets all metric definitions of an app (or deployment slot, if specified).
-
#list_metric_definitions_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets all metric definitions of an app (or deployment slot, if specified).
-
#list_metric_definitions_slot_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Gets all metric definitions of an app (or deployment slot, if specified).
-
#list_metric_definitions_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets all metric definitions of an app (or deployment slot, if specified).
-
#list_metric_definitions_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all metric definitions of an app (or deployment slot, if specified).
-
#list_metric_definitions_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all metric definitions of an app (or deployment slot, if specified).
-
#list_metric_definitions_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all metric definitions of an app (or deployment slot, if specified).
-
#list_metrics(resource_group_name, name, details: nil, filter: nil, custom_headers: nil) ⇒ Array<ResourceMetric>
Gets performance metrics of an app (or deployment slot, if specified).
-
#list_metrics_as_lazy(resource_group_name, name, details: nil, filter: nil, custom_headers: nil) ⇒ ResourceMetricCollection
Gets performance metrics of an app (or deployment slot, if specified).
-
#list_metrics_async(resource_group_name, name, details: nil, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets performance metrics of an app (or deployment slot, if specified).
-
#list_metrics_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricCollection
Gets performance metrics of an app (or deployment slot, if specified).
-
#list_metrics_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets performance metrics of an app (or deployment slot, if specified).
-
#list_metrics_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets performance metrics of an app (or deployment slot, if specified).
-
#list_metrics_slot(resource_group_name, name, slot, details: nil, filter: nil, custom_headers: nil) ⇒ Array<ResourceMetric>
Gets performance metrics of an app (or deployment slot, if specified).
-
#list_metrics_slot_as_lazy(resource_group_name, name, slot, details: nil, filter: nil, custom_headers: nil) ⇒ ResourceMetricCollection
Gets performance metrics of an app (or deployment slot, if specified).
-
#list_metrics_slot_async(resource_group_name, name, slot, details: nil, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets performance metrics of an app (or deployment slot, if specified).
-
#list_metrics_slot_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricCollection
Gets performance metrics of an app (or deployment slot, if specified).
-
#list_metrics_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets performance metrics of an app (or deployment slot, if specified).
-
#list_metrics_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets performance metrics of an app (or deployment slot, if specified).
-
#list_metrics_slot_with_http_info(resource_group_name, name, slot, details: nil, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets performance metrics of an app (or deployment slot, if specified).
-
#list_metrics_with_http_info(resource_group_name, name, details: nil, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets performance metrics of an app (or deployment slot, if specified).
-
#list_network_features(resource_group_name, name, view, custom_headers: nil) ⇒ NetworkFeatures
Gets all network features used by the app (or deployment slot, if specified).
-
#list_network_features_async(resource_group_name, name, view, custom_headers: nil) ⇒ Concurrent::Promise
Gets all network features used by the app (or deployment slot, if specified).
-
#list_network_features_slot(resource_group_name, name, view, slot, custom_headers: nil) ⇒ NetworkFeatures
Gets all network features used by the app (or deployment slot, if specified).
-
#list_network_features_slot_async(resource_group_name, name, view, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets all network features used by the app (or deployment slot, if specified).
-
#list_network_features_slot_with_http_info(resource_group_name, name, view, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all network features used by the app (or deployment slot, if specified).
-
#list_network_features_with_http_info(resource_group_name, name, view, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all network features used by the app (or deployment slot, if specified).
-
#list_next(next_page_link, custom_headers: nil) ⇒ WebAppCollection
Get all apps for a subscription.
-
#list_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get all apps for a subscription.
-
#list_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all apps for a subscription.
-
#list_perf_mon_counters(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ Array<PerfMonResponse>
Gets perfmon counters for web app.
-
#list_perf_mon_counters_as_lazy(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ PerfMonCounterCollection
Gets perfmon counters for web app.
-
#list_perf_mon_counters_async(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets perfmon counters for web app.
-
#list_perf_mon_counters_next(next_page_link, custom_headers: nil) ⇒ PerfMonCounterCollection
Gets perfmon counters for web app.
-
#list_perf_mon_counters_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets perfmon counters for web app.
-
#list_perf_mon_counters_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets perfmon counters for web app.
-
#list_perf_mon_counters_slot(resource_group_name, name, slot, filter: nil, custom_headers: nil) ⇒ Array<PerfMonResponse>
Gets perfmon counters for web app.
-
#list_perf_mon_counters_slot_as_lazy(resource_group_name, name, slot, filter: nil, custom_headers: nil) ⇒ PerfMonCounterCollection
Gets perfmon counters for web app.
-
#list_perf_mon_counters_slot_async(resource_group_name, name, slot, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets perfmon counters for web app.
-
#list_perf_mon_counters_slot_next(next_page_link, custom_headers: nil) ⇒ PerfMonCounterCollection
Gets perfmon counters for web app.
-
#list_perf_mon_counters_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets perfmon counters for web app.
-
#list_perf_mon_counters_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets perfmon counters for web app.
-
#list_perf_mon_counters_slot_with_http_info(resource_group_name, name, slot, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets perfmon counters for web app.
-
#list_perf_mon_counters_with_http_info(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets perfmon counters for web app.
-
#list_premier_add_ons(resource_group_name, name, custom_headers: nil) ⇒ PremierAddOn
Gets the premier add-ons of an app.
-
#list_premier_add_ons_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the premier add-ons of an app.
-
#list_premier_add_ons_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ PremierAddOn
Gets the premier add-ons of an app.
-
#list_premier_add_ons_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the premier add-ons of an app.
-
#list_premier_add_ons_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the premier add-ons of an app.
-
#list_premier_add_ons_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the premier add-ons of an app.
-
#list_process_modules(resource_group_name, name, process_id, custom_headers: nil) ⇒ Array<ProcessModuleInfo>
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_modules_as_lazy(resource_group_name, name, process_id, custom_headers: nil) ⇒ ProcessModuleInfoCollection
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_modules_async(resource_group_name, name, process_id, custom_headers: nil) ⇒ Concurrent::Promise
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_modules_next(next_page_link, custom_headers: nil) ⇒ ProcessModuleInfoCollection
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_modules_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_modules_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_modules_slot(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ Array<ProcessModuleInfo>
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_modules_slot_as_lazy(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ ProcessModuleInfoCollection
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_modules_slot_async(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_modules_slot_next(next_page_link, custom_headers: nil) ⇒ ProcessModuleInfoCollection
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_modules_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_modules_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_modules_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_modules_with_http_info(resource_group_name, name, process_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List module information for a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_threads(resource_group_name, name, process_id, custom_headers: nil) ⇒ Array<ProcessThreadInfo>
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_threads_as_lazy(resource_group_name, name, process_id, custom_headers: nil) ⇒ ProcessThreadInfoCollection
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_threads_async(resource_group_name, name, process_id, custom_headers: nil) ⇒ Concurrent::Promise
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_threads_next(next_page_link, custom_headers: nil) ⇒ ProcessThreadInfoCollection
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_threads_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_threads_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_threads_slot(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ Array<ProcessThreadInfo>
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_threads_slot_as_lazy(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ ProcessThreadInfoCollection
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_threads_slot_async(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_threads_slot_next(next_page_link, custom_headers: nil) ⇒ ProcessThreadInfoCollection
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_threads_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_threads_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_threads_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_process_threads_with_http_info(resource_group_name, name, process_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the threads in a process by its ID for a specific scaled-out instance in a web site.
-
#list_processes(resource_group_name, name, custom_headers: nil) ⇒ Array<ProcessInfo>
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_processes_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ ProcessInfoCollection
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_processes_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_processes_next(next_page_link, custom_headers: nil) ⇒ ProcessInfoCollection
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_processes_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_processes_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_processes_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<ProcessInfo>
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_processes_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ ProcessInfoCollection
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_processes_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_processes_slot_next(next_page_link, custom_headers: nil) ⇒ ProcessInfoCollection
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_processes_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_processes_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_processes_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_processes_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
-
#list_public_certificates(resource_group_name, name, custom_headers: nil) ⇒ Array<PublicCertificate>
Get public certificates for an app or a deployment slot.
-
#list_public_certificates_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ PublicCertificateCollection
Get public certificates for an app or a deployment slot.
-
#list_public_certificates_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get public certificates for an app or a deployment slot.
-
#list_public_certificates_next(next_page_link, custom_headers: nil) ⇒ PublicCertificateCollection
Get public certificates for an app or a deployment slot.
-
#list_public_certificates_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get public certificates for an app or a deployment slot.
-
#list_public_certificates_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get public certificates for an app or a deployment slot.
-
#list_public_certificates_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<PublicCertificate>
Get public certificates for an app or a deployment slot.
-
#list_public_certificates_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ PublicCertificateCollection
Get public certificates for an app or a deployment slot.
-
#list_public_certificates_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get public certificates for an app or a deployment slot.
-
#list_public_certificates_slot_next(next_page_link, custom_headers: nil) ⇒ PublicCertificateCollection
Get public certificates for an app or a deployment slot.
-
#list_public_certificates_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get public certificates for an app or a deployment slot.
-
#list_public_certificates_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get public certificates for an app or a deployment slot.
-
#list_public_certificates_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get public certificates for an app or a deployment slot.
-
#list_public_certificates_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get public certificates for an app or a deployment slot.
-
#list_publishing_credentials(resource_group_name, name, custom_headers: nil) ⇒ User
Gets the Git/FTP publishing credentials of an app.
-
#list_publishing_credentials_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#list_publishing_credentials_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ User
Gets the Git/FTP publishing credentials of an app.
-
#list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#list_publishing_profile_xml_with_secrets(resource_group_name, name, publishing_profile_options, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Gets the publishing profile for an app (or deployment slot, if specified).
-
#list_publishing_profile_xml_with_secrets_async(resource_group_name, name, publishing_profile_options, custom_headers: nil) ⇒ Concurrent::Promise
Gets the publishing profile for an app (or deployment slot, if specified).
-
#list_publishing_profile_xml_with_secrets_slot(resource_group_name, name, publishing_profile_options, slot, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Gets the publishing profile for an app (or deployment slot, if specified).
-
#list_publishing_profile_xml_with_secrets_slot_async(resource_group_name, name, publishing_profile_options, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the publishing profile for an app (or deployment slot, if specified).
-
#list_publishing_profile_xml_with_secrets_slot_with_http_info(resource_group_name, name, publishing_profile_options, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the publishing profile for an app (or deployment slot, if specified).
-
#list_publishing_profile_xml_with_secrets_with_http_info(resource_group_name, name, publishing_profile_options, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the publishing profile for an app (or deployment slot, if specified).
-
#list_relay_service_connections(resource_group_name, name, custom_headers: nil) ⇒ RelayServiceConnectionEntity
Gets hybrid connections configured for an app (or deployment slot, if specified).
-
#list_relay_service_connections_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets hybrid connections configured for an app (or deployment slot, if specified).
-
#list_relay_service_connections_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ RelayServiceConnectionEntity
Gets hybrid connections configured for an app (or deployment slot, if specified).
-
#list_relay_service_connections_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets hybrid connections configured for an app (or deployment slot, if specified).
-
#list_relay_service_connections_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets hybrid connections configured for an app (or deployment slot, if specified).
-
#list_relay_service_connections_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets hybrid connections configured for an app (or deployment slot, if specified).
-
#list_site_extensions(resource_group_name, name, custom_headers: nil) ⇒ Array<SiteExtensionInfo>
Get list of siteextensions for a web site, or a deployment slot.
-
#list_site_extensions_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ SiteExtensionInfoCollection
Get list of siteextensions for a web site, or a deployment slot.
-
#list_site_extensions_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get list of siteextensions for a web site, or a deployment slot.
-
#list_site_extensions_next(next_page_link, custom_headers: nil) ⇒ SiteExtensionInfoCollection
Get list of siteextensions for a web site, or a deployment slot.
-
#list_site_extensions_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get list of siteextensions for a web site, or a deployment slot.
-
#list_site_extensions_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of siteextensions for a web site, or a deployment slot.
-
#list_site_extensions_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<SiteExtensionInfo>
Get list of siteextensions for a web site, or a deployment slot.
-
#list_site_extensions_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ SiteExtensionInfoCollection
Get list of siteextensions for a web site, or a deployment slot.
-
#list_site_extensions_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get list of siteextensions for a web site, or a deployment slot.
-
#list_site_extensions_slot_next(next_page_link, custom_headers: nil) ⇒ SiteExtensionInfoCollection
Get list of siteextensions for a web site, or a deployment slot.
-
#list_site_extensions_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get list of siteextensions for a web site, or a deployment slot.
-
#list_site_extensions_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of siteextensions for a web site, or a deployment slot.
-
#list_site_extensions_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of siteextensions for a web site, or a deployment slot.
-
#list_site_extensions_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of siteextensions for a web site, or a deployment slot.
-
#list_site_push_settings(resource_group_name, name, custom_headers: nil) ⇒ PushSettings
Gets the Push settings associated with web app.
-
#list_site_push_settings_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the Push settings associated with web app.
-
#list_site_push_settings_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ PushSettings
Gets the Push settings associated with web app.
-
#list_site_push_settings_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the Push settings associated with web app.
-
#list_site_push_settings_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the Push settings associated with web app.
-
#list_site_push_settings_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the Push settings associated with web app.
-
#list_slot_configuration_names(resource_group_name, name, custom_headers: nil) ⇒ SlotConfigNamesResource
Gets the names of app settings and connection strings that stick to the slot (not swapped).
-
#list_slot_configuration_names_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the names of app settings and connection strings that stick to the slot (not swapped).
-
#list_slot_configuration_names_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the names of app settings and connection strings that stick to the slot (not swapped).
-
#list_slot_differences_from_production(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ Array<SlotDifference>
Get the difference in configuration settings between two web app slots.
-
#list_slot_differences_from_production_as_lazy(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ SlotDifferenceCollection
Get the difference in configuration settings between two web app slots.
-
#list_slot_differences_from_production_async(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ Concurrent::Promise
Get the difference in configuration settings between two web app slots.
-
#list_slot_differences_from_production_next(next_page_link, custom_headers: nil) ⇒ SlotDifferenceCollection
Get the difference in configuration settings between two web app slots.
-
#list_slot_differences_from_production_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get the difference in configuration settings between two web app slots.
-
#list_slot_differences_from_production_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the difference in configuration settings between two web app slots.
-
#list_slot_differences_from_production_with_http_info(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the difference in configuration settings between two web app slots.
-
#list_slot_differences_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ Array<SlotDifference>
Get the difference in configuration settings between two web app slots.
-
#list_slot_differences_slot_as_lazy(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ SlotDifferenceCollection
Get the difference in configuration settings between two web app slots.
-
#list_slot_differences_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get the difference in configuration settings between two web app slots.
-
#list_slot_differences_slot_next(next_page_link, custom_headers: nil) ⇒ SlotDifferenceCollection
Get the difference in configuration settings between two web app slots.
-
#list_slot_differences_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get the difference in configuration settings between two web app slots.
-
#list_slot_differences_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the difference in configuration settings between two web app slots.
-
#list_slot_differences_slot_with_http_info(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the difference in configuration settings between two web app slots.
-
#list_slots(resource_group_name, name, custom_headers: nil) ⇒ Array<Site>
Gets an app’s deployment slots.
-
#list_slots_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ WebAppCollection
Gets an app’s deployment slots.
-
#list_slots_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets an app’s deployment slots.
-
#list_slots_next(next_page_link, custom_headers: nil) ⇒ WebAppCollection
Gets an app’s deployment slots.
-
#list_slots_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets an app’s deployment slots.
-
#list_slots_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets an app’s deployment slots.
-
#list_slots_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets an app’s deployment slots.
-
#list_snapshots(resource_group_name, name, custom_headers: nil) ⇒ Array<Snapshot>
Returns all Snapshots to the user.
-
#list_snapshots_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ SnapshotCollection
Returns all Snapshots to the user.
-
#list_snapshots_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Returns all Snapshots to the user.
-
#list_snapshots_next(next_page_link, custom_headers: nil) ⇒ SnapshotCollection
Returns all Snapshots to the user.
-
#list_snapshots_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Returns all Snapshots to the user.
-
#list_snapshots_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns all Snapshots to the user.
-
#list_snapshots_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<Snapshot>
Returns all Snapshots to the user.
-
#list_snapshots_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ SnapshotCollection
Returns all Snapshots to the user.
-
#list_snapshots_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Returns all Snapshots to the user.
-
#list_snapshots_slot_next(next_page_link, custom_headers: nil) ⇒ SnapshotCollection
Returns all Snapshots to the user.
-
#list_snapshots_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Returns all Snapshots to the user.
-
#list_snapshots_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns all Snapshots to the user.
-
#list_snapshots_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns all Snapshots to the user.
-
#list_snapshots_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns all Snapshots to the user.
-
#list_sync_function_triggers(resource_group_name, name, custom_headers: nil) ⇒ FunctionSecrets
This is to allow calling via powershell and ARM template.
-
#list_sync_function_triggers_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
This is to allow calling via powershell and ARM template.
-
#list_sync_function_triggers_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ FunctionSecrets
This is to allow calling via powershell and ARM template.
-
#list_sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
This is to allow calling via powershell and ARM template.
-
#list_sync_function_triggers_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
This is to allow calling via powershell and ARM template.
-
#list_sync_function_triggers_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
This is to allow calling via powershell and ARM template.
-
#list_triggered_web_job_history(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Array<TriggeredJobHistory>
List a triggered web job’s history for an app, or a deployment slot.
-
#list_triggered_web_job_history_as_lazy(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ TriggeredJobHistoryCollection
List a triggered web job’s history for an app, or a deployment slot.
-
#list_triggered_web_job_history_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
List a triggered web job’s history for an app, or a deployment slot.
-
#list_triggered_web_job_history_next(next_page_link, custom_headers: nil) ⇒ TriggeredJobHistoryCollection
List a triggered web job’s history for an app, or a deployment slot.
-
#list_triggered_web_job_history_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List a triggered web job’s history for an app, or a deployment slot.
-
#list_triggered_web_job_history_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List a triggered web job’s history for an app, or a deployment slot.
-
#list_triggered_web_job_history_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Array<TriggeredJobHistory>
List a triggered web job’s history for an app, or a deployment slot.
-
#list_triggered_web_job_history_slot_as_lazy(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ TriggeredJobHistoryCollection
List a triggered web job’s history for an app, or a deployment slot.
-
#list_triggered_web_job_history_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
List a triggered web job’s history for an app, or a deployment slot.
-
#list_triggered_web_job_history_slot_next(next_page_link, custom_headers: nil) ⇒ TriggeredJobHistoryCollection
List a triggered web job’s history for an app, or a deployment slot.
-
#list_triggered_web_job_history_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List a triggered web job’s history for an app, or a deployment slot.
-
#list_triggered_web_job_history_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List a triggered web job’s history for an app, or a deployment slot.
-
#list_triggered_web_job_history_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List a triggered web job’s history for an app, or a deployment slot.
-
#list_triggered_web_job_history_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List a triggered web job’s history for an app, or a deployment slot.
-
#list_triggered_web_jobs(resource_group_name, name, custom_headers: nil) ⇒ Array<TriggeredWebJob>
List triggered web jobs for an app, or a deployment slot.
-
#list_triggered_web_jobs_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ TriggeredWebJobCollection
List triggered web jobs for an app, or a deployment slot.
-
#list_triggered_web_jobs_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
List triggered web jobs for an app, or a deployment slot.
-
#list_triggered_web_jobs_next(next_page_link, custom_headers: nil) ⇒ TriggeredWebJobCollection
List triggered web jobs for an app, or a deployment slot.
-
#list_triggered_web_jobs_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List triggered web jobs for an app, or a deployment slot.
-
#list_triggered_web_jobs_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List triggered web jobs for an app, or a deployment slot.
-
#list_triggered_web_jobs_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<TriggeredWebJob>
List triggered web jobs for an app, or a deployment slot.
-
#list_triggered_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ TriggeredWebJobCollection
List triggered web jobs for an app, or a deployment slot.
-
#list_triggered_web_jobs_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
List triggered web jobs for an app, or a deployment slot.
-
#list_triggered_web_jobs_slot_next(next_page_link, custom_headers: nil) ⇒ TriggeredWebJobCollection
List triggered web jobs for an app, or a deployment slot.
-
#list_triggered_web_jobs_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List triggered web jobs for an app, or a deployment slot.
-
#list_triggered_web_jobs_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List triggered web jobs for an app, or a deployment slot.
-
#list_triggered_web_jobs_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List triggered web jobs for an app, or a deployment slot.
-
#list_triggered_web_jobs_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List triggered web jobs for an app, or a deployment slot.
-
#list_usages(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ Array<CsmUsageQuota>
Gets the quota usage information of an app (or deployment slot, if specified).
-
#list_usages_as_lazy(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ CsmUsageQuotaCollection
Gets the quota usage information of an app (or deployment slot, if specified).
-
#list_usages_async(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets the quota usage information of an app (or deployment slot, if specified).
-
#list_usages_next(next_page_link, custom_headers: nil) ⇒ CsmUsageQuotaCollection
Gets the quota usage information of an app (or deployment slot, if specified).
-
#list_usages_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets the quota usage information of an app (or deployment slot, if specified).
-
#list_usages_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the quota usage information of an app (or deployment slot, if specified).
-
#list_usages_slot(resource_group_name, name, slot, filter: nil, custom_headers: nil) ⇒ Array<CsmUsageQuota>
Gets the quota usage information of an app (or deployment slot, if specified).
-
#list_usages_slot_as_lazy(resource_group_name, name, slot, filter: nil, custom_headers: nil) ⇒ CsmUsageQuotaCollection
Gets the quota usage information of an app (or deployment slot, if specified).
-
#list_usages_slot_async(resource_group_name, name, slot, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets the quota usage information of an app (or deployment slot, if specified).
-
#list_usages_slot_next(next_page_link, custom_headers: nil) ⇒ CsmUsageQuotaCollection
Gets the quota usage information of an app (or deployment slot, if specified).
-
#list_usages_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets the quota usage information of an app (or deployment slot, if specified).
-
#list_usages_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the quota usage information of an app (or deployment slot, if specified).
-
#list_usages_slot_with_http_info(resource_group_name, name, slot, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the quota usage information of an app (or deployment slot, if specified).
-
#list_usages_with_http_info(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the quota usage information of an app (or deployment slot, if specified).
-
#list_vnet_connections(resource_group_name, name, custom_headers: nil) ⇒ Array
Gets the virtual networks the app (or deployment slot) is connected to.
-
#list_vnet_connections_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the virtual networks the app (or deployment slot) is connected to.
-
#list_vnet_connections_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array
Gets the virtual networks the app (or deployment slot) is connected to.
-
#list_vnet_connections_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the virtual networks the app (or deployment slot) is connected to.
-
#list_vnet_connections_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the virtual networks the app (or deployment slot) is connected to.
-
#list_vnet_connections_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the virtual networks the app (or deployment slot) is connected to.
-
#list_web_jobs(resource_group_name, name, custom_headers: nil) ⇒ Array<WebJob>
List webjobs for an app, or a deployment slot.
-
#list_web_jobs_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ WebJobCollection
List webjobs for an app, or a deployment slot.
-
#list_web_jobs_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
List webjobs for an app, or a deployment slot.
-
#list_web_jobs_next(next_page_link, custom_headers: nil) ⇒ WebJobCollection
List webjobs for an app, or a deployment slot.
-
#list_web_jobs_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List webjobs for an app, or a deployment slot.
-
#list_web_jobs_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List webjobs for an app, or a deployment slot.
-
#list_web_jobs_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<WebJob>
List webjobs for an app, or a deployment slot.
-
#list_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ WebJobCollection
List webjobs for an app, or a deployment slot.
-
#list_web_jobs_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
List webjobs for an app, or a deployment slot.
-
#list_web_jobs_slot_next(next_page_link, custom_headers: nil) ⇒ WebJobCollection
List webjobs for an app, or a deployment slot.
-
#list_web_jobs_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List webjobs for an app, or a deployment slot.
-
#list_web_jobs_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List webjobs for an app, or a deployment slot.
-
#list_web_jobs_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List webjobs for an app, or a deployment slot.
-
#list_web_jobs_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List webjobs for an app, or a deployment slot.
-
#list_with_http_info(custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all apps for a subscription.
-
#migrate_my_sql(resource_group_name, name, migration_request_envelope, custom_headers: nil) ⇒ Operation
Migrates a local (in-app) MySql database to a remote MySql database.
-
#migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#migrate_storage(subscription_name, resource_group_name, name, migration_options, custom_headers: nil) ⇒ StorageMigrationResponse
Restores a web app.
-
#migrate_storage_async(subscription_name, resource_group_name, name, migration_options, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#recover(resource_group_name, name, recovery_entity, custom_headers: nil) ⇒ Object
Recovers a web app to a previous snapshot.
-
#recover_async(resource_group_name, name, recovery_entity, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#recover_site_configuration_snapshot(resource_group_name, name, snapshot_id, custom_headers: nil) ⇒ Object
Reverts the configuration of an app to a previous snapshot.
-
#recover_site_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers: nil) ⇒ Concurrent::Promise
Reverts the configuration of an app to a previous snapshot.
-
#recover_site_configuration_snapshot_slot(resource_group_name, name, snapshot_id, slot, custom_headers: nil) ⇒ Object
Reverts the configuration of an app to a previous snapshot.
-
#recover_site_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Reverts the configuration of an app to a previous snapshot.
-
#recover_site_configuration_snapshot_slot_with_http_info(resource_group_name, name, snapshot_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Reverts the configuration of an app to a previous snapshot.
-
#recover_site_configuration_snapshot_with_http_info(resource_group_name, name, snapshot_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Reverts the configuration of an app to a previous snapshot.
-
#recover_slot(resource_group_name, name, recovery_entity, slot, custom_headers: nil) ⇒ Object
Recovers a web app to a previous snapshot.
-
#recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#reset_production_slot_config(resource_group_name, name, custom_headers: nil) ⇒ Object
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
-
#reset_production_slot_config_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
-
#reset_production_slot_config_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
-
#reset_slot_configuration_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Object
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
-
#reset_slot_configuration_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
-
#reset_slot_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
-
#restart(resource_group_name, name, soft_restart: nil, synchronous: nil, custom_headers: nil) ⇒ Object
Restarts an app (or deployment slot, if specified).
-
#restart_async(resource_group_name, name, soft_restart: nil, synchronous: nil, custom_headers: nil) ⇒ Concurrent::Promise
Restarts an app (or deployment slot, if specified).
-
#restart_slot(resource_group_name, name, slot, soft_restart: nil, synchronous: nil, custom_headers: nil) ⇒ Object
Restarts an app (or deployment slot, if specified).
-
#restart_slot_async(resource_group_name, name, slot, soft_restart: nil, synchronous: nil, custom_headers: nil) ⇒ Concurrent::Promise
Restarts an app (or deployment slot, if specified).
-
#restart_slot_with_http_info(resource_group_name, name, slot, soft_restart: nil, synchronous: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Restarts an app (or deployment slot, if specified).
-
#restart_with_http_info(resource_group_name, name, soft_restart: nil, synchronous: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Restarts an app (or deployment slot, if specified).
-
#restore(resource_group_name, name, backup_id, request, custom_headers: nil) ⇒ RestoreResponse
Restores a specific backup to another app (or deployment slot, if specified).
-
#restore_async(resource_group_name, name, backup_id, request, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#restore_slot(resource_group_name, name, backup_id, request, slot, custom_headers: nil) ⇒ RestoreResponse
Restores a specific backup to another app (or deployment slot, if specified).
-
#restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#run_triggered_web_job(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Object
Run a triggered web job for an app, or a deployment slot.
-
#run_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
Run a triggered web job for an app, or a deployment slot.
-
#run_triggered_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Object
Run a triggered web job for an app, or a deployment slot.
-
#run_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Run a triggered web job for an app, or a deployment slot.
-
#run_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Run a triggered web job for an app, or a deployment slot.
-
#run_triggered_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Run a triggered web job for an app, or a deployment slot.
-
#start(resource_group_name, name, custom_headers: nil) ⇒ Object
Starts an app (or deployment slot, if specified).
-
#start_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Starts an app (or deployment slot, if specified).
-
#start_continuous_web_job(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Object
Start a continuous web job for an app, or a deployment slot.
-
#start_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
Start a continuous web job for an app, or a deployment slot.
-
#start_continuous_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Object
Start a continuous web job for an app, or a deployment slot.
-
#start_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Start a continuous web job for an app, or a deployment slot.
-
#start_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Start a continuous web job for an app, or a deployment slot.
-
#start_continuous_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Start a continuous web job for an app, or a deployment slot.
-
#start_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Object
Starts an app (or deployment slot, if specified).
-
#start_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Starts an app (or deployment slot, if specified).
-
#start_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Starts an app (or deployment slot, if specified).
-
#start_web_site_network_trace(resource_group_name, name, duration_in_seconds: nil, max_frame_length: nil, sas_url: nil, custom_headers: nil) ⇒ String
Start capturing network packets for the site.
-
#start_web_site_network_trace_async(resource_group_name, name, duration_in_seconds: nil, max_frame_length: nil, sas_url: nil, custom_headers: nil) ⇒ Concurrent::Promise
Start capturing network packets for the site.
-
#start_web_site_network_trace_slot(resource_group_name, name, slot, duration_in_seconds: nil, max_frame_length: nil, sas_url: nil, custom_headers: nil) ⇒ String
Start capturing network packets for the site.
-
#start_web_site_network_trace_slot_async(resource_group_name, name, slot, duration_in_seconds: nil, max_frame_length: nil, sas_url: nil, custom_headers: nil) ⇒ Concurrent::Promise
Start capturing network packets for the site.
-
#start_web_site_network_trace_slot_with_http_info(resource_group_name, name, slot, duration_in_seconds: nil, max_frame_length: nil, sas_url: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Start capturing network packets for the site.
-
#start_web_site_network_trace_with_http_info(resource_group_name, name, duration_in_seconds: nil, max_frame_length: nil, sas_url: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Start capturing network packets for the site.
-
#start_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Starts an app (or deployment slot, if specified).
-
#stop(resource_group_name, name, custom_headers: nil) ⇒ Object
Stops an app (or deployment slot, if specified).
-
#stop_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Stops an app (or deployment slot, if specified).
-
#stop_continuous_web_job(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Object
Stop a continuous web job for an app, or a deployment slot.
-
#stop_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
Stop a continuous web job for an app, or a deployment slot.
-
#stop_continuous_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Object
Stop a continuous web job for an app, or a deployment slot.
-
#stop_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Stop a continuous web job for an app, or a deployment slot.
-
#stop_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Stop a continuous web job for an app, or a deployment slot.
-
#stop_continuous_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Stop a continuous web job for an app, or a deployment slot.
-
#stop_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Object
Stops an app (or deployment slot, if specified).
-
#stop_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Stops an app (or deployment slot, if specified).
-
#stop_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Stops an app (or deployment slot, if specified).
-
#stop_web_site_network_trace(resource_group_name, name, custom_headers: nil) ⇒ String
Stop ongoing capturing network packets for the site.
-
#stop_web_site_network_trace_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Stop ongoing capturing network packets for the site.
-
#stop_web_site_network_trace_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ String
Stop ongoing capturing network packets for the site.
-
#stop_web_site_network_trace_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Stop ongoing capturing network packets for the site.
-
#stop_web_site_network_trace_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Stop ongoing capturing network packets for the site.
-
#stop_web_site_network_trace_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Stop ongoing capturing network packets for the site.
-
#stop_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Stops an app (or deployment slot, if specified).
-
#swap_slot_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ Object
Swaps two deployment slots of an app.
-
#swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#swap_slot_with_production(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ Object
Swaps two deployment slots of an app.
-
#swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#sync_function_triggers(resource_group_name, name, custom_headers: nil) ⇒ Object
Syncs function trigger metadata to the scale controller.
-
#sync_function_triggers_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Syncs function trigger metadata to the scale controller.
-
#sync_function_triggers_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Object
Syncs function trigger metadata to the scale controller.
-
#sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Syncs function trigger metadata to the scale controller.
-
#sync_function_triggers_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Syncs function trigger metadata to the scale controller.
-
#sync_function_triggers_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Syncs function trigger metadata to the scale controller.
-
#sync_repository(resource_group_name, name, custom_headers: nil) ⇒ Object
Sync web app repository.
-
#sync_repository_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Sync web app repository.
-
#sync_repository_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Object
Sync web app repository.
-
#sync_repository_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Sync web app repository.
-
#sync_repository_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Sync web app repository.
-
#sync_repository_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Sync web app repository.
-
#update(resource_group_name, name, site_envelope, custom_headers: nil) ⇒ Site
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
-
#update_application_settings(resource_group_name, name, app_settings, custom_headers: nil) ⇒ StringDictionary
Replaces the application settings of an app.
-
#update_application_settings_async(resource_group_name, name, app_settings, custom_headers: nil) ⇒ Concurrent::Promise
Replaces the application settings of an app.
-
#update_application_settings_slot(resource_group_name, name, app_settings, slot, custom_headers: nil) ⇒ StringDictionary
Replaces the application settings of an app.
-
#update_application_settings_slot_async(resource_group_name, name, app_settings, slot, custom_headers: nil) ⇒ Concurrent::Promise
Replaces the application settings of an app.
-
#update_application_settings_slot_with_http_info(resource_group_name, name, app_settings, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Replaces the application settings of an app.
-
#update_application_settings_with_http_info(resource_group_name, name, app_settings, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Replaces the application settings of an app.
-
#update_async(resource_group_name, name, site_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
-
#update_auth_settings(resource_group_name, name, site_auth_settings, custom_headers: nil) ⇒ SiteAuthSettings
Updates the Authentication / Authorization settings associated with web app.
-
#update_auth_settings_async(resource_group_name, name, site_auth_settings, custom_headers: nil) ⇒ Concurrent::Promise
Updates the Authentication / Authorization settings associated with web app.
-
#update_auth_settings_slot(resource_group_name, name, site_auth_settings, slot, custom_headers: nil) ⇒ SiteAuthSettings
Updates the Authentication / Authorization settings associated with web app.
-
#update_auth_settings_slot_async(resource_group_name, name, site_auth_settings, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates the Authentication / Authorization settings associated with web app.
-
#update_auth_settings_slot_with_http_info(resource_group_name, name, site_auth_settings, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the Authentication / Authorization settings associated with web app.
-
#update_auth_settings_with_http_info(resource_group_name, name, site_auth_settings, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the Authentication / Authorization settings associated with web app.
-
#update_backup_configuration(resource_group_name, name, request, custom_headers: nil) ⇒ BackupRequest
Updates the backup configuration of an app.
-
#update_backup_configuration_async(resource_group_name, name, request, custom_headers: nil) ⇒ Concurrent::Promise
Updates the backup configuration of an app.
-
#update_backup_configuration_slot(resource_group_name, name, request, slot, custom_headers: nil) ⇒ BackupRequest
Updates the backup configuration of an app.
-
#update_backup_configuration_slot_async(resource_group_name, name, request, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates the backup configuration of an app.
-
#update_backup_configuration_slot_with_http_info(resource_group_name, name, request, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the backup configuration of an app.
-
#update_backup_configuration_with_http_info(resource_group_name, name, request, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the backup configuration of an app.
-
#update_configuration(resource_group_name, name, site_config, custom_headers: nil) ⇒ SiteConfigResource
Updates the configuration of an app.
-
#update_configuration_async(resource_group_name, name, site_config, custom_headers: nil) ⇒ Concurrent::Promise
Updates the configuration of an app.
-
#update_configuration_slot(resource_group_name, name, site_config, slot, custom_headers: nil) ⇒ SiteConfigResource
Updates the configuration of an app.
-
#update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates the configuration of an app.
-
#update_configuration_slot_with_http_info(resource_group_name, name, site_config, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the configuration of an app.
-
#update_configuration_with_http_info(resource_group_name, name, site_config, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the configuration of an app.
-
#update_connection_strings(resource_group_name, name, connection_strings, custom_headers: nil) ⇒ ConnectionStringDictionary
Replaces the connection strings of an app.
-
#update_connection_strings_async(resource_group_name, name, connection_strings, custom_headers: nil) ⇒ Concurrent::Promise
Replaces the connection strings of an app.
-
#update_connection_strings_slot(resource_group_name, name, connection_strings, slot, custom_headers: nil) ⇒ ConnectionStringDictionary
Replaces the connection strings of an app.
-
#update_connection_strings_slot_async(resource_group_name, name, connection_strings, slot, custom_headers: nil) ⇒ Concurrent::Promise
Replaces the connection strings of an app.
-
#update_connection_strings_slot_with_http_info(resource_group_name, name, connection_strings, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Replaces the connection strings of an app.
-
#update_connection_strings_with_http_info(resource_group_name, name, connection_strings, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Replaces the connection strings of an app.
-
#update_diagnostic_logs_config(resource_group_name, name, site_logs_config, custom_headers: nil) ⇒ SiteLogsConfig
Updates the logging configuration of an app.
-
#update_diagnostic_logs_config_async(resource_group_name, name, site_logs_config, custom_headers: nil) ⇒ Concurrent::Promise
Updates the logging configuration of an app.
-
#update_diagnostic_logs_config_slot(resource_group_name, name, site_logs_config, slot, custom_headers: nil) ⇒ SiteLogsConfig
Updates the logging configuration of an app.
-
#update_diagnostic_logs_config_slot_async(resource_group_name, name, site_logs_config, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates the logging configuration of an app.
-
#update_diagnostic_logs_config_slot_with_http_info(resource_group_name, name, site_logs_config, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the logging configuration of an app.
-
#update_diagnostic_logs_config_with_http_info(resource_group_name, name, site_logs_config, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the logging configuration of an app.
-
#update_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers: nil) ⇒ Identifier
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
-
#update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers: nil) ⇒ Concurrent::Promise
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
-
#update_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers: nil) ⇒ Identifier
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
-
#update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
-
#update_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
-
#update_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
-
#update_hybrid_connection(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers: nil) ⇒ HybridConnection
Creates a new Hybrid Connection using a Service Bus relay.
-
#update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new Hybrid Connection using a Service Bus relay.
-
#update_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers: nil) ⇒ HybridConnection
Creates a new Hybrid Connection using a Service Bus relay.
-
#update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new Hybrid Connection using a Service Bus relay.
-
#update_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new Hybrid Connection using a Service Bus relay.
-
#update_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new Hybrid Connection using a Service Bus relay.
-
#update_metadata(resource_group_name, name, metadata, custom_headers: nil) ⇒ StringDictionary
Replaces the metadata of an app.
-
#update_metadata_async(resource_group_name, name, metadata, custom_headers: nil) ⇒ Concurrent::Promise
Replaces the metadata of an app.
-
#update_metadata_slot(resource_group_name, name, metadata, slot, custom_headers: nil) ⇒ StringDictionary
Replaces the metadata of an app.
-
#update_metadata_slot_async(resource_group_name, name, metadata, slot, custom_headers: nil) ⇒ Concurrent::Promise
Replaces the metadata of an app.
-
#update_metadata_slot_with_http_info(resource_group_name, name, metadata, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Replaces the metadata of an app.
-
#update_metadata_with_http_info(resource_group_name, name, metadata, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Replaces the metadata of an app.
-
#update_relay_service_connection(resource_group_name, name, entity_name, connection_envelope, custom_headers: nil) ⇒ RelayServiceConnectionEntity
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
-
#update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
-
#update_relay_service_connection_slot(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers: nil) ⇒ RelayServiceConnectionEntity
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
-
#update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
-
#update_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
-
#update_relay_service_connection_with_http_info(resource_group_name, name, entity_name, connection_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
-
#update_site_push_settings(resource_group_name, name, push_settings, custom_headers: nil) ⇒ PushSettings
Updates the Push settings associated with web app.
-
#update_site_push_settings_async(resource_group_name, name, push_settings, custom_headers: nil) ⇒ Concurrent::Promise
Updates the Push settings associated with web app.
-
#update_site_push_settings_slot(resource_group_name, name, push_settings, slot, custom_headers: nil) ⇒ PushSettings
Updates the Push settings associated with web app.
-
#update_site_push_settings_slot_async(resource_group_name, name, push_settings, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates the Push settings associated with web app.
-
#update_site_push_settings_slot_with_http_info(resource_group_name, name, push_settings, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the Push settings associated with web app.
-
#update_site_push_settings_with_http_info(resource_group_name, name, push_settings, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the Push settings associated with web app.
-
#update_slot(resource_group_name, name, site_envelope, slot, skip_dns_registration: nil, skip_custom_domain_verification: nil, force_dns_registration: nil, ttl_in_seconds: nil, custom_headers: nil) ⇒ Site
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
-
#update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration: nil, skip_custom_domain_verification: nil, force_dns_registration: nil, ttl_in_seconds: nil, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
-
#update_slot_configuration_names(resource_group_name, name, slot_config_names, custom_headers: nil) ⇒ SlotConfigNamesResource
Updates the names of application settings and connection string that remain with the slot during swap operation.
-
#update_slot_configuration_names_async(resource_group_name, name, slot_config_names, custom_headers: nil) ⇒ Concurrent::Promise
Updates the names of application settings and connection string that remain with the slot during swap operation.
-
#update_slot_configuration_names_with_http_info(resource_group_name, name, slot_config_names, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the names of application settings and connection string that remain with the slot during swap operation.
-
#update_slot_with_http_info(resource_group_name, name, site_envelope, slot, skip_dns_registration: nil, skip_custom_domain_verification: nil, force_dns_registration: nil, ttl_in_seconds: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
-
#update_source_control(resource_group_name, name, site_source_control, custom_headers: nil) ⇒ SiteSourceControl
Updates the source control configuration of an app.
-
#update_source_control_async(resource_group_name, name, site_source_control, custom_headers: nil) ⇒ Concurrent::Promise
Updates the source control configuration of an app.
-
#update_source_control_slot(resource_group_name, name, site_source_control, slot, custom_headers: nil) ⇒ SiteSourceControl
Updates the source control configuration of an app.
-
#update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates the source control configuration of an app.
-
#update_source_control_slot_with_http_info(resource_group_name, name, site_source_control, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the source control configuration of an app.
-
#update_source_control_with_http_info(resource_group_name, name, site_source_control, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the source control configuration of an app.
-
#update_vnet_connection(resource_group_name, name, vnet_name, connection_envelope, custom_headers: nil) ⇒ VnetInfo
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
-
#update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
-
#update_vnet_connection_gateway(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers: nil) ⇒ VnetGateway
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
-
#update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
-
#update_vnet_connection_gateway_slot(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers: nil) ⇒ VnetGateway
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
-
#update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers: nil) ⇒ Concurrent::Promise
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
-
#update_vnet_connection_gateway_slot_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
-
#update_vnet_connection_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
-
#update_vnet_connection_slot(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers: nil) ⇒ VnetInfo
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
-
#update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers: nil) ⇒ Concurrent::Promise
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
-
#update_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
-
#update_vnet_connection_with_http_info(resource_group_name, name, vnet_name, connection_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
-
#update_with_http_info(resource_group_name, name, site_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
Constructor Details
#initialize(client) ⇒ WebApps
Creates and initializes a new instance of the WebApps class.
17 18 19 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.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-08-01/generated/azure_mgmt_web/web_apps.rb', line 22 def client @client end |
Instance Method Details
#add_premier_add_on(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers: nil) ⇒ PremierAddOn
Updates a named add-on of an app.
Updates a named add-on of an app.
resource belongs. premier add-on. will be added to the HTTP request.
11730 11731 11732 11733 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11730 def add_premier_add_on(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers:nil) response = add_premier_add_on_async(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers:custom_headers).value! response.body unless response.nil? end |
#add_premier_add_on_async(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers: nil) ⇒ Concurrent::Promise
Updates a named add-on of an app.
Updates a named add-on of an app.
resource belongs. premier add-on. to the HTTP request.
11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11771 def add_premier_add_on_async(resource_group_name, name, premier_add_on_name, premier_add_on, 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, 'premier_add_on_name is nil' if premier_add_on_name.nil? fail ArgumentError, 'premier_add_on is nil' if premier_add_on.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_08_01::Models::PremierAddOn.mapper() request_content = @client.serialize(request_mapper, premier_add_on) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}' 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,'premierAddOnName' => premier_add_on_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 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_08_01::Models::PremierAddOn.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 |
#add_premier_add_on_slot(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers: nil) ⇒ PremierAddOn
Updates a named add-on of an app.
Updates a named add-on of an app.
resource belongs. premier add-on. the API will update the named add-on for the production slot. will be added to the HTTP request.
26059 26060 26061 26062 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26059 def add_premier_add_on_slot(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers:nil) response = add_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#add_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates a named add-on of an app.
Updates a named add-on of an app.
resource belongs. premier add-on. the API will update the named add-on for the production slot. to the HTTP request.
26104 26105 26106 26107 26108 26109 26110 26111 26112 26113 26114 26115 26116 26117 26118 26119 26120 26121 26122 26123 26124 26125 26126 26127 26128 26129 26130 26131 26132 26133 26134 26135 26136 26137 26138 26139 26140 26141 26142 26143 26144 26145 26146 26147 26148 26149 26150 26151 26152 26153 26154 26155 26156 26157 26158 26159 26160 26161 26162 26163 26164 26165 26166 26167 26168 26169 26170 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26104 def add_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, premier_add_on, slot, 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, 'premier_add_on_name is nil' if premier_add_on_name.nil? fail ArgumentError, 'premier_add_on is nil' if premier_add_on.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::PremierAddOn.mapper() request_content = @client.serialize(request_mapper, premier_add_on) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}' 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,'premierAddOnName' => premier_add_on_name,'slot' => slot,'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 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_08_01::Models::PremierAddOn.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 |
#add_premier_add_on_slot_with_http_info(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates a named add-on of an app.
Updates a named add-on of an app.
resource belongs. premier add-on. the API will update the named add-on for the production slot. will be added to the HTTP request.
26082 26083 26084 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26082 def add_premier_add_on_slot_with_http_info(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers:nil) add_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers:custom_headers).value! end |
#add_premier_add_on_with_http_info(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates a named add-on of an app.
Updates a named add-on of an app.
resource belongs. premier add-on. will be added to the HTTP request.
11751 11752 11753 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11751 def add_premier_add_on_with_http_info(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers:nil) add_premier_add_on_async(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers:custom_headers).value! end |
#analyze_custom_hostname(resource_group_name, name, host_name: nil, custom_headers: nil) ⇒ CustomHostnameAnalysisResult
Analyze a custom hostname.
Analyze a custom hostname.
resource belongs. will be added to the HTTP request.
647 648 649 650 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 647 def analyze_custom_hostname(resource_group_name, name, host_name:nil, custom_headers:nil) response = analyze_custom_hostname_async(resource_group_name, name, host_name:host_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#analyze_custom_hostname_async(resource_group_name, name, host_name: nil, custom_headers: nil) ⇒ Concurrent::Promise
Analyze a custom hostname.
Analyze a custom hostname.
resource belongs. to the HTTP request.
684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 684 def analyze_custom_hostname_async(resource_group_name, name, host_name: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/sites/{name}/analyzeCustomHostname' 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: {'hostName' => host_name,'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_08_01::Models::CustomHostnameAnalysisResult.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 |
#analyze_custom_hostname_slot(resource_group_name, name, slot, host_name: nil, custom_headers: nil) ⇒ CustomHostnameAnalysisResult
Analyze a custom hostname.
Analyze a custom hostname.
resource belongs. to production slot. will be added to the HTTP request.
14672 14673 14674 14675 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14672 def analyze_custom_hostname_slot(resource_group_name, name, slot, host_name:nil, custom_headers:nil) response = analyze_custom_hostname_slot_async(resource_group_name, name, slot, host_name:host_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#analyze_custom_hostname_slot_async(resource_group_name, name, slot, host_name: nil, custom_headers: nil) ⇒ Concurrent::Promise
Analyze a custom hostname.
Analyze a custom hostname.
resource belongs. to production slot. to the HTTP request.
14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14713 def analyze_custom_hostname_slot_async(resource_group_name, name, slot, host_name: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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/analyzeCustomHostname' 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,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'hostName' => host_name,'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_08_01::Models::CustomHostnameAnalysisResult.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 |
#analyze_custom_hostname_slot_with_http_info(resource_group_name, name, slot, host_name: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Analyze a custom hostname.
Analyze a custom hostname.
resource belongs. to production slot. will be added to the HTTP request.
14693 14694 14695 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14693 def analyze_custom_hostname_slot_with_http_info(resource_group_name, name, slot, host_name:nil, custom_headers:nil) analyze_custom_hostname_slot_async(resource_group_name, name, slot, host_name:host_name, custom_headers:custom_headers).value! end |
#analyze_custom_hostname_with_http_info(resource_group_name, name, host_name: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Analyze a custom hostname.
Analyze a custom hostname.
resource belongs. will be added to the HTTP request.
666 667 668 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 666 def analyze_custom_hostname_with_http_info(resource_group_name, name, host_name:nil, custom_headers:nil) analyze_custom_hostname_async(resource_group_name, name, host_name:host_name, custom_headers:custom_headers).value! end |
#apply_slot_config_to_production(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ Object
Applies the configuration settings from the target slot onto the current slot.
Applies the configuration settings from the target slot onto the current slot.
resource belongs. slot name. See example. will be added to the HTTP request.
758 759 760 761 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 758 def apply_slot_config_to_production(resource_group_name, name, slot_swap_entity, custom_headers:nil) response = apply_slot_config_to_production_async(resource_group_name, name, slot_swap_entity, custom_headers:custom_headers).value! nil end |
#apply_slot_config_to_production_async(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ Concurrent::Promise
Applies the configuration settings from the target slot onto the current slot.
Applies the configuration settings from the target slot onto the current slot.
resource belongs. slot name. See example. to the HTTP request.
801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 801 def apply_slot_config_to_production_async(resource_group_name, name, slot_swap_entity, 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, 'slot_swap_entity is nil' if slot_swap_entity.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_08_01::Models::CsmSlotEntity.mapper() request_content = @client.serialize(request_mapper, slot_swap_entity) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/applySlotConfig' 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(: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 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 |
#apply_slot_config_to_production_with_http_info(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Applies the configuration settings from the target slot onto the current slot.
Applies the configuration settings from the target slot onto the current slot.
resource belongs. slot name. See example. will be added to the HTTP request.
780 781 782 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 780 def apply_slot_config_to_production_with_http_info(resource_group_name, name, slot_swap_entity, custom_headers:nil) apply_slot_config_to_production_async(resource_group_name, name, slot_swap_entity, custom_headers:custom_headers).value! end |
#apply_slot_configuration_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ Object
Applies the configuration settings from the target slot onto the current slot.
Applies the configuration settings from the target slot onto the current slot.
resource belongs. slot name. See example. production slot is used as the source slot. will be added to the HTTP request.
14790 14791 14792 14793 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14790 def apply_slot_configuration_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) response = apply_slot_configuration_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:custom_headers).value! nil end |
#apply_slot_configuration_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ Concurrent::Promise
Applies the configuration settings from the target slot onto the current slot.
Applies the configuration settings from the target slot onto the current slot.
resource belongs. slot name. See example. production slot is used as the source slot. to the HTTP request.
14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14837 def apply_slot_configuration_slot_async(resource_group_name, name, slot_swap_entity, slot, 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, 'slot_swap_entity is nil' if slot_swap_entity.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::CsmSlotEntity.mapper() request_content = @client.serialize(request_mapper, slot_swap_entity) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/applySlotConfig' 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,'slot' => slot,'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(: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 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 |
#apply_slot_configuration_slot_with_http_info(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Applies the configuration settings from the target slot onto the current slot.
Applies the configuration settings from the target slot onto the current slot.
resource belongs. slot name. See example. production slot is used as the source slot. will be added to the HTTP request.
14814 14815 14816 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14814 def apply_slot_configuration_slot_with_http_info(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) apply_slot_configuration_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:custom_headers).value! end |
#backup(resource_group_name, name, request, custom_headers: nil) ⇒ BackupItem
Creates a backup of an app.
Creates a backup of an app.
resource belongs. response from the POST action as input here. will be added to the HTTP request.
872 873 874 875 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 872 def backup(resource_group_name, name, request, custom_headers:nil) response = backup_async(resource_group_name, name, request, custom_headers:custom_headers).value! response.body unless response.nil? end |
#backup_async(resource_group_name, name, request, custom_headers: nil) ⇒ Concurrent::Promise
Creates a backup of an app.
Creates a backup of an app.
resource belongs. response from the POST action as input here. to the HTTP request.
911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 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 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 911 def backup_async(resource_group_name, name, request, 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, 'request is nil' if request.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_08_01::Models::BackupRequest.mapper() request_content = @client.serialize(request_mapper, request) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backup' 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(: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 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_08_01::Models::BackupItem.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 |
#backup_slot(resource_group_name, name, request, slot, custom_headers: nil) ⇒ BackupItem
Creates a backup of an app.
Creates a backup of an app.
resource belongs. response from the POST action as input here. the API will create a backup for the production slot. will be added to the HTTP request.
14911 14912 14913 14914 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14911 def backup_slot(resource_group_name, name, request, slot, custom_headers:nil) response = backup_slot_async(resource_group_name, name, request, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#backup_slot_async(resource_group_name, name, request, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a backup of an app.
Creates a backup of an app.
resource belongs. response from the POST action as input here. the API will create a backup for the production slot. to the HTTP request.
14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14954 def backup_slot_async(resource_group_name, name, request, slot, 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, 'request is nil' if request.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::BackupRequest.mapper() request_content = @client.serialize(request_mapper, request) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backup' 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,'slot' => slot,'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(: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 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_08_01::Models::BackupItem.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 |
#backup_slot_with_http_info(resource_group_name, name, request, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a backup of an app.
Creates a backup of an app.
resource belongs. response from the POST action as input here. the API will create a backup for the production slot. will be added to the HTTP request.
14933 14934 14935 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14933 def backup_slot_with_http_info(resource_group_name, name, request, slot, custom_headers:nil) backup_slot_async(resource_group_name, name, request, slot, custom_headers:custom_headers).value! end |
#backup_with_http_info(resource_group_name, name, request, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a backup of an app.
Creates a backup of an app.
resource belongs. response from the POST action as input here. will be added to the HTTP request.
892 893 894 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 892 def backup_with_http_info(resource_group_name, name, request, custom_headers:nil) backup_async(resource_group_name, name, request, custom_headers:custom_headers).value! end |
#begin_create_function(resource_group_name, name, function_name, function_envelope, custom_headers: nil) ⇒ FunctionEnvelope
Create function for web site, or a deployment slot.
Create function for web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
35265 35266 35267 35268 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35265 def begin_create_function(resource_group_name, name, function_name, function_envelope, custom_headers:nil) response = begin_create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Create function for web site, or a deployment slot.
Create function for web site, or a deployment slot.
resource belongs. to the HTTP request.
35304 35305 35306 35307 35308 35309 35310 35311 35312 35313 35314 35315 35316 35317 35318 35319 35320 35321 35322 35323 35324 35325 35326 35327 35328 35329 35330 35331 35332 35333 35334 35335 35336 35337 35338 35339 35340 35341 35342 35343 35344 35345 35346 35347 35348 35349 35350 35351 35352 35353 35354 35355 35356 35357 35358 35359 35360 35361 35362 35363 35364 35365 35366 35367 35368 35369 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35304 def begin_create_function_async(resource_group_name, name, function_name, function_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, 'function_name is nil' if function_name.nil? fail ArgumentError, 'function_envelope is nil' if function_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_08_01::Models::FunctionEnvelope.mapper() request_content = @client.serialize(request_mapper, function_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}' 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,'functionName' => function_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 == 201 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 == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::FunctionEnvelope.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_function_with_http_info(resource_group_name, name, function_name, function_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create function for web site, or a deployment slot.
Create function for web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
35285 35286 35287 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35285 def begin_create_function_with_http_info(resource_group_name, name, function_name, function_envelope, custom_headers:nil) begin_create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers:custom_headers).value! end |
#begin_create_instance_function_slot(resource_group_name, name, function_name, slot, function_envelope, custom_headers: nil) ⇒ FunctionEnvelope
Create function for web site, or a deployment slot.
Create function for web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
36523 36524 36525 36526 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36523 def begin_create_instance_function_slot(resource_group_name, name, function_name, slot, function_envelope, custom_headers:nil) response = begin_create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Create function for web site, or a deployment slot.
Create function for web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
36566 36567 36568 36569 36570 36571 36572 36573 36574 36575 36576 36577 36578 36579 36580 36581 36582 36583 36584 36585 36586 36587 36588 36589 36590 36591 36592 36593 36594 36595 36596 36597 36598 36599 36600 36601 36602 36603 36604 36605 36606 36607 36608 36609 36610 36611 36612 36613 36614 36615 36616 36617 36618 36619 36620 36621 36622 36623 36624 36625 36626 36627 36628 36629 36630 36631 36632 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36566 def begin_create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_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, 'function_name is nil' if function_name.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'function_envelope is nil' if function_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_08_01::Models::FunctionEnvelope.mapper() request_content = @client.serialize(request_mapper, function_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}' 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,'functionName' => function_name,'slot' => slot,'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 == 201 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 == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::FunctionEnvelope.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_instance_function_slot_with_http_info(resource_group_name, name, function_name, slot, function_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create function for web site, or a deployment slot.
Create function for web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
36545 36546 36547 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36545 def begin_create_instance_function_slot_with_http_info(resource_group_name, name, function_name, slot, function_envelope, custom_headers:nil) begin_create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers:custom_headers).value! end |
#begin_create_instance_msdeploy_operation(resource_group_name, name, instance_id, msdeploy, custom_headers: nil) ⇒ MSDeployStatus
Invoke the MSDeploy web app extension.
Invoke the MSDeploy web app extension.
resource belongs. will be added to the HTTP request.
35386 35387 35388 35389 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35386 def begin_create_instance_msdeploy_operation(resource_group_name, name, instance_id, msdeploy, custom_headers:nil) response = begin_create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers: nil) ⇒ Concurrent::Promise
Invoke the MSDeploy web app extension.
Invoke the MSDeploy web app extension.
resource belongs. to the HTTP request.
35425 35426 35427 35428 35429 35430 35431 35432 35433 35434 35435 35436 35437 35438 35439 35440 35441 35442 35443 35444 35445 35446 35447 35448 35449 35450 35451 35452 35453 35454 35455 35456 35457 35458 35459 35460 35461 35462 35463 35464 35465 35466 35467 35468 35469 35470 35471 35472 35473 35474 35475 35476 35477 35478 35479 35480 35481 35482 35483 35484 35485 35486 35487 35488 35489 35490 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35425 def begin_create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, 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_id is nil' if instance_id.nil? fail ArgumentError, 'msdeploy is nil' if msdeploy.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_08_01::Models::MSDeploy.mapper() request_content = @client.serialize(request_mapper, msdeploy) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/extensions/MSDeploy' 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,'instanceId' => instance_id,'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 == 201 || 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 == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::MSDeployStatus.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_instance_msdeploy_operation_slot(resource_group_name, name, slot, instance_id, msdeploy, custom_headers: nil) ⇒ MSDeployStatus
Invoke the MSDeploy web app extension.
Invoke the MSDeploy web app extension.
resource belongs. to production slot. will be added to the HTTP request.
36651 36652 36653 36654 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36651 def begin_create_instance_msdeploy_operation_slot(resource_group_name, name, slot, instance_id, msdeploy, custom_headers:nil) response = begin_create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers: nil) ⇒ Concurrent::Promise
Invoke the MSDeploy web app extension.
Invoke the MSDeploy web app extension.
resource belongs. to production slot. to the HTTP request.
36694 36695 36696 36697 36698 36699 36700 36701 36702 36703 36704 36705 36706 36707 36708 36709 36710 36711 36712 36713 36714 36715 36716 36717 36718 36719 36720 36721 36722 36723 36724 36725 36726 36727 36728 36729 36730 36731 36732 36733 36734 36735 36736 36737 36738 36739 36740 36741 36742 36743 36744 36745 36746 36747 36748 36749 36750 36751 36752 36753 36754 36755 36756 36757 36758 36759 36760 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36694 def begin_create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, 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, 'slot is nil' if slot.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, 'msdeploy is nil' if msdeploy.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_08_01::Models::MSDeploy.mapper() request_content = @client.serialize(request_mapper, msdeploy) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/extensions/MSDeploy' 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,'slot' => slot,'instanceId' => instance_id,'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 == 201 || 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 == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::MSDeployStatus.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_instance_msdeploy_operation_slot_with_http_info(resource_group_name, name, slot, instance_id, msdeploy, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Invoke the MSDeploy web app extension.
Invoke the MSDeploy web app extension.
resource belongs. to production slot. will be added to the HTTP request.
36673 36674 36675 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36673 def begin_create_instance_msdeploy_operation_slot_with_http_info(resource_group_name, name, slot, instance_id, msdeploy, custom_headers:nil) begin_create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers:custom_headers).value! end |
#begin_create_instance_msdeploy_operation_with_http_info(resource_group_name, name, instance_id, msdeploy, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Invoke the MSDeploy web app extension.
Invoke the MSDeploy web app extension.
resource belongs. will be added to the HTTP request.
35406 35407 35408 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35406 def begin_create_instance_msdeploy_operation_with_http_info(resource_group_name, name, instance_id, msdeploy, custom_headers:nil) begin_create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers:custom_headers).value! end |
#begin_create_msdeploy_operation(resource_group_name, name, msdeploy, custom_headers: nil) ⇒ MSDeployStatus
Invoke the MSDeploy web app extension.
Invoke the MSDeploy web app extension.
resource belongs. will be added to the HTTP request.
35147 35148 35149 35150 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35147 def begin_create_msdeploy_operation(resource_group_name, name, msdeploy, custom_headers:nil) response = begin_create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers: nil) ⇒ Concurrent::Promise
Invoke the MSDeploy web app extension.
Invoke the MSDeploy web app extension.
resource belongs. to the HTTP request.
35184 35185 35186 35187 35188 35189 35190 35191 35192 35193 35194 35195 35196 35197 35198 35199 35200 35201 35202 35203 35204 35205 35206 35207 35208 35209 35210 35211 35212 35213 35214 35215 35216 35217 35218 35219 35220 35221 35222 35223 35224 35225 35226 35227 35228 35229 35230 35231 35232 35233 35234 35235 35236 35237 35238 35239 35240 35241 35242 35243 35244 35245 35246 35247 35248 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35184 def begin_create_msdeploy_operation_async(resource_group_name, name, msdeploy, 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, 'msdeploy is nil' if msdeploy.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_08_01::Models::MSDeploy.mapper() request_content = @client.serialize(request_mapper, msdeploy) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/MSDeploy' 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 == 201 || 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 == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::MSDeployStatus.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_msdeploy_operation_slot(resource_group_name, name, slot, msdeploy, custom_headers: nil) ⇒ MSDeployStatus
Invoke the MSDeploy web app extension.
Invoke the MSDeploy web app extension.
resource belongs. to production slot. will be added to the HTTP request.
36398 36399 36400 36401 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36398 def begin_create_msdeploy_operation_slot(resource_group_name, name, slot, msdeploy, custom_headers:nil) response = begin_create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers: nil) ⇒ Concurrent::Promise
Invoke the MSDeploy web app extension.
Invoke the MSDeploy web app extension.
resource belongs. to production slot. to the HTTP request.
36439 36440 36441 36442 36443 36444 36445 36446 36447 36448 36449 36450 36451 36452 36453 36454 36455 36456 36457 36458 36459 36460 36461 36462 36463 36464 36465 36466 36467 36468 36469 36470 36471 36472 36473 36474 36475 36476 36477 36478 36479 36480 36481 36482 36483 36484 36485 36486 36487 36488 36489 36490 36491 36492 36493 36494 36495 36496 36497 36498 36499 36500 36501 36502 36503 36504 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36439 def begin_create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, 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, 'slot is nil' if slot.nil? fail ArgumentError, 'msdeploy is nil' if msdeploy.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_08_01::Models::MSDeploy.mapper() request_content = @client.serialize(request_mapper, msdeploy) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/extensions/MSDeploy' 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,'slot' => slot,'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 == 201 || 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 == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::MSDeployStatus.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_msdeploy_operation_slot_with_http_info(resource_group_name, name, slot, msdeploy, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Invoke the MSDeploy web app extension.
Invoke the MSDeploy web app extension.
resource belongs. to production slot. will be added to the HTTP request.
36419 36420 36421 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36419 def begin_create_msdeploy_operation_slot_with_http_info(resource_group_name, name, slot, msdeploy, custom_headers:nil) begin_create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers:custom_headers).value! end |
#begin_create_msdeploy_operation_with_http_info(resource_group_name, name, msdeploy, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Invoke the MSDeploy web app extension.
Invoke the MSDeploy web app extension.
resource belongs. will be added to the HTTP request.
35166 35167 35168 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35166 def begin_create_msdeploy_operation_with_http_info(resource_group_name, name, msdeploy, custom_headers:nil) begin_create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers:custom_headers).value! end |
#begin_create_or_update(resource_group_name, name, site_envelope, custom_headers: nil) ⇒ Site
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
resource belongs. update a deployment slot, use the slot parameter. example. will be added to the HTTP request.
34785 34786 34787 34788 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34785 def begin_create_or_update(resource_group_name, name, site_envelope, custom_headers:nil) response = begin_create_or_update_async(resource_group_name, name, site_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_create_or_update_async(resource_group_name, name, site_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
resource belongs. update a deployment slot, use the slot parameter. example. to the HTTP request.
34830 34831 34832 34833 34834 34835 34836 34837 34838 34839 34840 34841 34842 34843 34844 34845 34846 34847 34848 34849 34850 34851 34852 34853 34854 34855 34856 34857 34858 34859 34860 34861 34862 34863 34864 34865 34866 34867 34868 34869 34870 34871 34872 34873 34874 34875 34876 34877 34878 34879 34880 34881 34882 34883 34884 34885 34886 34887 34888 34889 34890 34891 34892 34893 34894 34895 34896 34897 34898 34899 34900 34901 34902 34903 34904 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34830 def begin_create_or_update_async(resource_group_name, name, site_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, 'site_envelope is nil' if site_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_08_01::Models::Site.mapper() request_content = @client.serialize(request_mapper, site_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{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 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_08_01::Models::Site.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_08_01::Models::Site.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_slot(resource_group_name, name, site_envelope, slot, skip_dns_registration: nil, skip_custom_domain_verification: nil, force_dns_registration: nil, ttl_in_seconds: nil, custom_headers: nil) ⇒ Site
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
resource belongs. update a deployment slot, use the slot parameter. example. default, this API attempts to create or modify the production slot. registered with DNS on creation. This parameter is only used for app creation. *.azurewebsites.net) domains associated with web app are not verified. registered with DNS. domain name. will be added to the HTTP request.
35997 35998 35999 36000 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35997 def begin_create_or_update_slot(resource_group_name, name, site_envelope, slot, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds:nil, custom_headers:nil) response = begin_create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration:skip_dns_registration, skip_custom_domain_verification:skip_custom_domain_verification, force_dns_registration:force_dns_registration, ttl_in_seconds:ttl_in_seconds, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration: nil, skip_custom_domain_verification: nil, force_dns_registration: nil, ttl_in_seconds: nil, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
resource belongs. update a deployment slot, use the slot parameter. example. default, this API attempts to create or modify the production slot. registered with DNS on creation. This parameter is only used for app creation. *.azurewebsites.net) domains associated with web app are not verified. registered with DNS. domain name. to the HTTP request.
36064 36065 36066 36067 36068 36069 36070 36071 36072 36073 36074 36075 36076 36077 36078 36079 36080 36081 36082 36083 36084 36085 36086 36087 36088 36089 36090 36091 36092 36093 36094 36095 36096 36097 36098 36099 36100 36101 36102 36103 36104 36105 36106 36107 36108 36109 36110 36111 36112 36113 36114 36115 36116 36117 36118 36119 36120 36121 36122 36123 36124 36125 36126 36127 36128 36129 36130 36131 36132 36133 36134 36135 36136 36137 36138 36139 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36064 def begin_create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds: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, 'site_envelope is nil' if site_envelope.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::Site.mapper() request_content = @client.serialize(request_mapper, site_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}' 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,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'skipDnsRegistration' => skip_dns_registration,'skipCustomDomainVerification' => skip_custom_domain_verification,'forceDnsRegistration' => force_dns_registration,'ttlInSeconds' => ttl_in_seconds,'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 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_08_01::Models::Site.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_08_01::Models::Site.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_slot_with_http_info(resource_group_name, name, site_envelope, slot, skip_dns_registration: nil, skip_custom_domain_verification: nil, force_dns_registration: nil, ttl_in_seconds: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
resource belongs. update a deployment slot, use the slot parameter. example. default, this API attempts to create or modify the production slot. registered with DNS on creation. This parameter is only used for app creation. *.azurewebsites.net) domains associated with web app are not verified. registered with DNS. domain name. will be added to the HTTP request.
36031 36032 36033 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36031 def begin_create_or_update_slot_with_http_info(resource_group_name, name, site_envelope, slot, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds:nil, custom_headers:nil) begin_create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration:skip_dns_registration, skip_custom_domain_verification:skip_custom_domain_verification, force_dns_registration:force_dns_registration, ttl_in_seconds:ttl_in_seconds, custom_headers:custom_headers).value! end |
#begin_create_or_update_source_control(resource_group_name, name, site_source_control, custom_headers: nil) ⇒ SiteSourceControl
Updates the source control configuration of an app.
Updates the source control configuration of an app.
resource belongs. SiteSourceControl object. See example. will be added to the HTTP request.
37395 37396 37397 37398 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37395 def begin_create_or_update_source_control(resource_group_name, name, site_source_control, custom_headers:nil) response = begin_create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers: nil) ⇒ Concurrent::Promise
Updates the source control configuration of an app.
Updates the source control configuration of an app.
resource belongs. SiteSourceControl object. See example. to the HTTP request.
37434 37435 37436 37437 37438 37439 37440 37441 37442 37443 37444 37445 37446 37447 37448 37449 37450 37451 37452 37453 37454 37455 37456 37457 37458 37459 37460 37461 37462 37463 37464 37465 37466 37467 37468 37469 37470 37471 37472 37473 37474 37475 37476 37477 37478 37479 37480 37481 37482 37483 37484 37485 37486 37487 37488 37489 37490 37491 37492 37493 37494 37495 37496 37497 37498 37499 37500 37501 37502 37503 37504 37505 37506 37507 37508 37509 37510 37511 37512 37513 37514 37515 37516 37517 37518 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37434 def begin_create_or_update_source_control_async(resource_group_name, name, site_source_control, 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, 'site_source_control is nil' if site_source_control.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_08_01::Models::SiteSourceControl.mapper() request_content = @client.serialize(request_mapper, site_source_control) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web' 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 == 201 || 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_08_01::Models::SiteSourceControl.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 == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.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_08_01::Models::SiteSourceControl.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_source_control_slot(resource_group_name, name, site_source_control, slot, custom_headers: nil) ⇒ SiteSourceControl
Updates the source control configuration of an app.
Updates the source control configuration of an app.
resource belongs. SiteSourceControl object. See example. the API will update the source control configuration for the production slot. will be added to the HTTP request.
37141 37142 37143 37144 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37141 def begin_create_or_update_source_control_slot(resource_group_name, name, site_source_control, slot, custom_headers:nil) response = begin_create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates the source control configuration of an app.
Updates the source control configuration of an app.
resource belongs. SiteSourceControl object. See example. the API will update the source control configuration for the production slot. to the HTTP request.
37184 37185 37186 37187 37188 37189 37190 37191 37192 37193 37194 37195 37196 37197 37198 37199 37200 37201 37202 37203 37204 37205 37206 37207 37208 37209 37210 37211 37212 37213 37214 37215 37216 37217 37218 37219 37220 37221 37222 37223 37224 37225 37226 37227 37228 37229 37230 37231 37232 37233 37234 37235 37236 37237 37238 37239 37240 37241 37242 37243 37244 37245 37246 37247 37248 37249 37250 37251 37252 37253 37254 37255 37256 37257 37258 37259 37260 37261 37262 37263 37264 37265 37266 37267 37268 37269 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37184 def begin_create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, 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, 'site_source_control is nil' if site_source_control.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::SiteSourceControl.mapper() request_content = @client.serialize(request_mapper, site_source_control) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sourcecontrols/web' 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,'slot' => slot,'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 == 201 || 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_08_01::Models::SiteSourceControl.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 == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.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_08_01::Models::SiteSourceControl.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_source_control_slot_with_http_info(resource_group_name, name, site_source_control, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the source control configuration of an app.
Updates the source control configuration of an app.
resource belongs. SiteSourceControl object. See example. the API will update the source control configuration for the production slot. will be added to the HTTP request.
37163 37164 37165 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37163 def begin_create_or_update_source_control_slot_with_http_info(resource_group_name, name, site_source_control, slot, custom_headers:nil) begin_create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers:custom_headers).value! end |
#begin_create_or_update_source_control_with_http_info(resource_group_name, name, site_source_control, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the source control configuration of an app.
Updates the source control configuration of an app.
resource belongs. SiteSourceControl object. See example. will be added to the HTTP request.
37415 37416 37417 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37415 def begin_create_or_update_source_control_with_http_info(resource_group_name, name, site_source_control, custom_headers:nil) begin_create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers:custom_headers).value! end |
#begin_create_or_update_with_http_info(resource_group_name, name, site_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
resource belongs. update a deployment slot, use the slot parameter. example. will be added to the HTTP request.
34808 34809 34810 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34808 def begin_create_or_update_with_http_info(resource_group_name, name, site_envelope, custom_headers:nil) begin_create_or_update_async(resource_group_name, name, site_envelope, custom_headers:custom_headers).value! end |
#begin_install_site_extension(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ SiteExtensionInfo
Install site extension on a web site, or a deployment slot.
Install site extension on a web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
35862 35863 35864 35865 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35862 def begin_install_site_extension(resource_group_name, name, site_extension_id, custom_headers:nil) response = begin_install_site_extension_async(resource_group_name, name, site_extension_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_install_site_extension_async(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ Concurrent::Promise
Install site extension on a web site, or a deployment slot.
Install site extension on a web site, or a deployment slot.
resource belongs. to the HTTP request.
35899 35900 35901 35902 35903 35904 35905 35906 35907 35908 35909 35910 35911 35912 35913 35914 35915 35916 35917 35918 35919 35920 35921 35922 35923 35924 35925 35926 35927 35928 35929 35930 35931 35932 35933 35934 35935 35936 35937 35938 35939 35940 35941 35942 35943 35944 35945 35946 35947 35948 35949 35950 35951 35952 35953 35954 35955 35956 35957 35958 35959 35960 35961 35962 35963 35964 35965 35966 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35899 def begin_install_site_extension_async(resource_group_name, name, site_extension_id, 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, 'site_extension_id is nil' if site_extension_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/siteextensions/{siteExtensionId}' 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,'siteExtensionId' => site_extension_id,'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(: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 == 201 || status_code == 200 || status_code == 429 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 == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteExtensionInfo.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 == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteExtensionInfo.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_install_site_extension_slot(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ SiteExtensionInfo
Install site extension on a web site, or a deployment slot.
Install site extension on a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
36897 36898 36899 36900 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36897 def begin_install_site_extension_slot(resource_group_name, name, site_extension_id, slot, custom_headers:nil) response = begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Install site extension on a web site, or a deployment slot.
Install site extension on a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
36938 36939 36940 36941 36942 36943 36944 36945 36946 36947 36948 36949 36950 36951 36952 36953 36954 36955 36956 36957 36958 36959 36960 36961 36962 36963 36964 36965 36966 36967 36968 36969 36970 36971 36972 36973 36974 36975 36976 36977 36978 36979 36980 36981 36982 36983 36984 36985 36986 36987 36988 36989 36990 36991 36992 36993 36994 36995 36996 36997 36998 36999 37000 37001 37002 37003 37004 37005 37006 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36938 def begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, 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, 'site_extension_id is nil' if site_extension_id.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/siteextensions/{siteExtensionId}' 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,'siteExtensionId' => site_extension_id,'slot' => slot,'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(: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 == 201 || status_code == 200 || status_code == 429 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 == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteExtensionInfo.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 == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteExtensionInfo.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_install_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Install site extension on a web site, or a deployment slot.
Install site extension on a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
36918 36919 36920 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36918 def begin_install_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, custom_headers:nil) begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers:custom_headers).value! end |
#begin_install_site_extension_with_http_info(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Install site extension on a web site, or a deployment slot.
Install site extension on a web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
35881 35882 35883 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35881 def begin_install_site_extension_with_http_info(resource_group_name, name, site_extension_id, custom_headers:nil) begin_install_site_extension_async(resource_group_name, name, site_extension_id, custom_headers:custom_headers).value! end |
#begin_list_publishing_credentials(resource_group_name, name, custom_headers: nil) ⇒ User
Gets the Git/FTP publishing credentials of an app.
Gets the Git/FTP publishing credentials of an app.
resource belongs. will be added to the HTTP request.
35040 35041 35042 35043 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35040 def begin_list_publishing_credentials(resource_group_name, name, custom_headers:nil) response = begin_list_publishing_credentials_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_list_publishing_credentials_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the Git/FTP publishing credentials of an app.
Gets the Git/FTP publishing credentials of an app.
resource belongs. to the HTTP request.
35075 35076 35077 35078 35079 35080 35081 35082 35083 35084 35085 35086 35087 35088 35089 35090 35091 35092 35093 35094 35095 35096 35097 35098 35099 35100 35101 35102 35103 35104 35105 35106 35107 35108 35109 35110 35111 35112 35113 35114 35115 35116 35117 35118 35119 35120 35121 35122 35123 35124 35125 35126 35127 35128 35129 35130 35131 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35075 def begin_list_publishing_credentials_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/sites/{name}/config/publishingcredentials/list' 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 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_08_01::Models::User.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_list_publishing_credentials_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ User
Gets the Git/FTP publishing credentials of an app.
Gets the Git/FTP publishing credentials of an app.
resource belongs. the API will get the publishing credentials for the production slot. will be added to the HTTP request.
36284 36285 36286 36287 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36284 def begin_list_publishing_credentials_slot(resource_group_name, name, slot, custom_headers:nil) response = begin_list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the Git/FTP publishing credentials of an app.
Gets the Git/FTP publishing credentials of an app.
resource belongs. the API will get the publishing credentials for the production slot. to the HTTP request.
36323 36324 36325 36326 36327 36328 36329 36330 36331 36332 36333 36334 36335 36336 36337 36338 36339 36340 36341 36342 36343 36344 36345 36346 36347 36348 36349 36350 36351 36352 36353 36354 36355 36356 36357 36358 36359 36360 36361 36362 36363 36364 36365 36366 36367 36368 36369 36370 36371 36372 36373 36374 36375 36376 36377 36378 36379 36380 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36323 def begin_list_publishing_credentials_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/config/publishingcredentials/list' 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,'slot' => slot,'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 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_08_01::Models::User.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_list_publishing_credentials_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the Git/FTP publishing credentials of an app.
Gets the Git/FTP publishing credentials of an app.
resource belongs. the API will get the publishing credentials for the production slot. will be added to the HTTP request.
36304 36305 36306 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36304 def begin_list_publishing_credentials_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) begin_list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#begin_list_publishing_credentials_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the Git/FTP publishing credentials of an app.
Gets the Git/FTP publishing credentials of an app.
resource belongs. will be added to the HTTP request.
35058 35059 35060 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35058 def begin_list_publishing_credentials_with_http_info(resource_group_name, name, custom_headers:nil) begin_list_publishing_credentials_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#begin_migrate_my_sql(resource_group_name, name, migration_request_envelope, custom_headers: nil) ⇒ Operation
Migrates a local (in-app) MySql database to a remote MySql database.
Migrates a local (in-app) MySql database to a remote MySql database.
resource belongs. options. will be added to the HTTP request.
35631 35632 35633 35634 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35631 def begin_migrate_my_sql(resource_group_name, name, migration_request_envelope, custom_headers:nil) response = begin_migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Migrates a local (in-app) MySql database to a remote MySql database.
Migrates a local (in-app) MySql database to a remote MySql database.
resource belongs. options. to the HTTP request.
35670 35671 35672 35673 35674 35675 35676 35677 35678 35679 35680 35681 35682 35683 35684 35685 35686 35687 35688 35689 35690 35691 35692 35693 35694 35695 35696 35697 35698 35699 35700 35701 35702 35703 35704 35705 35706 35707 35708 35709 35710 35711 35712 35713 35714 35715 35716 35717 35718 35719 35720 35721 35722 35723 35724 35725 35726 35727 35728 35729 35730 35731 35732 35733 35734 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35670 def begin_migrate_my_sql_async(resource_group_name, name, migration_request_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, 'migration_request_envelope is nil' if migration_request_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_08_01::Models::MigrateMySqlRequest.mapper() request_content = @client.serialize(request_mapper, migration_request_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migratemysql' 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(: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 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_08_01::Models::Operation.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_migrate_my_sql_with_http_info(resource_group_name, name, migration_request_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Migrates a local (in-app) MySql database to a remote MySql database.
Migrates a local (in-app) MySql database to a remote MySql database.
resource belongs. options. will be added to the HTTP request.
35651 35652 35653 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35651 def begin_migrate_my_sql_with_http_info(resource_group_name, name, migration_request_envelope, custom_headers:nil) begin_migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers:custom_headers).value! end |
#begin_migrate_storage(subscription_name, resource_group_name, name, migration_options, custom_headers: nil) ⇒ StorageMigrationResponse
Restores a web app.
Restores a web app.
resource belongs. migrationOptions. will be added to the HTTP request.
35508 35509 35510 35511 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35508 def begin_migrate_storage(subscription_name, resource_group_name, name, , custom_headers:nil) response = begin_migrate_storage_async(subscription_name, resource_group_name, name, , custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_migrate_storage_async(subscription_name, resource_group_name, name, migration_options, custom_headers: nil) ⇒ Concurrent::Promise
Restores a web app.
Restores a web app.
resource belongs. migrationOptions. to the HTTP request.
35549 35550 35551 35552 35553 35554 35555 35556 35557 35558 35559 35560 35561 35562 35563 35564 35565 35566 35567 35568 35569 35570 35571 35572 35573 35574 35575 35576 35577 35578 35579 35580 35581 35582 35583 35584 35585 35586 35587 35588 35589 35590 35591 35592 35593 35594 35595 35596 35597 35598 35599 35600 35601 35602 35603 35604 35605 35606 35607 35608 35609 35610 35611 35612 35613 35614 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35549 def begin_migrate_storage_async(subscription_name, resource_group_name, name, , custom_headers:nil) fail ArgumentError, 'subscription_name is nil' if subscription_name.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, 'migration_options is nil' if .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_08_01::Models::StorageMigrationOptions.mapper() request_content = @client.serialize(request_mapper, ) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migrate' 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: {'subscriptionName' => subscription_name,'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 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_08_01::Models::StorageMigrationResponse.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_migrate_storage_with_http_info(subscription_name, resource_group_name, name, migration_options, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Restores a web app.
Restores a web app.
resource belongs. migrationOptions. will be added to the HTTP request.
35529 35530 35531 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35529 def begin_migrate_storage_with_http_info(subscription_name, resource_group_name, name, , custom_headers:nil) begin_migrate_storage_async(subscription_name, resource_group_name, name, , custom_headers:custom_headers).value! end |
#begin_recover(resource_group_name, name, recovery_entity, custom_headers: nil) ⇒ Object
Recovers a web app to a previous snapshot.
Recovers a web app to a previous snapshot.
resource belongs. app recovery. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. will be added to the HTTP request.
35751 35752 35753 35754 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35751 def begin_recover(resource_group_name, name, recovery_entity, custom_headers:nil) response = begin_recover_async(resource_group_name, name, recovery_entity, custom_headers:custom_headers).value! nil end |
#begin_recover_async(resource_group_name, name, recovery_entity, custom_headers: nil) ⇒ Concurrent::Promise
Recovers a web app to a previous snapshot.
Recovers a web app to a previous snapshot.
resource belongs. app recovery. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. to the HTTP request.
35792 35793 35794 35795 35796 35797 35798 35799 35800 35801 35802 35803 35804 35805 35806 35807 35808 35809 35810 35811 35812 35813 35814 35815 35816 35817 35818 35819 35820 35821 35822 35823 35824 35825 35826 35827 35828 35829 35830 35831 35832 35833 35834 35835 35836 35837 35838 35839 35840 35841 35842 35843 35844 35845 35846 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35792 def begin_recover_async(resource_group_name, name, recovery_entity, 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, 'recovery_entity is nil' if recovery_entity.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_08_01::Models::SnapshotRecoveryRequest.mapper() request_content = @client.serialize(request_mapper, recovery_entity) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/recover' 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(: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 == 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? result end promise.execute end |
#begin_recover_slot(resource_group_name, name, recovery_entity, slot, custom_headers: nil) ⇒ Object
Recovers a web app to a previous snapshot.
Recovers a web app to a previous snapshot.
resource belongs. app recovery. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. to production slot. will be added to the HTTP request.
36779 36780 36781 36782 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36779 def begin_recover_slot(resource_group_name, name, recovery_entity, slot, custom_headers:nil) response = begin_recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers:custom_headers).value! nil end |
#begin_recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers: nil) ⇒ Concurrent::Promise
Recovers a web app to a previous snapshot.
Recovers a web app to a previous snapshot.
resource belongs. app recovery. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. to production slot. to the HTTP request.
36824 36825 36826 36827 36828 36829 36830 36831 36832 36833 36834 36835 36836 36837 36838 36839 36840 36841 36842 36843 36844 36845 36846 36847 36848 36849 36850 36851 36852 36853 36854 36855 36856 36857 36858 36859 36860 36861 36862 36863 36864 36865 36866 36867 36868 36869 36870 36871 36872 36873 36874 36875 36876 36877 36878 36879 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36824 def begin_recover_slot_async(resource_group_name, name, recovery_entity, slot, 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, 'recovery_entity is nil' if recovery_entity.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::SnapshotRecoveryRequest.mapper() request_content = @client.serialize(request_mapper, recovery_entity) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/recover' 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,'slot' => slot,'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(: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 == 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? result end promise.execute end |
#begin_recover_slot_with_http_info(resource_group_name, name, recovery_entity, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Recovers a web app to a previous snapshot.
Recovers a web app to a previous snapshot.
resource belongs. app recovery. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. to production slot. will be added to the HTTP request.
36802 36803 36804 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36802 def begin_recover_slot_with_http_info(resource_group_name, name, recovery_entity, slot, custom_headers:nil) begin_recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers:custom_headers).value! end |
#begin_recover_with_http_info(resource_group_name, name, recovery_entity, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Recovers a web app to a previous snapshot.
Recovers a web app to a previous snapshot.
resource belongs. app recovery. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. will be added to the HTTP request.
35772 35773 35774 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 35772 def begin_recover_with_http_info(resource_group_name, name, recovery_entity, custom_headers:nil) begin_recover_async(resource_group_name, name, recovery_entity, custom_headers:custom_headers).value! end |
#begin_restore(resource_group_name, name, backup_id, request, custom_headers: nil) ⇒ RestoreResponse
Restores a specific backup to another app (or deployment slot, if specified).
Restores a specific backup to another app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
34921 34922 34923 34924 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34921 def begin_restore(resource_group_name, name, backup_id, request, custom_headers:nil) response = begin_restore_async(resource_group_name, name, backup_id, request, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_restore_async(resource_group_name, name, backup_id, request, custom_headers: nil) ⇒ Concurrent::Promise
Restores a specific backup to another app (or deployment slot, if specified).
Restores a specific backup to another app (or deployment slot, if specified).
resource belongs. to the HTTP request.
34960 34961 34962 34963 34964 34965 34966 34967 34968 34969 34970 34971 34972 34973 34974 34975 34976 34977 34978 34979 34980 34981 34982 34983 34984 34985 34986 34987 34988 34989 34990 34991 34992 34993 34994 34995 34996 34997 34998 34999 35000 35001 35002 35003 35004 35005 35006 35007 35008 35009 35010 35011 35012 35013 35014 35015 35016 35017 35018 35019 35020 35021 35022 35023 35024 35025 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34960 def begin_restore_async(resource_group_name, name, backup_id, request, 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, 'backup_id is nil' if backup_id.nil? fail ArgumentError, 'request is nil' if request.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_08_01::Models::RestoreRequest.mapper() request_content = @client.serialize(request_mapper, request) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups/{backupId}/restore' 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,'backupId' => backup_id,'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(: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 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_08_01::Models::RestoreResponse.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_restore_slot(resource_group_name, name, backup_id, request, slot, custom_headers: nil) ⇒ RestoreResponse
Restores a specific backup to another app (or deployment slot, if specified).
Restores a specific backup to another app (or deployment slot, if specified).
resource belongs. the API will restore a backup of the production slot. will be added to the HTTP request.
36158 36159 36160 36161 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36158 def begin_restore_slot(resource_group_name, name, backup_id, request, slot, custom_headers:nil) response = begin_restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers: nil) ⇒ Concurrent::Promise
Restores a specific backup to another app (or deployment slot, if specified).
Restores a specific backup to another app (or deployment slot, if specified).
resource belongs. the API will restore a backup of the production slot. to the HTTP request.
36201 36202 36203 36204 36205 36206 36207 36208 36209 36210 36211 36212 36213 36214 36215 36216 36217 36218 36219 36220 36221 36222 36223 36224 36225 36226 36227 36228 36229 36230 36231 36232 36233 36234 36235 36236 36237 36238 36239 36240 36241 36242 36243 36244 36245 36246 36247 36248 36249 36250 36251 36252 36253 36254 36255 36256 36257 36258 36259 36260 36261 36262 36263 36264 36265 36266 36267 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36201 def begin_restore_slot_async(resource_group_name, name, backup_id, request, slot, 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, 'backup_id is nil' if backup_id.nil? fail ArgumentError, 'request is nil' if request.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::RestoreRequest.mapper() request_content = @client.serialize(request_mapper, request) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}/restore' 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,'backupId' => backup_id,'slot' => slot,'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(: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 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_08_01::Models::RestoreResponse.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_restore_slot_with_http_info(resource_group_name, name, backup_id, request, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Restores a specific backup to another app (or deployment slot, if specified).
Restores a specific backup to another app (or deployment slot, if specified).
resource belongs. the API will restore a backup of the production slot. will be added to the HTTP request.
36180 36181 36182 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 36180 def begin_restore_slot_with_http_info(resource_group_name, name, backup_id, request, slot, custom_headers:nil) begin_restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers:custom_headers).value! end |
#begin_restore_with_http_info(resource_group_name, name, backup_id, request, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Restores a specific backup to another app (or deployment slot, if specified).
Restores a specific backup to another app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
34941 34942 34943 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34941 def begin_restore_with_http_info(resource_group_name, name, backup_id, request, custom_headers:nil) begin_restore_async(resource_group_name, name, backup_id, request, custom_headers:custom_headers).value! end |
#begin_swap_slot_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ Object
Swaps two deployment slots of an app.
Swaps two deployment slots of an app.
resource belongs. slot name. See example. production slot is used as the source slot. will be added to the HTTP request.
37024 37025 37026 37027 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37024 def begin_swap_slot_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) response = begin_swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:custom_headers).value! nil end |
#begin_swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ Concurrent::Promise
Swaps two deployment slots of an app.
Swaps two deployment slots of an app.
resource belongs. slot name. See example. production slot is used as the source slot. to the HTTP request.
37067 37068 37069 37070 37071 37072 37073 37074 37075 37076 37077 37078 37079 37080 37081 37082 37083 37084 37085 37086 37087 37088 37089 37090 37091 37092 37093 37094 37095 37096 37097 37098 37099 37100 37101 37102 37103 37104 37105 37106 37107 37108 37109 37110 37111 37112 37113 37114 37115 37116 37117 37118 37119 37120 37121 37122 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37067 def begin_swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, 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, 'slot_swap_entity is nil' if slot_swap_entity.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::CsmSlotEntity.mapper() request_content = @client.serialize(request_mapper, slot_swap_entity) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/slotsswap' 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,'slot' => slot,'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(: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? result end promise.execute end |
#begin_swap_slot_slot_with_http_info(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Swaps two deployment slots of an app.
Swaps two deployment slots of an app.
resource belongs. slot name. See example. production slot is used as the source slot. will be added to the HTTP request.
37046 37047 37048 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37046 def begin_swap_slot_slot_with_http_info(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) begin_swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:custom_headers).value! end |
#begin_swap_slot_with_production(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ Object
Swaps two deployment slots of an app.
Swaps two deployment slots of an app.
resource belongs. slot name. See example. will be added to the HTTP request.
37285 37286 37287 37288 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37285 def begin_swap_slot_with_production(resource_group_name, name, slot_swap_entity, custom_headers:nil) response = begin_swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers:custom_headers).value! nil end |
#begin_swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ Concurrent::Promise
Swaps two deployment slots of an app.
Swaps two deployment slots of an app.
resource belongs. slot name. See example. to the HTTP request.
37324 37325 37326 37327 37328 37329 37330 37331 37332 37333 37334 37335 37336 37337 37338 37339 37340 37341 37342 37343 37344 37345 37346 37347 37348 37349 37350 37351 37352 37353 37354 37355 37356 37357 37358 37359 37360 37361 37362 37363 37364 37365 37366 37367 37368 37369 37370 37371 37372 37373 37374 37375 37376 37377 37378 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37324 def begin_swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, 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, 'slot_swap_entity is nil' if slot_swap_entity.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_08_01::Models::CsmSlotEntity.mapper() request_content = @client.serialize(request_mapper, slot_swap_entity) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slotsswap' 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(: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? result end promise.execute end |
#begin_swap_slot_with_production_with_http_info(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Swaps two deployment slots of an app.
Swaps two deployment slots of an app.
resource belongs. slot name. See example. will be added to the HTTP request.
37305 37306 37307 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37305 def begin_swap_slot_with_production_with_http_info(resource_group_name, name, slot_swap_entity, custom_headers:nil) begin_swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers:custom_headers).value! end |
#create_deployment(resource_group_name, name, id, deployment, custom_headers: nil) ⇒ Deployment
Create a deployment for an app, or a deployment slot.
Create a deployment for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
5308 5309 5310 5311 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5308 def create_deployment(resource_group_name, name, id, deployment, custom_headers:nil) response = create_deployment_async(resource_group_name, name, id, deployment, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_deployment_async(resource_group_name, name, id, deployment, custom_headers: nil) ⇒ Concurrent::Promise
Create a deployment for an app, or a deployment slot.
Create a deployment for an app, or a deployment slot.
resource belongs. to the HTTP request.
5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5347 def create_deployment_async(resource_group_name, name, id, deployment, 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, 'id is nil' if id.nil? fail ArgumentError, 'deployment is nil' if deployment.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_08_01::Models::Deployment.mapper() request_content = @client.serialize(request_mapper, deployment) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}' 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,'id' => id,'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 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_08_01::Models::Deployment.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 |
#create_deployment_slot(resource_group_name, name, id, slot, deployment, custom_headers: nil) ⇒ Deployment
Create a deployment for an app, or a deployment slot.
Create a deployment for an app, or a deployment slot.
resource belongs. the API creates a deployment for the production slot. will be added to the HTTP request.
19376 19377 19378 19379 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19376 def create_deployment_slot(resource_group_name, name, id, slot, deployment, custom_headers:nil) response = create_deployment_slot_async(resource_group_name, name, id, slot, deployment, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_deployment_slot_async(resource_group_name, name, id, slot, deployment, custom_headers: nil) ⇒ Concurrent::Promise
Create a deployment for an app, or a deployment slot.
Create a deployment for an app, or a deployment slot.
resource belongs. the API creates a deployment for the production slot. to the HTTP request.
19419 19420 19421 19422 19423 19424 19425 19426 19427 19428 19429 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 19440 19441 19442 19443 19444 19445 19446 19447 19448 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19419 def create_deployment_slot_async(resource_group_name, name, id, slot, deployment, 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, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'deployment is nil' if deployment.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_08_01::Models::Deployment.mapper() request_content = @client.serialize(request_mapper, deployment) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments/{id}' 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,'id' => id,'slot' => slot,'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 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_08_01::Models::Deployment.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 |
#create_deployment_slot_with_http_info(resource_group_name, name, id, slot, deployment, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create a deployment for an app, or a deployment slot.
Create a deployment for an app, or a deployment slot.
resource belongs. the API creates a deployment for the production slot. will be added to the HTTP request.
19398 19399 19400 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19398 def create_deployment_slot_with_http_info(resource_group_name, name, id, slot, deployment, custom_headers:nil) create_deployment_slot_async(resource_group_name, name, id, slot, deployment, custom_headers:custom_headers).value! end |
#create_deployment_with_http_info(resource_group_name, name, id, deployment, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create a deployment for an app, or a deployment slot.
Create a deployment for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
5328 5329 5330 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5328 def create_deployment_with_http_info(resource_group_name, name, id, deployment, custom_headers:nil) create_deployment_async(resource_group_name, name, id, deployment, custom_headers:custom_headers).value! end |
#create_function(resource_group_name, name, function_name, function_envelope, custom_headers: nil) ⇒ FunctionEnvelope
Create function for web site, or a deployment slot.
Create function for web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
6820 6821 6822 6823 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6820 def create_function(resource_group_name, name, function_name, function_envelope, custom_headers:nil) response = create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. will be added to the HTTP request.
response.
6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6837 def create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers:nil) # Send request promise = begin_create_function_async(resource_group_name, name, function_name, function_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_08_01::Models::FunctionEnvelope.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_instance_function_slot(resource_group_name, name, function_name, slot, function_envelope, custom_headers: nil) ⇒ FunctionEnvelope
Create function for web site, or a deployment slot.
Create function for web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
20983 20984 20985 20986 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20983 def create_instance_function_slot(resource_group_name, name, function_name, slot, function_envelope, custom_headers:nil) response = create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
response.
21002 21003 21004 21005 21006 21007 21008 21009 21010 21011 21012 21013 21014 21015 21016 21017 21018 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21002 def create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers:nil) # Send request promise = begin_create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_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_08_01::Models::FunctionEnvelope.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_instance_msdeploy_operation(resource_group_name, name, instance_id, msdeploy, custom_headers: nil) ⇒ MSDeployStatus
Invoke the MSDeploy web app extension.
Invoke the MSDeploy web app extension.
resource belongs. will be added to the HTTP request.
9008 9009 9010 9011 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9008 def create_instance_msdeploy_operation(resource_group_name, name, instance_id, msdeploy, custom_headers:nil) response = create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. will be added to the HTTP request.
response.
9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9025 def create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers:nil) # Send request promise = begin_create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::MSDeployStatus.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_instance_msdeploy_operation_slot(resource_group_name, name, slot, instance_id, msdeploy, custom_headers: nil) ⇒ MSDeployStatus
Invoke the MSDeploy web app extension.
Invoke the MSDeploy web app extension.
resource belongs. to production slot. will be added to the HTTP request.
23290 23291 23292 23293 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23290 def create_instance_msdeploy_operation_slot(resource_group_name, name, slot, instance_id, msdeploy, custom_headers:nil) response = create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. to production slot. will be added to the HTTP request.
response.
23309 23310 23311 23312 23313 23314 23315 23316 23317 23318 23319 23320 23321 23322 23323 23324 23325 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23309 def create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers:nil) # Send request promise = begin_create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::MSDeployStatus.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_msdeploy_operation(resource_group_name, name, msdeploy, custom_headers: nil) ⇒ MSDeployStatus
Invoke the MSDeploy web app extension.
Invoke the MSDeploy web app extension.
resource belongs. will be added to the HTTP request.
6336 6337 6338 6339 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6336 def create_msdeploy_operation(resource_group_name, name, msdeploy, custom_headers:nil) response = create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. will be added to the HTTP request.
response.
6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6352 def create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers:nil) # Send request promise = begin_create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::MSDeployStatus.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_msdeploy_operation_slot(resource_group_name, name, slot, msdeploy, custom_headers: nil) ⇒ MSDeployStatus
Invoke the MSDeploy web app extension.
Invoke the MSDeploy web app extension.
resource belongs. to production slot. will be added to the HTTP request.
20467 20468 20469 20470 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20467 def create_msdeploy_operation_slot(resource_group_name, name, slot, msdeploy, custom_headers:nil) response = create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. to production slot. will be added to the HTTP request.
response.
20485 20486 20487 20488 20489 20490 20491 20492 20493 20494 20495 20496 20497 20498 20499 20500 20501 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20485 def create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers:nil) # Send request promise = begin_create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::MSDeployStatus.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(resource_group_name, name, site_envelope, custom_headers: nil) ⇒ Site
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
resource belongs. update a deployment slot, use the slot parameter. example. will be added to the HTTP request.
351 352 353 354 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 351 def create_or_update(resource_group_name, name, site_envelope, custom_headers:nil) response = create_or_update_async(resource_group_name, name, site_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_async(resource_group_name, name, site_envelope, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. update a deployment slot, use the slot parameter. example. will be added to the HTTP request.
response.
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 369 def create_or_update_async(resource_group_name, name, site_envelope, custom_headers:nil) # Send request promise = begin_create_or_update_async(resource_group_name, name, site_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_08_01::Models::Site.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_configuration(resource_group_name, name, site_config, custom_headers: nil) ⇒ SiteConfigResource
Updates the configuration of an app.
Updates the configuration of an app.
resource belongs. object. See example. will be added to the HTTP request.
3792 3793 3794 3795 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3792 def create_or_update_configuration(resource_group_name, name, site_config, custom_headers:nil) response = create_or_update_configuration_async(resource_group_name, name, site_config, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_configuration_async(resource_group_name, name, site_config, custom_headers: nil) ⇒ Concurrent::Promise
Updates the configuration of an app.
Updates the configuration of an app.
resource belongs. object. See example. to the HTTP request.
3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3831 def create_or_update_configuration_async(resource_group_name, name, site_config, 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, 'site_config is nil' if site_config.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_08_01::Models::SiteConfigResource.mapper() request_content = @client.serialize(request_mapper, site_config) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web' 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 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_08_01::Models::SiteConfigResource.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 |
#create_or_update_configuration_slot(resource_group_name, name, site_config, slot, custom_headers: nil) ⇒ SiteConfigResource
Updates the configuration of an app.
Updates the configuration of an app.
resource belongs. object. See example. the API will update configuration for the production slot. will be added to the HTTP request.
17762 17763 17764 17765 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17762 def create_or_update_configuration_slot(resource_group_name, name, site_config, slot, custom_headers:nil) response = create_or_update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates the configuration of an app.
Updates the configuration of an app.
resource belongs. object. See example. the API will update configuration for the production slot. to the HTTP request.
17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17805 def create_or_update_configuration_slot_async(resource_group_name, name, site_config, slot, 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, 'site_config is nil' if site_config.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::SiteConfigResource.mapper() request_content = @client.serialize(request_mapper, site_config) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web' 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,'slot' => slot,'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 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_08_01::Models::SiteConfigResource.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 |
#create_or_update_configuration_slot_with_http_info(resource_group_name, name, site_config, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the configuration of an app.
Updates the configuration of an app.
resource belongs. object. See example. the API will update configuration for the production slot. will be added to the HTTP request.
17784 17785 17786 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17784 def create_or_update_configuration_slot_with_http_info(resource_group_name, name, site_config, slot, custom_headers:nil) create_or_update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers:custom_headers).value! end |
#create_or_update_configuration_with_http_info(resource_group_name, name, site_config, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the configuration of an app.
Updates the configuration of an app.
resource belongs. object. See example. will be added to the HTTP request.
3812 3813 3814 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3812 def create_or_update_configuration_with_http_info(resource_group_name, name, site_config, custom_headers:nil) create_or_update_configuration_async(resource_group_name, name, site_config, custom_headers:custom_headers).value! end |
#create_or_update_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers: nil) ⇒ Identifier
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
resource belongs. identifier. domain ownership properties. will be added to the HTTP request.
5867 5868 5869 5870 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5867 def create_or_update_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:nil) response = create_or_update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers: nil) ⇒ Concurrent::Promise
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
resource belongs. identifier. domain ownership properties. to the HTTP request.
5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5914 def create_or_update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, 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, 'domain_ownership_identifier_name is nil' if domain_ownership_identifier_name.nil? fail ArgumentError, 'domain_ownership_identifier is nil' if domain_ownership_identifier.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_08_01::Models::Identifier.mapper() request_content = @client.serialize(request_mapper, domain_ownership_identifier) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}' 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,'domainOwnershipIdentifierName' => domain_ownership_identifier_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 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_08_01::Models::Identifier.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 |
#create_or_update_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers: nil) ⇒ Identifier
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
resource belongs. identifier. domain ownership properties. the API will delete the binding for the production slot. will be added to the HTTP request.
19970 19971 19972 19973 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19970 def create_or_update_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:nil) response = create_or_update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
resource belongs. identifier. domain ownership properties. the API will delete the binding for the production slot. to the HTTP request.
20021 20022 20023 20024 20025 20026 20027 20028 20029 20030 20031 20032 20033 20034 20035 20036 20037 20038 20039 20040 20041 20042 20043 20044 20045 20046 20047 20048 20049 20050 20051 20052 20053 20054 20055 20056 20057 20058 20059 20060 20061 20062 20063 20064 20065 20066 20067 20068 20069 20070 20071 20072 20073 20074 20075 20076 20077 20078 20079 20080 20081 20082 20083 20084 20085 20086 20087 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20021 def create_or_update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, 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, 'domain_ownership_identifier_name is nil' if domain_ownership_identifier_name.nil? fail ArgumentError, 'domain_ownership_identifier is nil' if domain_ownership_identifier.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::Identifier.mapper() request_content = @client.serialize(request_mapper, domain_ownership_identifier) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}' 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,'domainOwnershipIdentifierName' => domain_ownership_identifier_name,'slot' => slot,'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 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_08_01::Models::Identifier.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 |
#create_or_update_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
resource belongs. identifier. domain ownership properties. the API will delete the binding for the production slot. will be added to the HTTP request.
19996 19997 19998 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19996 def create_or_update_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:nil) create_or_update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:custom_headers).value! end |
#create_or_update_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
resource belongs. identifier. domain ownership properties. will be added to the HTTP request.
5891 5892 5893 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5891 def create_or_update_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:nil) create_or_update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:custom_headers).value! end |
#create_or_update_host_name_binding(resource_group_name, name, host_name, host_name_binding, custom_headers: nil) ⇒ HostNameBinding
Creates a hostname binding for an app.
Creates a hostname binding for an app.
resource belongs. representation of a HostNameBinding object. will be added to the HTTP request.
7296 7297 7298 7299 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7296 def create_or_update_host_name_binding(resource_group_name, name, host_name, host_name_binding, custom_headers:nil) response = create_or_update_host_name_binding_async(resource_group_name, name, host_name, host_name_binding, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_host_name_binding_async(resource_group_name, name, host_name, host_name_binding, custom_headers: nil) ⇒ Concurrent::Promise
Creates a hostname binding for an app.
Creates a hostname binding for an app.
resource belongs. representation of a HostNameBinding object. to the HTTP request.
7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7337 def create_or_update_host_name_binding_async(resource_group_name, name, host_name, host_name_binding, 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, 'host_name is nil' if host_name.nil? fail ArgumentError, 'host_name_binding is nil' if host_name_binding.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_08_01::Models::HostNameBinding.mapper() request_content = @client.serialize(request_mapper, host_name_binding) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings/{hostName}' 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,'hostName' => host_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 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_08_01::Models::HostNameBinding.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 |
#create_or_update_host_name_binding_slot(resource_group_name, name, host_name, host_name_binding, slot, custom_headers: nil) ⇒ HostNameBinding
Creates a hostname binding for an app.
Creates a hostname binding for an app.
resource belongs. representation of a HostNameBinding object. the API will create a binding for the production slot. will be added to the HTTP request.
21491 21492 21493 21494 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21491 def create_or_update_host_name_binding_slot(resource_group_name, name, host_name, host_name_binding, slot, custom_headers:nil) response = create_or_update_host_name_binding_slot_async(resource_group_name, name, host_name, host_name_binding, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_host_name_binding_slot_async(resource_group_name, name, host_name, host_name_binding, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a hostname binding for an app.
Creates a hostname binding for an app.
resource belongs. representation of a HostNameBinding object. the API will create a binding for the production slot. to the HTTP request.
21536 21537 21538 21539 21540 21541 21542 21543 21544 21545 21546 21547 21548 21549 21550 21551 21552 21553 21554 21555 21556 21557 21558 21559 21560 21561 21562 21563 21564 21565 21566 21567 21568 21569 21570 21571 21572 21573 21574 21575 21576 21577 21578 21579 21580 21581 21582 21583 21584 21585 21586 21587 21588 21589 21590 21591 21592 21593 21594 21595 21596 21597 21598 21599 21600 21601 21602 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21536 def create_or_update_host_name_binding_slot_async(resource_group_name, name, host_name, host_name_binding, slot, 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, 'host_name is nil' if host_name.nil? fail ArgumentError, 'host_name_binding is nil' if host_name_binding.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::HostNameBinding.mapper() request_content = @client.serialize(request_mapper, host_name_binding) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings/{hostName}' 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,'hostName' => host_name,'slot' => slot,'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 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_08_01::Models::HostNameBinding.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 |
#create_or_update_host_name_binding_slot_with_http_info(resource_group_name, name, host_name, host_name_binding, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a hostname binding for an app.
Creates a hostname binding for an app.
resource belongs. representation of a HostNameBinding object. the API will create a binding for the production slot. will be added to the HTTP request.
21514 21515 21516 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21514 def create_or_update_host_name_binding_slot_with_http_info(resource_group_name, name, host_name, host_name_binding, slot, custom_headers:nil) create_or_update_host_name_binding_slot_async(resource_group_name, name, host_name, host_name_binding, slot, custom_headers:custom_headers).value! end |
#create_or_update_host_name_binding_with_http_info(resource_group_name, name, host_name, host_name_binding, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a hostname binding for an app.
Creates a hostname binding for an app.
resource belongs. representation of a HostNameBinding object. will be added to the HTTP request.
7317 7318 7319 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7317 def create_or_update_host_name_binding_with_http_info(resource_group_name, name, host_name, host_name_binding, custom_headers:nil) create_or_update_host_name_binding_async(resource_group_name, name, host_name, host_name_binding, custom_headers:custom_headers).value! end |
#create_or_update_hybrid_connection(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers: nil) ⇒ HybridConnection
Creates a new Hybrid Connection using a Service Bus relay.
Creates a new Hybrid Connection using a Service Bus relay.
resource belongs. connection. will be added to the HTTP request.
7634 7635 7636 7637 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7634 def create_or_update_hybrid_connection(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:nil) response = create_or_update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new Hybrid Connection using a Service Bus relay.
Creates a new Hybrid Connection using a Service Bus relay.
resource belongs. connection. to the HTTP request.
7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7677 def create_or_update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_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, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'relay_name is nil' if relay_name.nil? fail ArgumentError, 'connection_envelope is nil' if connection_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_08_01::Models::HybridConnection.mapper() request_content = @client.serialize(request_mapper, connection_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' 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,'namespaceName' => namespace_name,'relayName' => relay_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 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_08_01::Models::HybridConnection.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 |
#create_or_update_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers: nil) ⇒ HybridConnection
Creates a new Hybrid Connection using a Service Bus relay.
Creates a new Hybrid Connection using a Service Bus relay.
resource belongs. connection. will be added to the HTTP request.
21846 21847 21848 21849 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21846 def create_or_update_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:nil) response = create_or_update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new Hybrid Connection using a Service Bus relay.
Creates a new Hybrid Connection using a Service Bus relay.
resource belongs. connection. to the HTTP request.
21891 21892 21893 21894 21895 21896 21897 21898 21899 21900 21901 21902 21903 21904 21905 21906 21907 21908 21909 21910 21911 21912 21913 21914 21915 21916 21917 21918 21919 21920 21921 21922 21923 21924 21925 21926 21927 21928 21929 21930 21931 21932 21933 21934 21935 21936 21937 21938 21939 21940 21941 21942 21943 21944 21945 21946 21947 21948 21949 21950 21951 21952 21953 21954 21955 21956 21957 21958 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21891 def create_or_update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, 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, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'relay_name is nil' if relay_name.nil? fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::HybridConnection.mapper() request_content = @client.serialize(request_mapper, connection_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' 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,'namespaceName' => namespace_name,'relayName' => relay_name,'slot' => slot,'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 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_08_01::Models::HybridConnection.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 |
#create_or_update_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new Hybrid Connection using a Service Bus relay.
Creates a new Hybrid Connection using a Service Bus relay.
resource belongs. connection. will be added to the HTTP request.
21869 21870 21871 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21869 def create_or_update_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:nil) create_or_update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:custom_headers).value! end |
#create_or_update_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new Hybrid Connection using a Service Bus relay.
Creates a new Hybrid Connection using a Service Bus relay.
resource belongs. connection. will be added to the HTTP request.
7656 7657 7658 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7656 def create_or_update_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:nil) create_or_update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:custom_headers).value! end |
#create_or_update_public_certificate(resource_group_name, name, public_certificate_name, public_certificate, custom_headers: nil) ⇒ PublicCertificate
Creates a hostname binding for an app.
Creates a hostname binding for an app.
resource belongs. This is the JSON representation of a PublicCertificate object. will be added to the HTTP request.
13103 13104 13105 13106 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13103 def create_or_update_public_certificate(resource_group_name, name, public_certificate_name, public_certificate, custom_headers:nil) response = create_or_update_public_certificate_async(resource_group_name, name, public_certificate_name, public_certificate, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_public_certificate_async(resource_group_name, name, public_certificate_name, public_certificate, custom_headers: nil) ⇒ Concurrent::Promise
Creates a hostname binding for an app.
Creates a hostname binding for an app.
resource belongs. This is the JSON representation of a PublicCertificate object. to the HTTP request.
13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13144 def create_or_update_public_certificate_async(resource_group_name, name, public_certificate_name, public_certificate, 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, 'public_certificate_name is nil' if public_certificate_name.nil? fail ArgumentError, 'public_certificate is nil' if public_certificate.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_08_01::Models::PublicCertificate.mapper() request_content = @client.serialize(request_mapper, public_certificate) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publicCertificates/{publicCertificateName}' 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,'publicCertificateName' => public_certificate_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 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_08_01::Models::PublicCertificate.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 |
#create_or_update_public_certificate_slot(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers: nil) ⇒ PublicCertificate
Creates a hostname binding for an app.
Creates a hostname binding for an app.
resource belongs. This is the JSON representation of a PublicCertificate object. the API will create a binding for the production slot. will be added to the HTTP request.
27516 27517 27518 27519 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27516 def create_or_update_public_certificate_slot(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers:nil) response = create_or_update_public_certificate_slot_async(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_public_certificate_slot_async(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a hostname binding for an app.
Creates a hostname binding for an app.
resource belongs. This is the JSON representation of a PublicCertificate object. the API will create a binding for the production slot. to the HTTP request.
27561 27562 27563 27564 27565 27566 27567 27568 27569 27570 27571 27572 27573 27574 27575 27576 27577 27578 27579 27580 27581 27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27561 def create_or_update_public_certificate_slot_async(resource_group_name, name, public_certificate_name, public_certificate, slot, 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, 'public_certificate_name is nil' if public_certificate_name.nil? fail ArgumentError, 'public_certificate is nil' if public_certificate.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::PublicCertificate.mapper() request_content = @client.serialize(request_mapper, public_certificate) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publicCertificates/{publicCertificateName}' 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,'publicCertificateName' => public_certificate_name,'slot' => slot,'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 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_08_01::Models::PublicCertificate.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 |
#create_or_update_public_certificate_slot_with_http_info(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a hostname binding for an app.
Creates a hostname binding for an app.
resource belongs. This is the JSON representation of a PublicCertificate object. the API will create a binding for the production slot. will be added to the HTTP request.
27539 27540 27541 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27539 def create_or_update_public_certificate_slot_with_http_info(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers:nil) create_or_update_public_certificate_slot_async(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers:custom_headers).value! end |
#create_or_update_public_certificate_with_http_info(resource_group_name, name, public_certificate_name, public_certificate, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a hostname binding for an app.
Creates a hostname binding for an app.
resource belongs. This is the JSON representation of a PublicCertificate object. will be added to the HTTP request.
13124 13125 13126 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13124 def create_or_update_public_certificate_with_http_info(resource_group_name, name, public_certificate_name, public_certificate, custom_headers:nil) create_or_update_public_certificate_async(resource_group_name, name, public_certificate_name, public_certificate, custom_headers:custom_headers).value! end |
#create_or_update_relay_service_connection(resource_group_name, name, entity_name, connection_envelope, custom_headers: nil) ⇒ RelayServiceConnectionEntity
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
resource belongs. hybrid connection configuration. will be added to the HTTP request.
8436 8437 8438 8439 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8436 def create_or_update_relay_service_connection(resource_group_name, name, entity_name, connection_envelope, custom_headers:nil) response = create_or_update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
resource belongs. hybrid connection configuration. to the HTTP request.
8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8481 def create_or_update_relay_service_connection_async(resource_group_name, name, entity_name, connection_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, 'entity_name is nil' if entity_name.nil? fail ArgumentError, 'connection_envelope is nil' if connection_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_08_01::Models::RelayServiceConnectionEntity.mapper() request_content = @client.serialize(request_mapper, connection_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}' 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,'entityName' => entity_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 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_08_01::Models::RelayServiceConnectionEntity.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 |
#create_or_update_relay_service_connection_slot(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers: nil) ⇒ RelayServiceConnectionEntity
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
resource belongs. hybrid connection configuration. the API will create or update a hybrid connection for the production slot. will be added to the HTTP request.
22683 22684 22685 22686 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22683 def create_or_update_relay_service_connection_slot(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:nil) response = create_or_update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
resource belongs. hybrid connection configuration. the API will create or update a hybrid connection for the production slot. to the HTTP request.
22732 22733 22734 22735 22736 22737 22738 22739 22740 22741 22742 22743 22744 22745 22746 22747 22748 22749 22750 22751 22752 22753 22754 22755 22756 22757 22758 22759 22760 22761 22762 22763 22764 22765 22766 22767 22768 22769 22770 22771 22772 22773 22774 22775 22776 22777 22778 22779 22780 22781 22782 22783 22784 22785 22786 22787 22788 22789 22790 22791 22792 22793 22794 22795 22796 22797 22798 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22732 def create_or_update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, 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, 'entity_name is nil' if entity_name.nil? fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::RelayServiceConnectionEntity.mapper() request_content = @client.serialize(request_mapper, connection_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}' 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,'entityName' => entity_name,'slot' => slot,'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 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_08_01::Models::RelayServiceConnectionEntity.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 |
#create_or_update_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
resource belongs. hybrid connection configuration. the API will create or update a hybrid connection for the production slot. will be added to the HTTP request.
22708 22709 22710 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22708 def create_or_update_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:nil) create_or_update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:custom_headers).value! end |
#create_or_update_relay_service_connection_with_http_info(resource_group_name, name, entity_name, connection_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
resource belongs. hybrid connection configuration. will be added to the HTTP request.
8459 8460 8461 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8459 def create_or_update_relay_service_connection_with_http_info(resource_group_name, name, entity_name, connection_envelope, custom_headers:nil) create_or_update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers:custom_headers).value! end |
#create_or_update_slot(resource_group_name, name, site_envelope, slot, skip_dns_registration: nil, skip_custom_domain_verification: nil, force_dns_registration: nil, ttl_in_seconds: nil, custom_headers: nil) ⇒ Site
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
resource belongs. update a deployment slot, use the slot parameter. example. default, this API attempts to create or modify the production slot. registered with DNS on creation. This parameter is only used for app creation. *.azurewebsites.net) domains associated with web app are not verified. registered with DNS. domain name. will be added to the HTTP request.
14319 14320 14321 14322 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14319 def create_or_update_slot(resource_group_name, name, site_envelope, slot, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds:nil, custom_headers:nil) response = create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration:skip_dns_registration, skip_custom_domain_verification:skip_custom_domain_verification, force_dns_registration:force_dns_registration, ttl_in_seconds:ttl_in_seconds, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration: nil, skip_custom_domain_verification: nil, force_dns_registration: nil, ttl_in_seconds: nil, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. update a deployment slot, use the slot parameter. example. default, this API attempts to create or modify the production slot. registered with DNS on creation. This parameter is only used for app creation. *.azurewebsites.net) domains associated with web app are not verified. registered with DNS. domain name. will be added to the HTTP request.
response.
14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14348 def create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds:nil, custom_headers:nil) # Send request promise = begin_create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration:skip_dns_registration, skip_custom_domain_verification:skip_custom_domain_verification, force_dns_registration:force_dns_registration, ttl_in_seconds:ttl_in_seconds, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::Site.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_source_control(resource_group_name, name, site_source_control, custom_headers: nil) ⇒ SiteSourceControl
Updates the source control configuration of an app.
Updates the source control configuration of an app.
resource belongs. SiteSourceControl object. See example. will be added to the HTTP request.
32166 32167 32168 32169 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32166 def create_or_update_source_control(resource_group_name, name, site_source_control, custom_headers:nil) response = create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. SiteSourceControl object. See example. will be added to the HTTP request.
response.
32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32183 def create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers:nil) # Send request promise = begin_create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.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_source_control_slot(resource_group_name, name, site_source_control, slot, custom_headers: nil) ⇒ SiteSourceControl
Updates the source control configuration of an app.
Updates the source control configuration of an app.
resource belongs. SiteSourceControl object. See example. the API will update the source control configuration for the production slot. will be added to the HTTP request.
28983 28984 28985 28986 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28983 def create_or_update_source_control_slot(resource_group_name, name, site_source_control, slot, custom_headers:nil) response = create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. SiteSourceControl object. See example. the API will update the source control configuration for the production slot. will be added to the HTTP request.
response.
29002 29003 29004 29005 29006 29007 29008 29009 29010 29011 29012 29013 29014 29015 29016 29017 29018 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29002 def create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers:nil) # Send request promise = begin_create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.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_vnet_connection(resource_group_name, name, vnet_name, connection_envelope, custom_headers: nil) ⇒ VnetInfo
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
resource belongs. connection. See example. will be added to the HTTP request.
33825 33826 33827 33828 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33825 def create_or_update_vnet_connection(resource_group_name, name, vnet_name, connection_envelope, custom_headers:nil) response = create_or_update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
resource belongs. connection. See example. to the HTTP request.
33870 33871 33872 33873 33874 33875 33876 33877 33878 33879 33880 33881 33882 33883 33884 33885 33886 33887 33888 33889 33890 33891 33892 33893 33894 33895 33896 33897 33898 33899 33900 33901 33902 33903 33904 33905 33906 33907 33908 33909 33910 33911 33912 33913 33914 33915 33916 33917 33918 33919 33920 33921 33922 33923 33924 33925 33926 33927 33928 33929 33930 33931 33932 33933 33934 33935 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33870 def create_or_update_vnet_connection_async(resource_group_name, name, vnet_name, connection_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, 'vnet_name is nil' if vnet_name.nil? fail ArgumentError, 'connection_envelope is nil' if connection_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_08_01::Models::VnetInfo.mapper() request_content = @client.serialize(request_mapper, connection_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}' 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,'vnetName' => vnet_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 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_08_01::Models::VnetInfo.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 |
#create_or_update_vnet_connection_gateway(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers: nil) ⇒ VnetGateway
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
resource belongs. supported string is “primary”. gateway with. will be added to the HTTP request.
34307 34308 34309 34310 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34307 def create_or_update_vnet_connection_gateway(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:nil) response = create_or_update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
resource belongs. supported string is “primary”. gateway with. to the HTTP request.
34352 34353 34354 34355 34356 34357 34358 34359 34360 34361 34362 34363 34364 34365 34366 34367 34368 34369 34370 34371 34372 34373 34374 34375 34376 34377 34378 34379 34380 34381 34382 34383 34384 34385 34386 34387 34388 34389 34390 34391 34392 34393 34394 34395 34396 34397 34398 34399 34400 34401 34402 34403 34404 34405 34406 34407 34408 34409 34410 34411 34412 34413 34414 34415 34416 34417 34418 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34352 def create_or_update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_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, 'vnet_name is nil' if vnet_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? fail ArgumentError, 'connection_envelope is nil' if connection_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_08_01::Models::VnetGateway.mapper() request_content = @client.serialize(request_mapper, connection_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}' 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,'vnetName' => vnet_name,'gatewayName' => gateway_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 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_08_01::Models::VnetGateway.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 |
#create_or_update_vnet_connection_gateway_slot(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers: nil) ⇒ VnetGateway
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
resource belongs. supported string is “primary”. gateway with. the API will add or update a gateway for the production slot’s Virtual Network. will be added to the HTTP request.
31262 31263 31264 31265 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31262 def create_or_update_vnet_connection_gateway_slot(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:nil) response = create_or_update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers: nil) ⇒ Concurrent::Promise
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
resource belongs. supported string is “primary”. gateway with. the API will add or update a gateway for the production slot’s Virtual Network. to the HTTP request.
31313 31314 31315 31316 31317 31318 31319 31320 31321 31322 31323 31324 31325 31326 31327 31328 31329 31330 31331 31332 31333 31334 31335 31336 31337 31338 31339 31340 31341 31342 31343 31344 31345 31346 31347 31348 31349 31350 31351 31352 31353 31354 31355 31356 31357 31358 31359 31360 31361 31362 31363 31364 31365 31366 31367 31368 31369 31370 31371 31372 31373 31374 31375 31376 31377 31378 31379 31380 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31313 def create_or_update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, 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, 'vnet_name is nil' if vnet_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::VnetGateway.mapper() request_content = @client.serialize(request_mapper, connection_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}' 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,'vnetName' => vnet_name,'gatewayName' => gateway_name,'slot' => slot,'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 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_08_01::Models::VnetGateway.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 |
#create_or_update_vnet_connection_gateway_slot_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
resource belongs. supported string is “primary”. gateway with. the API will add or update a gateway for the production slot’s Virtual Network. will be added to the HTTP request.
31288 31289 31290 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31288 def create_or_update_vnet_connection_gateway_slot_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:nil) create_or_update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:custom_headers).value! end |
#create_or_update_vnet_connection_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
resource belongs. supported string is “primary”. gateway with. will be added to the HTTP request.
34330 34331 34332 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34330 def create_or_update_vnet_connection_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:nil) create_or_update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:custom_headers).value! end |
#create_or_update_vnet_connection_slot(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers: nil) ⇒ VnetInfo
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
resource belongs. connection. See example. the API will add or update connections for the production slot. will be added to the HTTP request.
30751 30752 30753 30754 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30751 def create_or_update_vnet_connection_slot(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:nil) response = create_or_update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers: nil) ⇒ Concurrent::Promise
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
resource belongs. connection. See example. the API will add or update connections for the production slot. to the HTTP request.
30800 30801 30802 30803 30804 30805 30806 30807 30808 30809 30810 30811 30812 30813 30814 30815 30816 30817 30818 30819 30820 30821 30822 30823 30824 30825 30826 30827 30828 30829 30830 30831 30832 30833 30834 30835 30836 30837 30838 30839 30840 30841 30842 30843 30844 30845 30846 30847 30848 30849 30850 30851 30852 30853 30854 30855 30856 30857 30858 30859 30860 30861 30862 30863 30864 30865 30866 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30800 def create_or_update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, 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, 'vnet_name is nil' if vnet_name.nil? fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::VnetInfo.mapper() request_content = @client.serialize(request_mapper, connection_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}' 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,'vnetName' => vnet_name,'slot' => slot,'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 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_08_01::Models::VnetInfo.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 |
#create_or_update_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
resource belongs. connection. See example. the API will add or update connections for the production slot. will be added to the HTTP request.
30776 30777 30778 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30776 def create_or_update_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:nil) create_or_update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:custom_headers).value! end |
#create_or_update_vnet_connection_with_http_info(resource_group_name, name, vnet_name, connection_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
resource belongs. connection. See example. will be added to the HTTP request.
33848 33849 33850 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33848 def create_or_update_vnet_connection_with_http_info(resource_group_name, name, vnet_name, connection_envelope, custom_headers:nil) create_or_update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers:custom_headers).value! end |
#delete(resource_group_name, name, delete_metrics: nil, delete_empty_server_farm: nil, custom_headers: nil) ⇒ Object
Deletes a web, mobile, or API app, or one of the deployment slots.
Deletes a web, mobile, or API app, or one of the deployment slots.
resource belongs. plan will be empty after app deletion and you want to delete the empty App Service plan. By default, the empty App Service plan is not deleted. will be added to the HTTP request.
403 404 405 406 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 403 def delete(resource_group_name, name, delete_metrics:nil, delete_empty_server_farm:nil, custom_headers:nil) response = delete_async(resource_group_name, name, delete_metrics:delete_metrics, delete_empty_server_farm:delete_empty_server_farm, custom_headers:custom_headers).value! nil end |
#delete_async(resource_group_name, name, delete_metrics: nil, delete_empty_server_farm: nil, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a web, mobile, or API app, or one of the deployment slots.
Deletes a web, mobile, or API app, or one of the deployment slots.
resource belongs. plan will be empty after app deletion and you want to delete the empty App Service plan. By default, the empty App Service plan is not deleted. to the HTTP request.
446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 446 def delete_async(resource_group_name, name, delete_metrics:nil, delete_empty_server_farm: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/sites/{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: {'deleteMetrics' => delete_metrics,'deleteEmptyServerFarm' => delete_empty_server_farm,'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 == 200 || status_code == 204 || status_code == 404 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 |
#delete_backup(resource_group_name, name, backup_id, custom_headers: nil) ⇒ Object
Deletes a backup of an app by its ID.
Deletes a backup of an app by its ID.
resource belongs. will be added to the HTTP request.
1332 1333 1334 1335 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1332 def delete_backup(resource_group_name, name, backup_id, custom_headers:nil) response = delete_backup_async(resource_group_name, name, backup_id, custom_headers:custom_headers).value! nil end |
#delete_backup_async(resource_group_name, name, backup_id, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a backup of an app by its ID.
Deletes a backup of an app by its ID.
resource belongs. to the HTTP request.
1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 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 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1369 def delete_backup_async(resource_group_name, name, backup_id, 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, 'backup_id is nil' if backup_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/backups/{backupId}' 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,'backupId' => backup_id,'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(: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 == 200 || status_code == 404 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 |
#delete_backup_configuration(resource_group_name, name, custom_headers: nil) ⇒ Object
Deletes the backup configuration of an app.
Deletes the backup configuration of an app.
resource belongs. will be added to the HTTP request.
2291 2292 2293 2294 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2291 def delete_backup_configuration(resource_group_name, name, custom_headers:nil) response = delete_backup_configuration_async(resource_group_name, name, custom_headers:custom_headers).value! nil end |
#delete_backup_configuration_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes the backup configuration of an app.
Deletes the backup configuration of an app.
resource belongs. to the HTTP request.
2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2326 def delete_backup_configuration_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/sites/{name}/config/backup' 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(: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 == 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? result end promise.execute end |
#delete_backup_configuration_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Object
Deletes the backup configuration of an app.
Deletes the backup configuration of an app.
resource belongs. the API will delete the backup configuration for the production slot. will be added to the HTTP request.
16418 16419 16420 16421 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16418 def delete_backup_configuration_slot(resource_group_name, name, slot, custom_headers:nil) response = delete_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! nil end |
#delete_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Deletes the backup configuration of an app.
Deletes the backup configuration of an app.
resource belongs. the API will delete the backup configuration for the production slot. to the HTTP request.
16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16457 def delete_backup_configuration_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/config/backup' 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,'slot' => slot,'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(: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 == 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? result end promise.execute end |
#delete_backup_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes the backup configuration of an app.
Deletes the backup configuration of an app.
resource belongs. the API will delete the backup configuration for the production slot. will be added to the HTTP request.
16438 16439 16440 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16438 def delete_backup_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) delete_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#delete_backup_configuration_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes the backup configuration of an app.
Deletes the backup configuration of an app.
resource belongs. will be added to the HTTP request.
2309 2310 2311 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2309 def delete_backup_configuration_with_http_info(resource_group_name, name, custom_headers:nil) delete_backup_configuration_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#delete_backup_slot(resource_group_name, name, backup_id, slot, custom_headers: nil) ⇒ Object
Deletes a backup of an app by its ID.
Deletes a backup of an app by its ID.
resource belongs. the API will delete a backup of the production slot. will be added to the HTTP request.
15399 15400 15401 15402 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15399 def delete_backup_slot(resource_group_name, name, backup_id, slot, custom_headers:nil) response = delete_backup_slot_async(resource_group_name, name, backup_id, slot, custom_headers:custom_headers).value! nil end |
#delete_backup_slot_async(resource_group_name, name, backup_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a backup of an app by its ID.
Deletes a backup of an app by its ID.
resource belongs. the API will delete a backup of the production slot. to the HTTP request.
15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15440 def delete_backup_slot_async(resource_group_name, name, backup_id, slot, 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, 'backup_id is nil' if backup_id.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/backups/{backupId}' 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,'backupId' => backup_id,'slot' => slot,'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(: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 == 200 || status_code == 404 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 |
#delete_backup_slot_with_http_info(resource_group_name, name, backup_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a backup of an app by its ID.
Deletes a backup of an app by its ID.
resource belongs. the API will delete a backup of the production slot. will be added to the HTTP request.
15420 15421 15422 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15420 def delete_backup_slot_with_http_info(resource_group_name, name, backup_id, slot, custom_headers:nil) delete_backup_slot_async(resource_group_name, name, backup_id, slot, custom_headers:custom_headers).value! end |
#delete_backup_with_http_info(resource_group_name, name, backup_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a backup of an app by its ID.
Deletes a backup of an app by its ID.
resource belongs. will be added to the HTTP request.
1351 1352 1353 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1351 def delete_backup_with_http_info(resource_group_name, name, backup_id, custom_headers:nil) delete_backup_async(resource_group_name, name, backup_id, custom_headers:custom_headers).value! end |
#delete_continuous_web_job(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Object
Delete a continuous web job by its ID for an app, or a deployment slot.
Delete a continuous web job by its ID for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
4793 4794 4795 4796 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4793 def delete_continuous_web_job(resource_group_name, name, web_job_name, custom_headers:nil) response = delete_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! nil end |
#delete_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
Delete a continuous web job by its ID for an app, or a deployment slot.
Delete a continuous web job by its ID for an app, or a deployment slot.
resource belongs. to the HTTP request.
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 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4830 def delete_continuous_web_job_async(resource_group_name, name, web_job_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, 'web_job_name is nil' if web_job_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/sites/{name}/continuouswebjobs/{webJobName}' 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,'webJobName' => web_job_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(: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 == 200 || status_code == 204 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 |
#delete_continuous_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Object
Delete a continuous web job by its ID for an app, or a deployment slot.
Delete a continuous web job by its ID for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
18826 18827 18828 18829 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18826 def delete_continuous_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers:nil) response = delete_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! nil end |
#delete_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Delete a continuous web job by its ID for an app, or a deployment slot.
Delete a continuous web job by its ID for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
18867 18868 18869 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883 18884 18885 18886 18887 18888 18889 18890 18891 18892 18893 18894 18895 18896 18897 18898 18899 18900 18901 18902 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18867 def delete_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, 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, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/continuouswebjobs/{webJobName}' 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,'webJobName' => web_job_name,'slot' => slot,'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(: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 == 200 || status_code == 204 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 |
#delete_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a continuous web job by its ID for an app, or a deployment slot.
Delete a continuous web job by its ID for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
18847 18848 18849 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18847 def delete_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers:nil) delete_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! end |
#delete_continuous_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a continuous web job by its ID for an app, or a deployment slot.
Delete a continuous web job by its ID for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
4812 4813 4814 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4812 def delete_continuous_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers:nil) delete_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! end |
#delete_deployment(resource_group_name, name, id, custom_headers: nil) ⇒ Object
Delete a deployment by its ID for an app, or a deployment slot.
Delete a deployment by its ID for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
5427 5428 5429 5430 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5427 def delete_deployment(resource_group_name, name, id, custom_headers:nil) response = delete_deployment_async(resource_group_name, name, id, custom_headers:custom_headers).value! nil end |
#delete_deployment_async(resource_group_name, name, id, custom_headers: nil) ⇒ Concurrent::Promise
Delete a deployment by its ID for an app, or a deployment slot.
Delete a deployment by its ID for an app, or a deployment slot.
resource belongs. to the HTTP request.
5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5464 def delete_deployment_async(resource_group_name, name, id, 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, 'id is nil' if id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/deployments/{id}' 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,'id' => id,'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(: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 == 200 || status_code == 204 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 |
#delete_deployment_slot(resource_group_name, name, id, slot, custom_headers: nil) ⇒ Object
Delete a deployment by its ID for an app, or a deployment slot.
Delete a deployment by its ID for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
19502 19503 19504 19505 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19502 def delete_deployment_slot(resource_group_name, name, id, slot, custom_headers:nil) response = delete_deployment_slot_async(resource_group_name, name, id, slot, custom_headers:custom_headers).value! nil end |
#delete_deployment_slot_async(resource_group_name, name, id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Delete a deployment by its ID for an app, or a deployment slot.
Delete a deployment by its ID for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
19543 19544 19545 19546 19547 19548 19549 19550 19551 19552 19553 19554 19555 19556 19557 19558 19559 19560 19561 19562 19563 19564 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575 19576 19577 19578 19579 19580 19581 19582 19583 19584 19585 19586 19587 19588 19589 19590 19591 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19543 def delete_deployment_slot_async(resource_group_name, name, id, slot, 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, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/deployments/{id}' 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,'id' => id,'slot' => slot,'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(: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 == 200 || status_code == 204 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 |
#delete_deployment_slot_with_http_info(resource_group_name, name, id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a deployment by its ID for an app, or a deployment slot.
Delete a deployment by its ID for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
19523 19524 19525 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19523 def delete_deployment_slot_with_http_info(resource_group_name, name, id, slot, custom_headers:nil) delete_deployment_slot_async(resource_group_name, name, id, slot, custom_headers:custom_headers).value! end |
#delete_deployment_with_http_info(resource_group_name, name, id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a deployment by its ID for an app, or a deployment slot.
Delete a deployment by its ID for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
5446 5447 5448 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5446 def delete_deployment_with_http_info(resource_group_name, name, id, custom_headers:nil) delete_deployment_async(resource_group_name, name, id, custom_headers:custom_headers).value! end |
#delete_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, custom_headers: nil) ⇒ Object
Deletes a domain ownership identifier for a web app.
Deletes a domain ownership identifier for a web app.
resource belongs. identifier. will be added to the HTTP request.
5995 5996 5997 5998 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5995 def delete_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, custom_headers:nil) response = delete_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers:custom_headers).value! nil end |
#delete_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a domain ownership identifier for a web app.
Deletes a domain ownership identifier for a web app.
resource belongs. identifier. to the HTTP request.
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 6076 6077 6078 6079 6080 6081 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6034 def delete_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_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, 'domain_ownership_identifier_name is nil' if domain_ownership_identifier_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/sites/{name}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}' 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,'domainOwnershipIdentifierName' => domain_ownership_identifier_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(: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 == 200 || status_code == 204 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 |
#delete_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers: nil) ⇒ Object
Deletes a domain ownership identifier for a web app.
Deletes a domain ownership identifier for a web app.
resource belongs. identifier. the API will delete the binding for the production slot. will be added to the HTTP request.
20105 20106 20107 20108 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20105 def delete_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:nil) response = delete_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:custom_headers).value! nil end |
#delete_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a domain ownership identifier for a web app.
Deletes a domain ownership identifier for a web app.
resource belongs. identifier. the API will delete the binding for the production slot. to the HTTP request.
20148 20149 20150 20151 20152 20153 20154 20155 20156 20157 20158 20159 20160 20161 20162 20163 20164 20165 20166 20167 20168 20169 20170 20171 20172 20173 20174 20175 20176 20177 20178 20179 20180 20181 20182 20183 20184 20185 20186 20187 20188 20189 20190 20191 20192 20193 20194 20195 20196 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20148 def delete_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, 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, 'domain_ownership_identifier_name is nil' if domain_ownership_identifier_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}' 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,'domainOwnershipIdentifierName' => domain_ownership_identifier_name,'slot' => slot,'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(: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 == 200 || status_code == 204 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 |
#delete_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a domain ownership identifier for a web app.
Deletes a domain ownership identifier for a web app.
resource belongs. identifier. the API will delete the binding for the production slot. will be added to the HTTP request.
20127 20128 20129 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20127 def delete_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:nil) delete_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:custom_headers).value! end |
#delete_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a domain ownership identifier for a web app.
Deletes a domain ownership identifier for a web app.
resource belongs. identifier. will be added to the HTTP request.
6015 6016 6017 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6015 def delete_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, custom_headers:nil) delete_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers:custom_headers).value! end |
#delete_function(resource_group_name, name, function_name, custom_headers: nil) ⇒ Object
Delete a function for web site, or a deployment slot.
Delete a function for web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
6868 6869 6870 6871 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6868 def delete_function(resource_group_name, name, function_name, custom_headers:nil) response = delete_function_async(resource_group_name, name, function_name, custom_headers:custom_headers).value! nil end |
#delete_function_async(resource_group_name, name, function_name, custom_headers: nil) ⇒ Concurrent::Promise
Delete a function for web site, or a deployment slot.
Delete a function for web site, or a deployment slot.
resource belongs. to the HTTP request.
6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6905 def delete_function_async(resource_group_name, name, function_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, 'function_name is nil' if function_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/sites/{name}/functions/{functionName}' 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,'functionName' => function_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(: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 == 204 || status_code == 404 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 |
#delete_function_with_http_info(resource_group_name, name, function_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a function for web site, or a deployment slot.
Delete a function for web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
6887 6888 6889 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6887 def delete_function_with_http_info(resource_group_name, name, function_name, custom_headers:nil) delete_function_async(resource_group_name, name, function_name, custom_headers:custom_headers).value! end |
#delete_host_name_binding(resource_group_name, name, host_name, custom_headers: nil) ⇒ Object
Deletes a hostname binding for an app.
Deletes a hostname binding for an app.
resource belongs. will be added to the HTTP request.
7417 7418 7419 7420 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7417 def delete_host_name_binding(resource_group_name, name, host_name, custom_headers:nil) response = delete_host_name_binding_async(resource_group_name, name, host_name, custom_headers:custom_headers).value! nil end |
#delete_host_name_binding_async(resource_group_name, name, host_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a hostname binding for an app.
Deletes a hostname binding for an app.
resource belongs. to the HTTP request.
7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7454 def delete_host_name_binding_async(resource_group_name, name, host_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, 'host_name is nil' if host_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/sites/{name}/hostNameBindings/{hostName}' 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,'hostName' => host_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(: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 == 200 || status_code == 204 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 |
#delete_host_name_binding_slot(resource_group_name, name, slot, host_name, custom_headers: nil) ⇒ Object
Deletes a hostname binding for an app.
Deletes a hostname binding for an app.
resource belongs. the API will delete the binding for the production slot. will be added to the HTTP request.
21619 21620 21621 21622 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21619 def delete_host_name_binding_slot(resource_group_name, name, slot, host_name, custom_headers:nil) response = delete_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers:custom_headers).value! nil end |
#delete_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a hostname binding for an app.
Deletes a hostname binding for an app.
resource belongs. the API will delete the binding for the production slot. to the HTTP request.
21660 21661 21662 21663 21664 21665 21666 21667 21668 21669 21670 21671 21672 21673 21674 21675 21676 21677 21678 21679 21680 21681 21682 21683 21684 21685 21686 21687 21688 21689 21690 21691 21692 21693 21694 21695 21696 21697 21698 21699 21700 21701 21702 21703 21704 21705 21706 21707 21708 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21660 def delete_host_name_binding_slot_async(resource_group_name, name, slot, host_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, 'slot is nil' if slot.nil? fail ArgumentError, 'host_name is nil' if host_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/sites/{name}/slots/{slot}/hostNameBindings/{hostName}' 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,'slot' => slot,'hostName' => host_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(: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 == 200 || status_code == 204 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 |
#delete_host_name_binding_slot_with_http_info(resource_group_name, name, slot, host_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a hostname binding for an app.
Deletes a hostname binding for an app.
resource belongs. the API will delete the binding for the production slot. will be added to the HTTP request.
21640 21641 21642 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21640 def delete_host_name_binding_slot_with_http_info(resource_group_name, name, slot, host_name, custom_headers:nil) delete_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers:custom_headers).value! end |
#delete_host_name_binding_with_http_info(resource_group_name, name, host_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a hostname binding for an app.
Deletes a hostname binding for an app.
resource belongs. will be added to the HTTP request.
7436 7437 7438 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7436 def delete_host_name_binding_with_http_info(resource_group_name, name, host_name, custom_headers:nil) delete_host_name_binding_async(resource_group_name, name, host_name, custom_headers:custom_headers).value! end |
#delete_hybrid_connection(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ Object
Removes a Hybrid Connection from this site.
Removes a Hybrid Connection from this site.
resource belongs. will be added to the HTTP request.
7759 7760 7761 7762 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7759 def delete_hybrid_connection(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) response = delete_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! nil end |
#delete_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ Concurrent::Promise
Removes a Hybrid Connection from this site.
Removes a Hybrid Connection from this site.
resource belongs. to the HTTP request.
7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7798 def delete_hybrid_connection_async(resource_group_name, name, namespace_name, relay_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, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'relay_name is nil' if relay_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/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' 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,'namespaceName' => namespace_name,'relayName' => relay_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(: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 == 200 || status_code == 404 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 |
#delete_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ Object
Removes a Hybrid Connection from this site.
Removes a Hybrid Connection from this site.
resource belongs. will be added to the HTTP request.
21975 21976 21977 21978 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21975 def delete_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:nil) response = delete_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:custom_headers).value! nil end |
#delete_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Removes a Hybrid Connection from this site.
Removes a Hybrid Connection from this site.
resource belongs. to the HTTP request.
22016 22017 22018 22019 22020 22021 22022 22023 22024 22025 22026 22027 22028 22029 22030 22031 22032 22033 22034 22035 22036 22037 22038 22039 22040 22041 22042 22043 22044 22045 22046 22047 22048 22049 22050 22051 22052 22053 22054 22055 22056 22057 22058 22059 22060 22061 22062 22063 22064 22065 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22016 def delete_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, 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, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'relay_name is nil' if relay_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' 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,'namespaceName' => namespace_name,'relayName' => relay_name,'slot' => slot,'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(: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 == 200 || status_code == 404 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 |
#delete_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Removes a Hybrid Connection from this site.
Removes a Hybrid Connection from this site.
resource belongs. will be added to the HTTP request.
21996 21997 21998 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21996 def delete_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:nil) delete_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:custom_headers).value! end |
#delete_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Removes a Hybrid Connection from this site.
Removes a Hybrid Connection from this site.
resource belongs. will be added to the HTTP request.
7779 7780 7781 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7779 def delete_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) delete_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! end |
#delete_instance_function_slot(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ Object
Delete a function for web site, or a deployment slot.
Delete a function for web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
21035 21036 21037 21038 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21035 def delete_instance_function_slot(resource_group_name, name, function_name, slot, custom_headers:nil) response = delete_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers:custom_headers).value! nil end |
#delete_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Delete a function for web site, or a deployment slot.
Delete a function for web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
21076 21077 21078 21079 21080 21081 21082 21083 21084 21085 21086 21087 21088 21089 21090 21091 21092 21093 21094 21095 21096 21097 21098 21099 21100 21101 21102 21103 21104 21105 21106 21107 21108 21109 21110 21111 21112 21113 21114 21115 21116 21117 21118 21119 21120 21121 21122 21123 21124 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21076 def delete_instance_function_slot_async(resource_group_name, name, function_name, slot, 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, 'function_name is nil' if function_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/functions/{functionName}' 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,'functionName' => function_name,'slot' => slot,'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(: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 == 204 || status_code == 404 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 |
#delete_instance_function_slot_with_http_info(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a function for web site, or a deployment slot.
Delete a function for web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
21056 21057 21058 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21056 def delete_instance_function_slot_with_http_info(resource_group_name, name, function_name, slot, custom_headers:nil) delete_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers:custom_headers).value! end |
#delete_instance_process(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ Object
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
9419 9420 9421 9422 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9419 def delete_instance_process(resource_group_name, name, process_id, instance_id, custom_headers:nil) response = delete_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! nil end |
#delete_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. to the HTTP request.
9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9466 def delete_instance_process_async(resource_group_name, name, process_id, instance_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/instances/{instanceId}/processes/{processId}' 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,'processId' => process_id,'instanceId' => instance_id,'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(: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 == 204 || status_code == 404 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 |
#delete_instance_process_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ Object
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
23726 23727 23728 23729 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23726 def delete_instance_process_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) response = delete_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! nil end |
#delete_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. to the HTTP request.
23777 23778 23779 23780 23781 23782 23783 23784 23785 23786 23787 23788 23789 23790 23791 23792 23793 23794 23795 23796 23797 23798 23799 23800 23801 23802 23803 23804 23805 23806 23807 23808 23809 23810 23811 23812 23813 23814 23815 23816 23817 23818 23819 23820 23821 23822 23823 23824 23825 23826 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23777 def delete_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}' 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,'processId' => process_id,'slot' => slot,'instanceId' => instance_id,'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(: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 == 204 || status_code == 404 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 |
#delete_instance_process_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
23752 23753 23754 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23752 def delete_instance_process_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) delete_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! end |
#delete_instance_process_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
9443 9444 9445 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9443 def delete_instance_process_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers:nil) delete_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! end |
#delete_premier_add_on(resource_group_name, name, premier_add_on_name, custom_headers: nil) ⇒ Object
Delete a premier add-on from an app.
Delete a premier add-on from an app.
resource belongs. will be added to the HTTP request.
11851 11852 11853 11854 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11851 def delete_premier_add_on(resource_group_name, name, premier_add_on_name, custom_headers:nil) response = delete_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers:custom_headers).value! nil end |
#delete_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers: nil) ⇒ Concurrent::Promise
Delete a premier add-on from an app.
Delete a premier add-on from an app.
resource belongs. to the HTTP request.
11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11888 def delete_premier_add_on_async(resource_group_name, name, premier_add_on_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, 'premier_add_on_name is nil' if premier_add_on_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/sites/{name}/premieraddons/{premierAddOnName}' 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,'premierAddOnName' => premier_add_on_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(: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 == 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? result end promise.execute end |
#delete_premier_add_on_slot(resource_group_name, name, premier_add_on_name, slot, custom_headers: nil) ⇒ Object
Delete a premier add-on from an app.
Delete a premier add-on from an app.
resource belongs. the API will delete the named add-on for the production slot. will be added to the HTTP request.
26187 26188 26189 26190 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26187 def delete_premier_add_on_slot(resource_group_name, name, premier_add_on_name, slot, custom_headers:nil) response = delete_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers:custom_headers).value! nil end |
#delete_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Delete a premier add-on from an app.
Delete a premier add-on from an app.
resource belongs. the API will delete the named add-on for the production slot. to the HTTP request.
26228 26229 26230 26231 26232 26233 26234 26235 26236 26237 26238 26239 26240 26241 26242 26243 26244 26245 26246 26247 26248 26249 26250 26251 26252 26253 26254 26255 26256 26257 26258 26259 26260 26261 26262 26263 26264 26265 26266 26267 26268 26269 26270 26271 26272 26273 26274 26275 26276 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26228 def delete_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, 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, 'premier_add_on_name is nil' if premier_add_on_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}' 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,'premierAddOnName' => premier_add_on_name,'slot' => slot,'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(: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 == 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? result end promise.execute end |
#delete_premier_add_on_slot_with_http_info(resource_group_name, name, premier_add_on_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a premier add-on from an app.
Delete a premier add-on from an app.
resource belongs. the API will delete the named add-on for the production slot. will be added to the HTTP request.
26208 26209 26210 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26208 def delete_premier_add_on_slot_with_http_info(resource_group_name, name, premier_add_on_name, slot, custom_headers:nil) delete_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers:custom_headers).value! end |
#delete_premier_add_on_with_http_info(resource_group_name, name, premier_add_on_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a premier add-on from an app.
Delete a premier add-on from an app.
resource belongs. will be added to the HTTP request.
11870 11871 11872 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11870 def delete_premier_add_on_with_http_info(resource_group_name, name, premier_add_on_name, custom_headers:nil) delete_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers:custom_headers).value! end |
#delete_process(resource_group_name, name, process_id, custom_headers: nil) ⇒ Object
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
12180 12181 12182 12183 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12180 def delete_process(resource_group_name, name, process_id, custom_headers:nil) response = delete_process_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! nil end |
#delete_process_async(resource_group_name, name, process_id, custom_headers: nil) ⇒ Concurrent::Promise
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
resource belongs. to the HTTP request.
12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12221 def delete_process_async(resource_group_name, name, process_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/processes/{processId}' 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,'processId' => process_id,'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(: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 == 204 || status_code == 404 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 |
#delete_process_slot(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ Object
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
26537 26538 26539 26540 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26537 def delete_process_slot(resource_group_name, name, process_id, slot, custom_headers:nil) response = delete_process_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! nil end |
#delete_process_slot_async(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. to the HTTP request.
26582 26583 26584 26585 26586 26587 26588 26589 26590 26591 26592 26593 26594 26595 26596 26597 26598 26599 26600 26601 26602 26603 26604 26605 26606 26607 26608 26609 26610 26611 26612 26613 26614 26615 26616 26617 26618 26619 26620 26621 26622 26623 26624 26625 26626 26627 26628 26629 26630 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26582 def delete_process_slot_async(resource_group_name, name, process_id, slot, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/processes/{processId}' 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,'processId' => process_id,'slot' => slot,'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(: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 == 204 || status_code == 404 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 |
#delete_process_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
26560 26561 26562 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26560 def delete_process_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers:nil) delete_process_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! end |
#delete_process_with_http_info(resource_group_name, name, process_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
12201 12202 12203 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12201 def delete_process_with_http_info(resource_group_name, name, process_id, custom_headers:nil) delete_process_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! end |
#delete_public_certificate(resource_group_name, name, public_certificate_name, custom_headers: nil) ⇒ Object
Deletes a hostname binding for an app.
Deletes a hostname binding for an app.
resource belongs. will be added to the HTTP request.
13224 13225 13226 13227 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13224 def delete_public_certificate(resource_group_name, name, public_certificate_name, custom_headers:nil) response = delete_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers:custom_headers).value! nil end |
#delete_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a hostname binding for an app.
Deletes a hostname binding for an app.
resource belongs. to the HTTP request.
13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13261 def delete_public_certificate_async(resource_group_name, name, public_certificate_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, 'public_certificate_name is nil' if public_certificate_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/sites/{name}/publicCertificates/{publicCertificateName}' 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,'publicCertificateName' => public_certificate_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(: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 == 200 || status_code == 204 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 |
#delete_public_certificate_slot(resource_group_name, name, slot, public_certificate_name, custom_headers: nil) ⇒ Object
Deletes a hostname binding for an app.
Deletes a hostname binding for an app.
resource belongs. the API will delete the binding for the production slot. will be added to the HTTP request.
27644 27645 27646 27647 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27644 def delete_public_certificate_slot(resource_group_name, name, slot, public_certificate_name, custom_headers:nil) response = delete_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers:custom_headers).value! nil end |
#delete_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a hostname binding for an app.
Deletes a hostname binding for an app.
resource belongs. the API will delete the binding for the production slot. to the HTTP request.
27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27685 def delete_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_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, 'slot is nil' if slot.nil? fail ArgumentError, 'public_certificate_name is nil' if public_certificate_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/sites/{name}/slots/{slot}/publicCertificates/{publicCertificateName}' 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,'slot' => slot,'publicCertificateName' => public_certificate_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(: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 == 200 || status_code == 204 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 |
#delete_public_certificate_slot_with_http_info(resource_group_name, name, slot, public_certificate_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a hostname binding for an app.
Deletes a hostname binding for an app.
resource belongs. the API will delete the binding for the production slot. will be added to the HTTP request.
27665 27666 27667 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27665 def delete_public_certificate_slot_with_http_info(resource_group_name, name, slot, public_certificate_name, custom_headers:nil) delete_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers:custom_headers).value! end |
#delete_public_certificate_with_http_info(resource_group_name, name, public_certificate_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a hostname binding for an app.
Deletes a hostname binding for an app.
resource belongs. will be added to the HTTP request.
13243 13244 13245 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13243 def delete_public_certificate_with_http_info(resource_group_name, name, public_certificate_name, custom_headers:nil) delete_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers:custom_headers).value! end |
#delete_relay_service_connection(resource_group_name, name, entity_name, custom_headers: nil) ⇒ Object
Deletes a relay service connection by its name.
Deletes a relay service connection by its name.
resource belongs. will be added to the HTTP request.
8561 8562 8563 8564 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8561 def delete_relay_service_connection(resource_group_name, name, entity_name, custom_headers:nil) response = delete_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers:custom_headers).value! nil end |
#delete_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a relay service connection by its name.
Deletes a relay service connection by its name.
resource belongs. to the HTTP request.
8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8598 def delete_relay_service_connection_async(resource_group_name, name, entity_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, 'entity_name is nil' if entity_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/sites/{name}/hybridconnection/{entityName}' 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,'entityName' => entity_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(: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 == 200 || status_code == 404 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 |
#delete_relay_service_connection_slot(resource_group_name, name, entity_name, slot, custom_headers: nil) ⇒ Object
Deletes a relay service connection by its name.
Deletes a relay service connection by its name.
resource belongs. the API will delete a hybrid connection for the production slot. will be added to the HTTP request.
22815 22816 22817 22818 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22815 def delete_relay_service_connection_slot(resource_group_name, name, entity_name, slot, custom_headers:nil) response = delete_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers:custom_headers).value! nil end |
#delete_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a relay service connection by its name.
Deletes a relay service connection by its name.
resource belongs. the API will delete a hybrid connection for the production slot. to the HTTP request.
22856 22857 22858 22859 22860 22861 22862 22863 22864 22865 22866 22867 22868 22869 22870 22871 22872 22873 22874 22875 22876 22877 22878 22879 22880 22881 22882 22883 22884 22885 22886 22887 22888 22889 22890 22891 22892 22893 22894 22895 22896 22897 22898 22899 22900 22901 22902 22903 22904 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22856 def delete_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, 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, 'entity_name is nil' if entity_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/hybridconnection/{entityName}' 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,'entityName' => entity_name,'slot' => slot,'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(: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 == 200 || status_code == 404 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 |
#delete_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a relay service connection by its name.
Deletes a relay service connection by its name.
resource belongs. the API will delete a hybrid connection for the production slot. will be added to the HTTP request.
22836 22837 22838 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22836 def delete_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, slot, custom_headers:nil) delete_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers:custom_headers).value! end |
#delete_relay_service_connection_with_http_info(resource_group_name, name, entity_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a relay service connection by its name.
Deletes a relay service connection by its name.
resource belongs. will be added to the HTTP request.
8580 8581 8582 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8580 def delete_relay_service_connection_with_http_info(resource_group_name, name, entity_name, custom_headers:nil) delete_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers:custom_headers).value! end |
#delete_site_extension(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ Object
Remove a site extension from a web site, or a deployment slot.
Remove a site extension from a web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
13985 13986 13987 13988 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13985 def delete_site_extension(resource_group_name, name, site_extension_id, custom_headers:nil) response = delete_site_extension_async(resource_group_name, name, site_extension_id, custom_headers:custom_headers).value! nil end |
#delete_site_extension_async(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ Concurrent::Promise
Remove a site extension from a web site, or a deployment slot.
Remove a site extension from a web site, or a deployment slot.
resource belongs. to the HTTP request.
14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14022 def delete_site_extension_async(resource_group_name, name, site_extension_id, 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, 'site_extension_id is nil' if site_extension_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/siteextensions/{siteExtensionId}' 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,'siteExtensionId' => site_extension_id,'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(: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 == 204 || status_code == 404 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 |
#delete_site_extension_slot(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ Object
Remove a site extension from a web site, or a deployment slot.
Remove a site extension from a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
28455 28456 28457 28458 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28455 def delete_site_extension_slot(resource_group_name, name, site_extension_id, slot, custom_headers:nil) response = delete_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers:custom_headers).value! nil end |
#delete_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Remove a site extension from a web site, or a deployment slot.
Remove a site extension from a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
28496 28497 28498 28499 28500 28501 28502 28503 28504 28505 28506 28507 28508 28509 28510 28511 28512 28513 28514 28515 28516 28517 28518 28519 28520 28521 28522 28523 28524 28525 28526 28527 28528 28529 28530 28531 28532 28533 28534 28535 28536 28537 28538 28539 28540 28541 28542 28543 28544 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28496 def delete_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, 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, 'site_extension_id is nil' if site_extension_id.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/siteextensions/{siteExtensionId}' 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,'siteExtensionId' => site_extension_id,'slot' => slot,'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(: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 == 204 || status_code == 404 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 |
#delete_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Remove a site extension from a web site, or a deployment slot.
Remove a site extension from a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
28476 28477 28478 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28476 def delete_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, custom_headers:nil) delete_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers:custom_headers).value! end |
#delete_site_extension_with_http_info(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Remove a site extension from a web site, or a deployment slot.
Remove a site extension from a web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
14004 14005 14006 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14004 def delete_site_extension_with_http_info(resource_group_name, name, site_extension_id, custom_headers:nil) delete_site_extension_async(resource_group_name, name, site_extension_id, custom_headers:custom_headers).value! end |
#delete_slot(resource_group_name, name, slot, delete_metrics: nil, delete_empty_server_farm: nil, skip_dns_registration: nil, custom_headers: nil) ⇒ Object
Deletes a web, mobile, or API app, or one of the deployment slots.
Deletes a web, mobile, or API app, or one of the deployment slots.
resource belongs. API deletes the production slot. plan will be empty after app deletion and you want to delete the empty App Service plan. By default, the empty App Service plan is not deleted. will be added to the HTTP request.
14385 14386 14387 14388 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14385 def delete_slot(resource_group_name, name, slot, delete_metrics:nil, delete_empty_server_farm:nil, skip_dns_registration:nil, custom_headers:nil) response = delete_slot_async(resource_group_name, name, slot, delete_metrics:delete_metrics, delete_empty_server_farm:delete_empty_server_farm, skip_dns_registration:skip_dns_registration, custom_headers:custom_headers).value! nil end |
#delete_slot_async(resource_group_name, name, slot, delete_metrics: nil, delete_empty_server_farm: nil, skip_dns_registration: nil, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a web, mobile, or API app, or one of the deployment slots.
Deletes a web, mobile, or API app, or one of the deployment slots.
resource belongs. API deletes the production slot. plan will be empty after app deletion and you want to delete the empty App Service plan. By default, the empty App Service plan is not deleted. to the HTTP request.
14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14434 def delete_slot_async(resource_group_name, name, slot, delete_metrics:nil, delete_empty_server_farm:nil, skip_dns_registration: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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}' 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,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'deleteMetrics' => delete_metrics,'deleteEmptyServerFarm' => delete_empty_server_farm,'skipDnsRegistration' => skip_dns_registration,'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 == 200 || status_code == 204 || status_code == 404 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 |
#delete_slot_with_http_info(resource_group_name, name, slot, delete_metrics: nil, delete_empty_server_farm: nil, skip_dns_registration: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a web, mobile, or API app, or one of the deployment slots.
Deletes a web, mobile, or API app, or one of the deployment slots.
resource belongs. API deletes the production slot. plan will be empty after app deletion and you want to delete the empty App Service plan. By default, the empty App Service plan is not deleted. will be added to the HTTP request.
14410 14411 14412 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14410 def delete_slot_with_http_info(resource_group_name, name, slot, delete_metrics:nil, delete_empty_server_farm:nil, skip_dns_registration:nil, custom_headers:nil) delete_slot_async(resource_group_name, name, slot, delete_metrics:delete_metrics, delete_empty_server_farm:delete_empty_server_farm, skip_dns_registration:skip_dns_registration, custom_headers:custom_headers).value! end |
#delete_source_control(resource_group_name, name, custom_headers: nil) ⇒ Object
Deletes the source control configuration of an app.
Deletes the source control configuration of an app.
resource belongs. will be added to the HTTP request.
32213 32214 32215 32216 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32213 def delete_source_control(resource_group_name, name, custom_headers:nil) response = delete_source_control_async(resource_group_name, name, custom_headers:custom_headers).value! nil end |
#delete_source_control_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes the source control configuration of an app.
Deletes the source control configuration of an app.
resource belongs. to the HTTP request.
32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278 32279 32280 32281 32282 32283 32284 32285 32286 32287 32288 32289 32290 32291 32292 32293 32294 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32248 def delete_source_control_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/sites/{name}/sourcecontrols/web' 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(: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 == 200 || status_code == 202 || status_code == 404 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 |
#delete_source_control_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Object
Deletes the source control configuration of an app.
Deletes the source control configuration of an app.
resource belongs. the API will delete the source control configuration for the production slot. will be added to the HTTP request.
29034 29035 29036 29037 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29034 def delete_source_control_slot(resource_group_name, name, slot, custom_headers:nil) response = delete_source_control_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! nil end |
#delete_source_control_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Deletes the source control configuration of an app.
Deletes the source control configuration of an app.
resource belongs. the API will delete the source control configuration for the production slot. to the HTTP request.
29073 29074 29075 29076 29077 29078 29079 29080 29081 29082 29083 29084 29085 29086 29087 29088 29089 29090 29091 29092 29093 29094 29095 29096 29097 29098 29099 29100 29101 29102 29103 29104 29105 29106 29107 29108 29109 29110 29111 29112 29113 29114 29115 29116 29117 29118 29119 29120 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29073 def delete_source_control_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/sourcecontrols/web' 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,'slot' => slot,'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(: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 == 200 || status_code == 202 || status_code == 404 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 |
#delete_source_control_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes the source control configuration of an app.
Deletes the source control configuration of an app.
resource belongs. the API will delete the source control configuration for the production slot. will be added to the HTTP request.
29054 29055 29056 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29054 def delete_source_control_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) delete_source_control_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#delete_source_control_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes the source control configuration of an app.
Deletes the source control configuration of an app.
resource belongs. will be added to the HTTP request.
32231 32232 32233 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32231 def delete_source_control_with_http_info(resource_group_name, name, custom_headers:nil) delete_source_control_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#delete_triggered_web_job(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Object
Delete a triggered web job by its ID for an app, or a deployment slot.
Delete a triggered web job by its ID for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
33035 33036 33037 33038 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33035 def delete_triggered_web_job(resource_group_name, name, web_job_name, custom_headers:nil) response = delete_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! nil end |
#delete_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
Delete a triggered web job by its ID for an app, or a deployment slot.
Delete a triggered web job by its ID for an app, or a deployment slot.
resource belongs. to the HTTP request.
33072 33073 33074 33075 33076 33077 33078 33079 33080 33081 33082 33083 33084 33085 33086 33087 33088 33089 33090 33091 33092 33093 33094 33095 33096 33097 33098 33099 33100 33101 33102 33103 33104 33105 33106 33107 33108 33109 33110 33111 33112 33113 33114 33115 33116 33117 33118 33119 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33072 def delete_triggered_web_job_async(resource_group_name, name, web_job_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, 'web_job_name is nil' if web_job_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/sites/{name}/triggeredwebjobs/{webJobName}' 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,'webJobName' => web_job_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(: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 == 200 || status_code == 204 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 |
#delete_triggered_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Object
Delete a triggered web job by its ID for an app, or a deployment slot.
Delete a triggered web job by its ID for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
29912 29913 29914 29915 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29912 def delete_triggered_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers:nil) response = delete_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! nil end |
#delete_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Delete a triggered web job by its ID for an app, or a deployment slot.
Delete a triggered web job by its ID for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
29953 29954 29955 29956 29957 29958 29959 29960 29961 29962 29963 29964 29965 29966 29967 29968 29969 29970 29971 29972 29973 29974 29975 29976 29977 29978 29979 29980 29981 29982 29983 29984 29985 29986 29987 29988 29989 29990 29991 29992 29993 29994 29995 29996 29997 29998 29999 30000 30001 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29953 def delete_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, 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, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}' 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,'webJobName' => web_job_name,'slot' => slot,'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(: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 == 200 || status_code == 204 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 |
#delete_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a triggered web job by its ID for an app, or a deployment slot.
Delete a triggered web job by its ID for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
29933 29934 29935 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29933 def delete_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers:nil) delete_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! end |
#delete_triggered_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete a triggered web job by its ID for an app, or a deployment slot.
Delete a triggered web job by its ID for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
33054 33055 33056 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33054 def delete_triggered_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers:nil) delete_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! end |
#delete_vnet_connection(resource_group_name, name, vnet_name, custom_headers: nil) ⇒ Object
Deletes a connection from an app (or deployment slot to a named virtual network.
Deletes a connection from an app (or deployment slot to a named virtual network.
resource belongs. will be added to the HTTP request.
33952 33953 33954 33955 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33952 def delete_vnet_connection(resource_group_name, name, vnet_name, custom_headers:nil) response = delete_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers:custom_headers).value! nil end |
#delete_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a connection from an app (or deployment slot to a named virtual network.
Deletes a connection from an app (or deployment slot to a named virtual network.
resource belongs. to the HTTP request.
33993 33994 33995 33996 33997 33998 33999 34000 34001 34002 34003 34004 34005 34006 34007 34008 34009 34010 34011 34012 34013 34014 34015 34016 34017 34018 34019 34020 34021 34022 34023 34024 34025 34026 34027 34028 34029 34030 34031 34032 34033 34034 34035 34036 34037 34038 34039 34040 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33993 def delete_vnet_connection_async(resource_group_name, name, vnet_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, 'vnet_name is nil' if vnet_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/sites/{name}/virtualNetworkConnections/{vnetName}' 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,'vnetName' => vnet_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(: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 == 200 || status_code == 404 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 |
#delete_vnet_connection_slot(resource_group_name, name, vnet_name, slot, custom_headers: nil) ⇒ Object
Deletes a connection from an app (or deployment slot to a named virtual network.
Deletes a connection from an app (or deployment slot to a named virtual network.
resource belongs. the API will delete the connection for the production slot. will be added to the HTTP request.
30885 30886 30887 30888 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30885 def delete_vnet_connection_slot(resource_group_name, name, vnet_name, slot, custom_headers:nil) response = delete_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers:custom_headers).value! nil end |
#delete_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a connection from an app (or deployment slot to a named virtual network.
Deletes a connection from an app (or deployment slot to a named virtual network.
resource belongs. the API will delete the connection for the production slot. to the HTTP request.
30930 30931 30932 30933 30934 30935 30936 30937 30938 30939 30940 30941 30942 30943 30944 30945 30946 30947 30948 30949 30950 30951 30952 30953 30954 30955 30956 30957 30958 30959 30960 30961 30962 30963 30964 30965 30966 30967 30968 30969 30970 30971 30972 30973 30974 30975 30976 30977 30978 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30930 def delete_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, 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, 'vnet_name is nil' if vnet_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}' 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,'vnetName' => vnet_name,'slot' => slot,'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(: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 == 200 || status_code == 404 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 |
#delete_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a connection from an app (or deployment slot to a named virtual network.
Deletes a connection from an app (or deployment slot to a named virtual network.
resource belongs. the API will delete the connection for the production slot. will be added to the HTTP request.
30908 30909 30910 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30908 def delete_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, slot, custom_headers:nil) delete_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers:custom_headers).value! end |
#delete_vnet_connection_with_http_info(resource_group_name, name, vnet_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a connection from an app (or deployment slot to a named virtual network.
Deletes a connection from an app (or deployment slot to a named virtual network.
resource belongs. will be added to the HTTP request.
33973 33974 33975 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33973 def delete_vnet_connection_with_http_info(resource_group_name, name, vnet_name, custom_headers:nil) delete_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers:custom_headers).value! end |
#delete_with_http_info(resource_group_name, name, delete_metrics: nil, delete_empty_server_farm: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a web, mobile, or API app, or one of the deployment slots.
Deletes a web, mobile, or API app, or one of the deployment slots.
resource belongs. plan will be empty after app deletion and you want to delete the empty App Service plan. By default, the empty App Service plan is not deleted. will be added to the HTTP request.
425 426 427 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 425 def delete_with_http_info(resource_group_name, name, delete_metrics:nil, delete_empty_server_farm:nil, custom_headers:nil) delete_async(resource_group_name, name, delete_metrics:delete_metrics, delete_empty_server_farm:delete_empty_server_farm, custom_headers:custom_headers).value! end |
#discover_restore(resource_group_name, name, request, custom_headers: nil) ⇒ RestoreRequest
Discovers an existing app backup that can be restored from a blob in Azure storage.
Discovers an existing app backup that can be restored from a blob in Azure storage.
resource belongs. storage URL and blog name for discovery of backup. will be added to the HTTP request.
1100 1101 1102 1103 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1100 def discover_restore(resource_group_name, name, request, custom_headers:nil) response = discover_restore_async(resource_group_name, name, request, custom_headers:custom_headers).value! response.body unless response.nil? end |
#discover_restore_async(resource_group_name, name, request, custom_headers: nil) ⇒ Concurrent::Promise
Discovers an existing app backup that can be restored from a blob in Azure storage.
Discovers an existing app backup that can be restored from a blob in Azure storage.
resource belongs. storage URL and blog name for discovery of backup. to the HTTP request.
1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 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 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1143 def discover_restore_async(resource_group_name, name, request, 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, 'request is nil' if request.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_08_01::Models::RestoreRequest.mapper() request_content = @client.serialize(request_mapper, request) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups/discover' 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 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_08_01::Models::RestoreRequest.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 |
#discover_restore_slot(resource_group_name, name, request, slot, custom_headers: nil) ⇒ RestoreRequest
Discovers an existing app backup that can be restored from a blob in Azure storage.
Discovers an existing app backup that can be restored from a blob in Azure storage.
resource belongs. storage URL and blog name for discovery of backup. the API will perform discovery for the production slot. will be added to the HTTP request.
15153 15154 15155 15156 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15153 def discover_restore_slot(resource_group_name, name, request, slot, custom_headers:nil) response = discover_restore_slot_async(resource_group_name, name, request, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#discover_restore_slot_async(resource_group_name, name, request, slot, custom_headers: nil) ⇒ Concurrent::Promise
Discovers an existing app backup that can be restored from a blob in Azure storage.
Discovers an existing app backup that can be restored from a blob in Azure storage.
resource belongs. storage URL and blog name for discovery of backup. the API will perform discovery for the production slot. to the HTTP request.
15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15200 def discover_restore_slot_async(resource_group_name, name, request, slot, 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, 'request is nil' if request.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::RestoreRequest.mapper() request_content = @client.serialize(request_mapper, request) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/discover' 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,'slot' => slot,'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 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_08_01::Models::RestoreRequest.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 |
#discover_restore_slot_with_http_info(resource_group_name, name, request, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Discovers an existing app backup that can be restored from a blob in Azure storage.
Discovers an existing app backup that can be restored from a blob in Azure storage.
resource belongs. storage URL and blog name for discovery of backup. the API will perform discovery for the production slot. will be added to the HTTP request.
15177 15178 15179 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15177 def discover_restore_slot_with_http_info(resource_group_name, name, request, slot, custom_headers:nil) discover_restore_slot_async(resource_group_name, name, request, slot, custom_headers:custom_headers).value! end |
#discover_restore_with_http_info(resource_group_name, name, request, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Discovers an existing app backup that can be restored from a blob in Azure storage.
Discovers an existing app backup that can be restored from a blob in Azure storage.
resource belongs. storage URL and blog name for discovery of backup. will be added to the HTTP request.
1122 1123 1124 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1122 def discover_restore_with_http_info(resource_group_name, name, request, custom_headers:nil) discover_restore_async(resource_group_name, name, request, custom_headers:custom_headers).value! end |
#generate_new_site_publishing_password(resource_group_name, name, custom_headers: nil) ⇒ Object
Generates a new publishing password for an app (or deployment slot, if specified).
Generates a new publishing password for an app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
11186 11187 11188 11189 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11186 def generate_new_site_publishing_password(resource_group_name, name, custom_headers:nil) response = generate_new_site_publishing_password_async(resource_group_name, name, custom_headers:custom_headers).value! nil end |
#generate_new_site_publishing_password_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Generates a new publishing password for an app (or deployment slot, if specified).
Generates a new publishing password for an app (or deployment slot, if specified).
resource belongs. to the HTTP request.
11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11225 def generate_new_site_publishing_password_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/sites/{name}/newpassword' 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 == 204 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 |
#generate_new_site_publishing_password_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Object
Generates a new publishing password for an app (or deployment slot, if specified).
Generates a new publishing password for an app (or deployment slot, if specified).
resource belongs. the API generate a new publishing password for the production slot. will be added to the HTTP request.
25480 25481 25482 25483 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25480 def generate_new_site_publishing_password_slot(resource_group_name, name, slot, custom_headers:nil) response = generate_new_site_publishing_password_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! nil end |
#generate_new_site_publishing_password_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Generates a new publishing password for an app (or deployment slot, if specified).
Generates a new publishing password for an app (or deployment slot, if specified).
resource belongs. the API generate a new publishing password for the production slot. to the HTTP request.
25523 25524 25525 25526 25527 25528 25529 25530 25531 25532 25533 25534 25535 25536 25537 25538 25539 25540 25541 25542 25543 25544 25545 25546 25547 25548 25549 25550 25551 25552 25553 25554 25555 25556 25557 25558 25559 25560 25561 25562 25563 25564 25565 25566 25567 25568 25569 25570 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25523 def generate_new_site_publishing_password_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/newpassword' 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,'slot' => slot,'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 == 204 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 |
#generate_new_site_publishing_password_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Generates a new publishing password for an app (or deployment slot, if specified).
Generates a new publishing password for an app (or deployment slot, if specified).
resource belongs. the API generate a new publishing password for the production slot. will be added to the HTTP request.
25502 25503 25504 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25502 def generate_new_site_publishing_password_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) generate_new_site_publishing_password_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#generate_new_site_publishing_password_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Generates a new publishing password for an app (or deployment slot, if specified).
Generates a new publishing password for an app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
11206 11207 11208 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11206 def generate_new_site_publishing_password_with_http_info(resource_group_name, name, custom_headers:nil) generate_new_site_publishing_password_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#get(resource_group_name, name, custom_headers: nil) ⇒ Site
Gets the details of a web, mobile, or API app.
Gets the details of a web, mobile, or API app.
resource belongs. will be added to the HTTP request.
240 241 242 243 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 240 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
Gets the details of a web, mobile, or API app.
Gets the details of a web, mobile, or API app.
resource belongs. to the HTTP request.
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 323 324 325 326 327 328 329 330 331 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 275 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/sites/{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 || status_code == 404 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_08_01::Models::Site.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_auth_settings(resource_group_name, name, custom_headers: nil) ⇒ SiteAuthSettings
Gets the Authentication/Authorization settings of an app.
Gets the Authentication/Authorization settings of an app.
resource belongs. will be added to the HTTP request.
2069 2070 2071 2072 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2069 def get_auth_settings(resource_group_name, name, custom_headers:nil) response = get_auth_settings_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_auth_settings_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the Authentication/Authorization settings of an app.
Gets the Authentication/Authorization settings of an app.
resource belongs. to the HTTP request.
2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2104 def get_auth_settings_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/sites/{name}/config/authsettings/list' 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 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_08_01::Models::SiteAuthSettings.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_auth_settings_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ SiteAuthSettings
Gets the Authentication/Authorization settings of an app.
Gets the Authentication/Authorization settings of an app.
resource belongs. the API will get the settings for the production slot. will be added to the HTTP request.
16182 16183 16184 16185 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16182 def get_auth_settings_slot(resource_group_name, name, slot, custom_headers:nil) response = get_auth_settings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_auth_settings_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the Authentication/Authorization settings of an app.
Gets the Authentication/Authorization settings of an app.
resource belongs. the API will get the settings for the production slot. to the HTTP request.
16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16221 def get_auth_settings_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/config/authsettings/list' 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,'slot' => slot,'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 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_08_01::Models::SiteAuthSettings.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_auth_settings_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the Authentication/Authorization settings of an app.
Gets the Authentication/Authorization settings of an app.
resource belongs. the API will get the settings for the production slot. will be added to the HTTP request.
16202 16203 16204 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16202 def get_auth_settings_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) get_auth_settings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#get_auth_settings_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the Authentication/Authorization settings of an app.
Gets the Authentication/Authorization settings of an app.
resource belongs. will be added to the HTTP request.
2087 2088 2089 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2087 def get_auth_settings_with_http_info(resource_group_name, name, custom_headers:nil) get_auth_settings_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#get_backup_configuration(resource_group_name, name, custom_headers: nil) ⇒ BackupRequest
Gets the backup configuration of an app.
Gets the backup configuration of an app.
resource belongs. will be added to the HTTP request.
2387 2388 2389 2390 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2387 def get_backup_configuration(resource_group_name, name, custom_headers:nil) response = get_backup_configuration_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_backup_configuration_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the backup configuration of an app.
Gets the backup configuration of an app.
resource belongs. to the HTTP request.
2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2422 def get_backup_configuration_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/sites/{name}/config/backup/list' 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 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_08_01::Models::BackupRequest.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_backup_configuration_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ BackupRequest
Gets the backup configuration of an app.
Gets the backup configuration of an app.
resource belongs. the API will get the backup configuration for the production slot. will be added to the HTTP request.
16521 16522 16523 16524 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16521 def get_backup_configuration_slot(resource_group_name, name, slot, custom_headers:nil) response = get_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the backup configuration of an app.
Gets the backup configuration of an app.
resource belongs. the API will get the backup configuration for the production slot. to the HTTP request.
16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16560 def get_backup_configuration_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/config/backup/list' 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,'slot' => slot,'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 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_08_01::Models::BackupRequest.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_backup_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the backup configuration of an app.
Gets the backup configuration of an app.
resource belongs. the API will get the backup configuration for the production slot. will be added to the HTTP request.
16541 16542 16543 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16541 def get_backup_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) get_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#get_backup_configuration_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the backup configuration of an app.
Gets the backup configuration of an app.
resource belongs. will be added to the HTTP request.
2405 2406 2407 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2405 def get_backup_configuration_with_http_info(resource_group_name, name, custom_headers:nil) get_backup_configuration_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#get_backup_status(resource_group_name, name, backup_id, custom_headers: nil) ⇒ BackupItem
Gets a backup of an app by its ID.
Gets a backup of an app by its ID.
resource belongs. will be added to the HTTP request.
1223 1224 1225 1226 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1223 def get_backup_status(resource_group_name, name, backup_id, custom_headers:nil) response = get_backup_status_async(resource_group_name, name, backup_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_backup_status_async(resource_group_name, name, backup_id, custom_headers: nil) ⇒ Concurrent::Promise
Gets a backup of an app by its ID.
Gets a backup of an app by its ID.
resource belongs. to the HTTP request.
1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1260 def get_backup_status_async(resource_group_name, name, backup_id, 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, 'backup_id is nil' if backup_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/backups/{backupId}' 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,'backupId' => backup_id,'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_08_01::Models::BackupItem.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_backup_status_slot(resource_group_name, name, backup_id, slot, custom_headers: nil) ⇒ BackupItem
Gets a backup of an app by its ID.
Gets a backup of an app by its ID.
resource belongs. the API will get a backup of the production slot. will be added to the HTTP request.
15283 15284 15285 15286 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15283 def get_backup_status_slot(resource_group_name, name, backup_id, slot, custom_headers:nil) response = get_backup_status_slot_async(resource_group_name, name, backup_id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_backup_status_slot_async(resource_group_name, name, backup_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a backup of an app by its ID.
Gets a backup of an app by its ID.
resource belongs. the API will get a backup of the production slot. to the HTTP request.
15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15324 def get_backup_status_slot_async(resource_group_name, name, backup_id, slot, 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, 'backup_id is nil' if backup_id.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/backups/{backupId}' 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,'backupId' => backup_id,'slot' => slot,'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_08_01::Models::BackupItem.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_backup_status_slot_with_http_info(resource_group_name, name, backup_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a backup of an app by its ID.
Gets a backup of an app by its ID.
resource belongs. the API will get a backup of the production slot. will be added to the HTTP request.
15304 15305 15306 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15304 def get_backup_status_slot_with_http_info(resource_group_name, name, backup_id, slot, custom_headers:nil) get_backup_status_slot_async(resource_group_name, name, backup_id, slot, custom_headers:custom_headers).value! end |
#get_backup_status_with_http_info(resource_group_name, name, backup_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a backup of an app by its ID.
Gets a backup of an app by its ID.
resource belongs. will be added to the HTTP request.
1242 1243 1244 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1242 def get_backup_status_with_http_info(resource_group_name, name, backup_id, custom_headers:nil) get_backup_status_async(resource_group_name, name, backup_id, custom_headers:custom_headers).value! end |
#get_configuration(resource_group_name, name, custom_headers: nil) ⇒ SiteConfigResource
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
resource belongs. will be added to the HTTP request.
3680 3681 3682 3683 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3680 def get_configuration(resource_group_name, name, custom_headers:nil) response = get_configuration_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_configuration_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
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 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3719 def get_configuration_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/sites/{name}/config/web' 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_08_01::Models::SiteConfigResource.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_configuration_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ SiteConfigResource
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
resource belongs. the API will return configuration for the production slot. will be added to the HTTP request.
17643 17644 17645 17646 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17643 def get_configuration_slot(resource_group_name, name, slot, custom_headers:nil) response = get_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_configuration_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
resource belongs. the API will return configuration for the production slot. to the HTTP request.
17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17686 def get_configuration_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/config/web' 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,'slot' => slot,'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_08_01::Models::SiteConfigResource.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_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
resource belongs. the API will return configuration for the production slot. will be added to the HTTP request.
17665 17666 17667 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17665 def get_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) get_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#get_configuration_snapshot(resource_group_name, name, snapshot_id, custom_headers: nil) ⇒ SiteConfigResource
Gets a snapshot of the configuration of an app at a previous point in time.
Gets a snapshot of the configuration of an app at a previous point in time.
resource belongs. will be added to the HTTP request.
4143 4144 4145 4146 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4143 def get_configuration_snapshot(resource_group_name, name, snapshot_id, custom_headers:nil) response = get_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers: nil) ⇒ Concurrent::Promise
Gets a snapshot of the configuration of an app at a previous point in time.
Gets a snapshot of the configuration of an app at a previous point in time.
resource belongs. to the HTTP request.
4180 4181 4182 4183 4184 4185 4186 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 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4180 def get_configuration_snapshot_async(resource_group_name, name, snapshot_id, 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, 'snapshot_id is nil' if snapshot_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/config/web/snapshots/{snapshotId}' 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,'snapshotId' => snapshot_id,'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_08_01::Models::SiteConfigResource.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_configuration_snapshot_slot(resource_group_name, name, snapshot_id, slot, custom_headers: nil) ⇒ SiteConfigResource
Gets a snapshot of the configuration of an app at a previous point in time.
Gets a snapshot of the configuration of an app at a previous point in time.
resource belongs. the API will return configuration for the production slot. will be added to the HTTP request.
18134 18135 18136 18137 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18134 def get_configuration_snapshot_slot(resource_group_name, name, snapshot_id, slot, custom_headers:nil) response = get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a snapshot of the configuration of an app at a previous point in time.
Gets a snapshot of the configuration of an app at a previous point in time.
resource belongs. the API will return configuration for the production slot. to the HTTP request.
18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18175 def get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, 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, 'snapshot_id is nil' if snapshot_id.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/config/web/snapshots/{snapshotId}' 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,'snapshotId' => snapshot_id,'slot' => slot,'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_08_01::Models::SiteConfigResource.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_configuration_snapshot_slot_with_http_info(resource_group_name, name, snapshot_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a snapshot of the configuration of an app at a previous point in time.
Gets a snapshot of the configuration of an app at a previous point in time.
resource belongs. the API will return configuration for the production slot. will be added to the HTTP request.
18155 18156 18157 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18155 def get_configuration_snapshot_slot_with_http_info(resource_group_name, name, snapshot_id, slot, custom_headers:nil) get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers:custom_headers).value! end |
#get_configuration_snapshot_with_http_info(resource_group_name, name, snapshot_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a snapshot of the configuration of an app at a previous point in time.
Gets a snapshot of the configuration of an app at a previous point in time.
resource belongs. will be added to the HTTP request.
4162 4163 4164 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4162 def get_configuration_snapshot_with_http_info(resource_group_name, name, snapshot_id, custom_headers:nil) get_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers:custom_headers).value! end |
#get_configuration_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
resource belongs. will be added to the HTTP request.
3700 3701 3702 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3700 def get_configuration_with_http_info(resource_group_name, name, custom_headers:nil) get_configuration_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#get_continuous_web_job(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ ContinuousWebJob
Gets a continuous web job by its ID for an app, or a deployment slot.
Gets a continuous web job by its ID for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
4684 4685 4686 4687 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4684 def get_continuous_web_job(resource_group_name, name, web_job_name, custom_headers:nil) response = get_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets a continuous web job by its ID for an app, or a deployment slot.
Gets a continuous web job by its ID for an app, or a deployment slot.
resource belongs. to the HTTP request.
4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4721 def get_continuous_web_job_async(resource_group_name, name, web_job_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, 'web_job_name is nil' if web_job_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/sites/{name}/continuouswebjobs/{webJobName}' 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,'webJobName' => web_job_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 || status_code == 404 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_08_01::Models::ContinuousWebJob.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_continuous_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ ContinuousWebJob
Gets a continuous web job by its ID for an app, or a deployment slot.
Gets a continuous web job by its ID for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
18710 18711 18712 18713 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18710 def get_continuous_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers:nil) response = get_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a continuous web job by its ID for an app, or a deployment slot.
Gets a continuous web job by its ID for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762 18763 18764 18765 18766 18767 18768 18769 18770 18771 18772 18773 18774 18775 18776 18777 18778 18779 18780 18781 18782 18783 18784 18785 18786 18787 18788 18789 18790 18791 18792 18793 18794 18795 18796 18797 18798 18799 18800 18801 18802 18803 18804 18805 18806 18807 18808 18809 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18751 def get_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, 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, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/continuouswebjobs/{webJobName}' 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,'webJobName' => web_job_name,'slot' => slot,'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 || status_code == 404 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_08_01::Models::ContinuousWebJob.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_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a continuous web job by its ID for an app, or a deployment slot.
Gets a continuous web job by its ID for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
18731 18732 18733 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18731 def get_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers:nil) get_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! end |
#get_continuous_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a continuous web job by its ID for an app, or a deployment slot.
Gets a continuous web job by its ID for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
4703 4704 4705 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4703 def get_continuous_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers:nil) get_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! end |
#get_deployment(resource_group_name, name, id, custom_headers: nil) ⇒ Deployment
Get a deployment by its ID for an app, or a deployment slot.
Get a deployment by its ID for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
5197 5198 5199 5200 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5197 def get_deployment(resource_group_name, name, id, custom_headers:nil) response = get_deployment_async(resource_group_name, name, id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_deployment_async(resource_group_name, name, id, custom_headers: nil) ⇒ Concurrent::Promise
Get a deployment by its ID for an app, or a deployment slot.
Get a deployment by its ID for an app, or a deployment slot.
resource belongs. to the HTTP request.
5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5234 def get_deployment_async(resource_group_name, name, id, 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, 'id is nil' if id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/deployments/{id}' 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,'id' => id,'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_08_01::Models::Deployment.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_deployment_slot(resource_group_name, name, id, slot, custom_headers: nil) ⇒ Deployment
Get a deployment by its ID for an app, or a deployment slot.
Get a deployment by its ID for an app, or a deployment slot.
resource belongs. the API gets a deployment for the production slot. will be added to the HTTP request.
19258 19259 19260 19261 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19258 def get_deployment_slot(resource_group_name, name, id, slot, custom_headers:nil) response = get_deployment_slot_async(resource_group_name, name, id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_deployment_slot_async(resource_group_name, name, id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get a deployment by its ID for an app, or a deployment slot.
Get a deployment by its ID for an app, or a deployment slot.
resource belongs. the API gets a deployment for the production slot. to the HTTP request.
19299 19300 19301 19302 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 19333 19334 19335 19336 19337 19338 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19299 def get_deployment_slot_async(resource_group_name, name, id, slot, 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, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/deployments/{id}' 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,'id' => id,'slot' => slot,'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_08_01::Models::Deployment.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_deployment_slot_with_http_info(resource_group_name, name, id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get a deployment by its ID for an app, or a deployment slot.
Get a deployment by its ID for an app, or a deployment slot.
resource belongs. the API gets a deployment for the production slot. will be added to the HTTP request.
19279 19280 19281 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19279 def get_deployment_slot_with_http_info(resource_group_name, name, id, slot, custom_headers:nil) get_deployment_slot_async(resource_group_name, name, id, slot, custom_headers:custom_headers).value! end |
#get_deployment_with_http_info(resource_group_name, name, id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get a deployment by its ID for an app, or a deployment slot.
Get a deployment by its ID for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
5216 5217 5218 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5216 def get_deployment_with_http_info(resource_group_name, name, id, custom_headers:nil) get_deployment_async(resource_group_name, name, id, custom_headers:custom_headers).value! end |
#get_diagnostic_logs_configuration(resource_group_name, name, custom_headers: nil) ⇒ SiteLogsConfig
Gets the logging configuration of an app.
Gets the logging configuration of an app.
resource belongs. will be added to the HTTP request.
2719 2720 2721 2722 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2719 def get_diagnostic_logs_configuration(resource_group_name, name, custom_headers:nil) response = get_diagnostic_logs_configuration_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_diagnostic_logs_configuration_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the logging configuration of an app.
Gets the logging configuration of an app.
resource belongs. to the HTTP request.
2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 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 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2754 def get_diagnostic_logs_configuration_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/sites/{name}/config/logs' 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_08_01::Models::SiteLogsConfig.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_diagnostic_logs_configuration_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ SiteLogsConfig
Gets the logging configuration of an app.
Gets the logging configuration of an app.
resource belongs. the API will get the logging configuration for the production slot. will be added to the HTTP request.
16874 16875 16876 16877 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16874 def get_diagnostic_logs_configuration_slot(resource_group_name, name, slot, custom_headers:nil) response = get_diagnostic_logs_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_diagnostic_logs_configuration_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the logging configuration of an app.
Gets the logging configuration of an app.
resource belongs. the API will get the logging configuration for the production slot. to the HTTP request.
16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16913 def get_diagnostic_logs_configuration_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/config/logs' 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,'slot' => slot,'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_08_01::Models::SiteLogsConfig.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_diagnostic_logs_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the logging configuration of an app.
Gets the logging configuration of an app.
resource belongs. the API will get the logging configuration for the production slot. will be added to the HTTP request.
16894 16895 16896 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16894 def get_diagnostic_logs_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) get_diagnostic_logs_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#get_diagnostic_logs_configuration_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the logging configuration of an app.
Gets the logging configuration of an app.
resource belongs. will be added to the HTTP request.
2737 2738 2739 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2737 def get_diagnostic_logs_configuration_with_http_info(resource_group_name, name, custom_headers:nil) get_diagnostic_logs_configuration_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#get_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, custom_headers: nil) ⇒ Identifier
Get domain ownership identifier for web app.
Get domain ownership identifier for web app.
resource belongs. identifier. will be added to the HTTP request.
5750 5751 5752 5753 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5750 def get_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, custom_headers:nil) response = get_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers: nil) ⇒ Concurrent::Promise
Get domain ownership identifier for web app.
Get domain ownership identifier for web app.
resource belongs. identifier. to the HTTP request.
5789 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 5840 5841 5842 5843 5844 5845 5846 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5789 def get_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_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, 'domain_ownership_identifier_name is nil' if domain_ownership_identifier_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/sites/{name}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}' 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,'domainOwnershipIdentifierName' => domain_ownership_identifier_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_08_01::Models::Identifier.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_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers: nil) ⇒ Identifier
Get domain ownership identifier for web app.
Get domain ownership identifier for web app.
resource belongs. identifier. the API will delete the binding for the production slot. will be added to the HTTP request.
19846 19847 19848 19849 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19846 def get_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:nil) response = get_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get domain ownership identifier for web app.
Get domain ownership identifier for web app.
resource belongs. identifier. the API will delete the binding for the production slot. to the HTTP request.
19889 19890 19891 19892 19893 19894 19895 19896 19897 19898 19899 19900 19901 19902 19903 19904 19905 19906 19907 19908 19909 19910 19911 19912 19913 19914 19915 19916 19917 19918 19919 19920 19921 19922 19923 19924 19925 19926 19927 19928 19929 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 19947 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19889 def get_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, 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, 'domain_ownership_identifier_name is nil' if domain_ownership_identifier_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}' 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,'domainOwnershipIdentifierName' => domain_ownership_identifier_name,'slot' => slot,'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_08_01::Models::Identifier.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_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get domain ownership identifier for web app.
Get domain ownership identifier for web app.
resource belongs. identifier. the API will delete the binding for the production slot. will be added to the HTTP request.
19868 19869 19870 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19868 def get_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:nil) get_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:custom_headers).value! end |
#get_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get domain ownership identifier for web app.
Get domain ownership identifier for web app.
resource belongs. identifier. will be added to the HTTP request.
5770 5771 5772 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5770 def get_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, custom_headers:nil) get_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers:custom_headers).value! end |
#get_function(resource_group_name, name, function_name, custom_headers: nil) ⇒ FunctionEnvelope
Get function information by its ID for web site, or a deployment slot.
Get function information by its ID for web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
6709 6710 6711 6712 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6709 def get_function(resource_group_name, name, function_name, custom_headers:nil) response = get_function_async(resource_group_name, name, function_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_function_async(resource_group_name, name, function_name, custom_headers: nil) ⇒ Concurrent::Promise
Get function information by its ID for web site, or a deployment slot.
Get function information by its ID for web site, or a deployment slot.
resource belongs. to the HTTP request.
6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 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 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6746 def get_function_async(resource_group_name, name, function_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, 'function_name is nil' if function_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/sites/{name}/functions/{functionName}' 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,'functionName' => function_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 || status_code == 404 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_08_01::Models::FunctionEnvelope.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_function_with_http_info(resource_group_name, name, function_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get function information by its ID for web site, or a deployment slot.
Get function information by its ID for web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
6728 6729 6730 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6728 def get_function_with_http_info(resource_group_name, name, function_name, custom_headers:nil) get_function_async(resource_group_name, name, function_name, custom_headers:custom_headers).value! end |
#get_functions_admin_token(resource_group_name, name, custom_headers: nil) ⇒ String
Fetch a short lived token that can be exchanged for a master key.
Fetch a short lived token that can be exchanged for a master key.
resource belongs. will be added to the HTTP request.
6595 6596 6597 6598 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6595 def get_functions_admin_token(resource_group_name, name, custom_headers:nil) response = get_functions_admin_token_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_functions_admin_token_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Fetch a short lived token that can be exchanged for a master key.
Fetch a short lived token that can be exchanged for a master key.
resource belongs. to the HTTP request.
6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 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 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6630 def get_functions_admin_token_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/sites/{name}/functions/admin/token' 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: 'String' } } 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_functions_admin_token_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ String
Fetch a short lived token that can be exchanged for a master key.
Fetch a short lived token that can be exchanged for a master key.
resource belongs. to production slot. will be added to the HTTP request.
20744 20745 20746 20747 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20744 def get_functions_admin_token_slot(resource_group_name, name, slot, custom_headers:nil) response = get_functions_admin_token_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_functions_admin_token_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Fetch a short lived token that can be exchanged for a master key.
Fetch a short lived token that can be exchanged for a master key.
resource belongs. to production slot. to the HTTP request.
20783 20784 20785 20786 20787 20788 20789 20790 20791 20792 20793 20794 20795 20796 20797 20798 20799 20800 20801 20802 20803 20804 20805 20806 20807 20808 20809 20810 20811 20812 20813 20814 20815 20816 20817 20818 20819 20820 20821 20822 20823 20824 20825 20826 20827 20828 20829 20830 20831 20832 20833 20834 20835 20836 20837 20838 20839 20840 20841 20842 20843 20844 20845 20846 20847 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20783 def get_functions_admin_token_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/functions/admin/token' 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,'slot' => slot,'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: 'String' } } 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_functions_admin_token_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Fetch a short lived token that can be exchanged for a master key.
Fetch a short lived token that can be exchanged for a master key.
resource belongs. to production slot. will be added to the HTTP request.
20764 20765 20766 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20764 def get_functions_admin_token_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) get_functions_admin_token_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#get_functions_admin_token_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Fetch a short lived token that can be exchanged for a master key.
Fetch a short lived token that can be exchanged for a master key.
resource belongs. will be added to the HTTP request.
6613 6614 6615 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6613 def get_functions_admin_token_with_http_info(resource_group_name, name, custom_headers:nil) get_functions_admin_token_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#get_host_name_binding(resource_group_name, name, host_name, custom_headers: nil) ⇒ HostNameBinding
Get the named hostname binding for an app (or deployment slot, if specified).
Get the named hostname binding for an app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
7184 7185 7186 7187 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7184 def get_host_name_binding(resource_group_name, name, host_name, custom_headers:nil) response = get_host_name_binding_async(resource_group_name, name, host_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_host_name_binding_async(resource_group_name, name, host_name, custom_headers: nil) ⇒ Concurrent::Promise
Get the named hostname binding for an app (or deployment slot, if specified).
Get the named hostname binding for an app (or deployment slot, if specified).
resource belongs. to the HTTP request.
7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7221 def get_host_name_binding_async(resource_group_name, name, host_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, 'host_name is nil' if host_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/sites/{name}/hostNameBindings/{hostName}' 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,'hostName' => host_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_08_01::Models::HostNameBinding.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_host_name_binding_slot(resource_group_name, name, slot, host_name, custom_headers: nil) ⇒ HostNameBinding
Get the named hostname binding for an app (or deployment slot, if specified).
Get the named hostname binding for an app (or deployment slot, if specified).
resource belongs. the API the named binding for the production slot. will be added to the HTTP request.
21372 21373 21374 21375 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21372 def get_host_name_binding_slot(resource_group_name, name, slot, host_name, custom_headers:nil) response = get_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers: nil) ⇒ Concurrent::Promise
Get the named hostname binding for an app (or deployment slot, if specified).
Get the named hostname binding for an app (or deployment slot, if specified).
resource belongs. the API the named binding for the production slot. to the HTTP request.
21413 21414 21415 21416 21417 21418 21419 21420 21421 21422 21423 21424 21425 21426 21427 21428 21429 21430 21431 21432 21433 21434 21435 21436 21437 21438 21439 21440 21441 21442 21443 21444 21445 21446 21447 21448 21449 21450 21451 21452 21453 21454 21455 21456 21457 21458 21459 21460 21461 21462 21463 21464 21465 21466 21467 21468 21469 21470 21471 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21413 def get_host_name_binding_slot_async(resource_group_name, name, slot, host_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, 'slot is nil' if slot.nil? fail ArgumentError, 'host_name is nil' if host_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/sites/{name}/slots/{slot}/hostNameBindings/{hostName}' 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,'slot' => slot,'hostName' => host_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_08_01::Models::HostNameBinding.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_host_name_binding_slot_with_http_info(resource_group_name, name, slot, host_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the named hostname binding for an app (or deployment slot, if specified).
Get the named hostname binding for an app (or deployment slot, if specified).
resource belongs. the API the named binding for the production slot. will be added to the HTTP request.
21393 21394 21395 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21393 def get_host_name_binding_slot_with_http_info(resource_group_name, name, slot, host_name, custom_headers:nil) get_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers:custom_headers).value! end |
#get_host_name_binding_with_http_info(resource_group_name, name, host_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the named hostname binding for an app (or deployment slot, if specified).
Get the named hostname binding for an app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
7203 7204 7205 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7203 def get_host_name_binding_with_http_info(resource_group_name, name, host_name, custom_headers:nil) get_host_name_binding_async(resource_group_name, name, host_name, custom_headers:custom_headers).value! end |
#get_hybrid_connection(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ HybridConnection
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
resource belongs. will be added to the HTTP request.
7518 7519 7520 7521 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7518 def get_hybrid_connection(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) response = get_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ Concurrent::Promise
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
resource belongs. to the HTTP request.
7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7557 def get_hybrid_connection_async(resource_group_name, name, namespace_name, relay_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, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'relay_name is nil' if relay_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/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' 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,'namespaceName' => namespace_name,'relayName' => relay_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_08_01::Models::HybridConnection.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_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ HybridConnection
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
resource belongs. will be added to the HTTP request.
21726 21727 21728 21729 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21726 def get_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:nil) response = get_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
resource belongs. to the HTTP request.
21767 21768 21769 21770 21771 21772 21773 21774 21775 21776 21777 21778 21779 21780 21781 21782 21783 21784 21785 21786 21787 21788 21789 21790 21791 21792 21793 21794 21795 21796 21797 21798 21799 21800 21801 21802 21803 21804 21805 21806 21807 21808 21809 21810 21811 21812 21813 21814 21815 21816 21817 21818 21819 21820 21821 21822 21823 21824 21825 21826 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21767 def get_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, 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, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'relay_name is nil' if relay_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' 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,'namespaceName' => namespace_name,'relayName' => relay_name,'slot' => slot,'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_08_01::Models::HybridConnection.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_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
resource belongs. will be added to the HTTP request.
21747 21748 21749 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21747 def get_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:nil) get_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:custom_headers).value! end |
#get_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
Retrieves a specific Service Bus Hybrid Connection used by this Web App.
resource belongs. will be added to the HTTP request.
7538 7539 7540 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7538 def get_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) get_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! end |
#get_instance_function_slot(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ FunctionEnvelope
Get function information by its ID for web site, or a deployment slot.
Get function information by its ID for web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
20865 20866 20867 20868 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20865 def get_instance_function_slot(resource_group_name, name, function_name, slot, custom_headers:nil) response = get_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get function information by its ID for web site, or a deployment slot.
Get function information by its ID for web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
20906 20907 20908 20909 20910 20911 20912 20913 20914 20915 20916 20917 20918 20919 20920 20921 20922 20923 20924 20925 20926 20927 20928 20929 20930 20931 20932 20933 20934 20935 20936 20937 20938 20939 20940 20941 20942 20943 20944 20945 20946 20947 20948 20949 20950 20951 20952 20953 20954 20955 20956 20957 20958 20959 20960 20961 20962 20963 20964 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20906 def get_instance_function_slot_async(resource_group_name, name, function_name, slot, 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, 'function_name is nil' if function_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/functions/{functionName}' 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,'functionName' => function_name,'slot' => slot,'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 || status_code == 404 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_08_01::Models::FunctionEnvelope.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_instance_function_slot_with_http_info(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get function information by its ID for web site, or a deployment slot.
Get function information by its ID for web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
20886 20887 20888 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20886 def get_instance_function_slot_with_http_info(resource_group_name, name, function_name, slot, custom_headers:nil) get_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers:custom_headers).value! end |
#get_instance_ms_deploy_status(resource_group_name, name, instance_id, custom_headers: nil) ⇒ MSDeployStatus
Get the status of the last MSDeploy operation.
Get the status of the last MSDeploy operation.
resource belongs. will be added to the HTTP request.
8897 8898 8899 8900 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8897 def get_instance_ms_deploy_status(resource_group_name, name, instance_id, custom_headers:nil) response = get_instance_ms_deploy_status_async(resource_group_name, name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_instance_ms_deploy_status_async(resource_group_name, name, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get the status of the last MSDeploy operation.
Get the status of the last MSDeploy operation.
resource belongs. to the HTTP request.
8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8934 def get_instance_ms_deploy_status_async(resource_group_name, name, instance_id, 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_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/instances/{instanceId}/extensions/MSDeploy' 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,'instanceId' => instance_id,'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_08_01::Models::MSDeployStatus.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_instance_ms_deploy_status_slot(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ MSDeployStatus
Get the status of the last MSDeploy operation.
Get the status of the last MSDeploy operation.
resource belongs. to production slot. will be added to the HTTP request.
23172 23173 23174 23175 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23172 def get_instance_ms_deploy_status_slot(resource_group_name, name, slot, instance_id, custom_headers:nil) response = get_instance_ms_deploy_status_slot_async(resource_group_name, name, slot, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_instance_ms_deploy_status_slot_async(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get the status of the last MSDeploy operation.
Get the status of the last MSDeploy operation.
resource belongs. to production slot. to the HTTP request.
23213 23214 23215 23216 23217 23218 23219 23220 23221 23222 23223 23224 23225 23226 23227 23228 23229 23230 23231 23232 23233 23234 23235 23236 23237 23238 23239 23240 23241 23242 23243 23244 23245 23246 23247 23248 23249 23250 23251 23252 23253 23254 23255 23256 23257 23258 23259 23260 23261 23262 23263 23264 23265 23266 23267 23268 23269 23270 23271 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23213 def get_instance_ms_deploy_status_slot_async(resource_group_name, name, slot, instance_id, 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, 'slot is nil' if slot.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/slots/{slot}/instances/{instanceId}/extensions/MSDeploy' 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,'slot' => slot,'instanceId' => instance_id,'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_08_01::Models::MSDeployStatus.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_instance_ms_deploy_status_slot_with_http_info(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the status of the last MSDeploy operation.
Get the status of the last MSDeploy operation.
resource belongs. to production slot. will be added to the HTTP request.
23193 23194 23195 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23193 def get_instance_ms_deploy_status_slot_with_http_info(resource_group_name, name, slot, instance_id, custom_headers:nil) get_instance_ms_deploy_status_slot_async(resource_group_name, name, slot, instance_id, custom_headers:custom_headers).value! end |
#get_instance_ms_deploy_status_with_http_info(resource_group_name, name, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the status of the last MSDeploy operation.
Get the status of the last MSDeploy operation.
resource belongs. will be added to the HTTP request.
8916 8917 8918 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8916 def get_instance_ms_deploy_status_with_http_info(resource_group_name, name, instance_id, custom_headers:nil) get_instance_ms_deploy_status_async(resource_group_name, name, instance_id, custom_headers:custom_headers).value! end |
#get_instance_msdeploy_log(resource_group_name, name, instance_id, custom_headers: nil) ⇒ MSDeployLog
Get the MSDeploy Log for the last MSDeploy operation.
Get the MSDeploy Log for the last MSDeploy operation.
resource belongs. will be added to the HTTP request.
9057 9058 9059 9060 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9057 def get_instance_msdeploy_log(resource_group_name, name, instance_id, custom_headers:nil) response = get_instance_msdeploy_log_async(resource_group_name, name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_instance_msdeploy_log_async(resource_group_name, name, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get the MSDeploy Log for the last MSDeploy operation.
Get the MSDeploy Log for the last MSDeploy operation.
resource belongs. to the HTTP request.
9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9094 def get_instance_msdeploy_log_async(resource_group_name, name, instance_id, 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_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/instances/{instanceId}/extensions/MSDeploy/log' 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,'instanceId' => instance_id,'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 || status_code == 404 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_08_01::Models::MSDeployLog.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_instance_msdeploy_log_slot(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ MSDeployLog
Get the MSDeploy Log for the last MSDeploy operation.
Get the MSDeploy Log for the last MSDeploy operation.
resource belongs. to production slot. will be added to the HTTP request.
23343 23344 23345 23346 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23343 def get_instance_msdeploy_log_slot(resource_group_name, name, slot, instance_id, custom_headers:nil) response = get_instance_msdeploy_log_slot_async(resource_group_name, name, slot, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_instance_msdeploy_log_slot_async(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get the MSDeploy Log for the last MSDeploy operation.
Get the MSDeploy Log for the last MSDeploy operation.
resource belongs. to production slot. to the HTTP request.
23384 23385 23386 23387 23388 23389 23390 23391 23392 23393 23394 23395 23396 23397 23398 23399 23400 23401 23402 23403 23404 23405 23406 23407 23408 23409 23410 23411 23412 23413 23414 23415 23416 23417 23418 23419 23420 23421 23422 23423 23424 23425 23426 23427 23428 23429 23430 23431 23432 23433 23434 23435 23436 23437 23438 23439 23440 23441 23442 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23384 def get_instance_msdeploy_log_slot_async(resource_group_name, name, slot, instance_id, 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, 'slot is nil' if slot.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/slots/{slot}/instances/{instanceId}/extensions/MSDeploy/log' 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,'slot' => slot,'instanceId' => instance_id,'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 || status_code == 404 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_08_01::Models::MSDeployLog.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_instance_msdeploy_log_slot_with_http_info(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the MSDeploy Log for the last MSDeploy operation.
Get the MSDeploy Log for the last MSDeploy operation.
resource belongs. to production slot. will be added to the HTTP request.
23364 23365 23366 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23364 def get_instance_msdeploy_log_slot_with_http_info(resource_group_name, name, slot, instance_id, custom_headers:nil) get_instance_msdeploy_log_slot_async(resource_group_name, name, slot, instance_id, custom_headers:custom_headers).value! end |
#get_instance_msdeploy_log_with_http_info(resource_group_name, name, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the MSDeploy Log for the last MSDeploy operation.
Get the MSDeploy Log for the last MSDeploy operation.
resource belongs. will be added to the HTTP request.
9076 9077 9078 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9076 def get_instance_msdeploy_log_with_http_info(resource_group_name, name, instance_id, custom_headers:nil) get_instance_msdeploy_log_async(resource_group_name, name, instance_id, custom_headers:custom_headers).value! end |
#get_instance_process(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ ProcessInfo
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
9294 9295 9296 9297 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9294 def get_instance_process(resource_group_name, name, process_id, instance_id, custom_headers:nil) response = get_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. to the HTTP request.
9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9341 def get_instance_process_async(resource_group_name, name, process_id, instance_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/instances/{instanceId}/processes/{processId}' 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,'processId' => process_id,'instanceId' => instance_id,'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 || status_code == 404 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_08_01::Models::ProcessInfo.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_instance_process_dump(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
9535 9536 9537 9538 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9535 def get_instance_process_dump(resource_group_name, name, process_id, instance_id, custom_headers:nil) response = get_instance_process_dump_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_instance_process_dump_async(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. to the HTTP request.
9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9582 def get_instance_process_dump_async(resource_group_name, name, process_id, instance_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/instances/{instanceId}/processes/{processId}/dump' 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,'processId' => process_id,'instanceId' => instance_id,'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 || status_code == 404 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: 'Stream' } } 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_instance_process_dump_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
23849 23850 23851 23852 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23849 def get_instance_process_dump_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) response = get_instance_process_dump_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_instance_process_dump_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. to the HTTP request.
23900 23901 23902 23903 23904 23905 23906 23907 23908 23909 23910 23911 23912 23913 23914 23915 23916 23917 23918 23919 23920 23921 23922 23923 23924 23925 23926 23927 23928 23929 23930 23931 23932 23933 23934 23935 23936 23937 23938 23939 23940 23941 23942 23943 23944 23945 23946 23947 23948 23949 23950 23951 23952 23953 23954 23955 23956 23957 23958 23959 23960 23961 23962 23963 23964 23965 23966 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23900 def get_instance_process_dump_slot_async(resource_group_name, name, process_id, slot, instance_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/dump' 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,'processId' => process_id,'slot' => slot,'instanceId' => instance_id,'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 || status_code == 404 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: 'Stream' } } 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_instance_process_dump_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
23875 23876 23877 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23875 def get_instance_process_dump_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) get_instance_process_dump_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! end |
#get_instance_process_dump_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
9559 9560 9561 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9559 def get_instance_process_dump_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers:nil) get_instance_process_dump_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! end |
#get_instance_process_module(resource_group_name, name, process_id, base_address, instance_id, custom_headers: nil) ⇒ ProcessModuleInfo
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
9795 9796 9797 9798 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9795 def get_instance_process_module(resource_group_name, name, process_id, base_address, instance_id, custom_headers:nil) response = get_instance_process_module_async(resource_group_name, name, process_id, base_address, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_instance_process_module_async(resource_group_name, name, process_id, base_address, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. to the HTTP request.
9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9844 def get_instance_process_module_async(resource_group_name, name, process_id, base_address, instance_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'base_address is nil' if base_address.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/instances/{instanceId}/processes/{processId}/modules/{baseAddress}' 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,'processId' => process_id,'baseAddress' => base_address,'instanceId' => instance_id,'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 || status_code == 404 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_08_01::Models::ProcessModuleInfo.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_instance_process_module_slot(resource_group_name, name, process_id, base_address, slot, instance_id, custom_headers: nil) ⇒ ProcessModuleInfo
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
24123 24124 24125 24126 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24123 def get_instance_process_module_slot(resource_group_name, name, process_id, base_address, slot, instance_id, custom_headers:nil) response = get_instance_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_instance_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. to the HTTP request.
24176 24177 24178 24179 24180 24181 24182 24183 24184 24185 24186 24187 24188 24189 24190 24191 24192 24193 24194 24195 24196 24197 24198 24199 24200 24201 24202 24203 24204 24205 24206 24207 24208 24209 24210 24211 24212 24213 24214 24215 24216 24217 24218 24219 24220 24221 24222 24223 24224 24225 24226 24227 24228 24229 24230 24231 24232 24233 24234 24235 24236 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24176 def get_instance_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, instance_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'base_address is nil' if base_address.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/modules/{baseAddress}' 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,'processId' => process_id,'baseAddress' => base_address,'slot' => slot,'instanceId' => instance_id,'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 || status_code == 404 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_08_01::Models::ProcessModuleInfo.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_instance_process_module_slot_with_http_info(resource_group_name, name, process_id, base_address, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
24150 24151 24152 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24150 def get_instance_process_module_slot_with_http_info(resource_group_name, name, process_id, base_address, slot, instance_id, custom_headers:nil) get_instance_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, instance_id, custom_headers:custom_headers).value! end |
#get_instance_process_module_with_http_info(resource_group_name, name, process_id, base_address, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
9820 9821 9822 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9820 def get_instance_process_module_with_http_info(resource_group_name, name, process_id, base_address, instance_id, custom_headers:nil) get_instance_process_module_async(resource_group_name, name, process_id, base_address, instance_id, custom_headers:custom_headers).value! end |
#get_instance_process_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ ProcessInfo
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
23594 23595 23596 23597 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23594 def get_instance_process_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) response = get_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. to the HTTP request.
23645 23646 23647 23648 23649 23650 23651 23652 23653 23654 23655 23656 23657 23658 23659 23660 23661 23662 23663 23664 23665 23666 23667 23668 23669 23670 23671 23672 23673 23674 23675 23676 23677 23678 23679 23680 23681 23682 23683 23684 23685 23686 23687 23688 23689 23690 23691 23692 23693 23694 23695 23696 23697 23698 23699 23700 23701 23702 23703 23704 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23645 def get_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}' 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,'processId' => process_id,'slot' => slot,'instanceId' => instance_id,'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 || status_code == 404 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_08_01::Models::ProcessInfo.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_instance_process_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
23620 23621 23622 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23620 def get_instance_process_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) get_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! end |
#get_instance_process_thread(resource_group_name, name, process_id, thread_id, instance_id, custom_headers: nil) ⇒ ProcessThreadInfo
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
10051 10052 10053 10054 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10051 def get_instance_process_thread(resource_group_name, name, process_id, thread_id, instance_id, custom_headers:nil) response = get_instance_process_thread_async(resource_group_name, name, process_id, thread_id, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_instance_process_thread_async(resource_group_name, name, process_id, thread_id, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. to the HTTP request.
10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10100 def get_instance_process_thread_async(resource_group_name, name, process_id, thread_id, instance_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'thread_id is nil' if thread_id.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/instances/{instanceId}/processes/{processId}/threads/{threadId}' 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,'processId' => process_id,'threadId' => thread_id,'instanceId' => instance_id,'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 || status_code == 404 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_08_01::Models::ProcessThreadInfo.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_instance_process_thread_slot(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers: nil) ⇒ ProcessThreadInfo
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
24393 24394 24395 24396 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24393 def get_instance_process_thread_slot(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers:nil) response = get_instance_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_instance_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. to the HTTP request.
24446 24447 24448 24449 24450 24451 24452 24453 24454 24455 24456 24457 24458 24459 24460 24461 24462 24463 24464 24465 24466 24467 24468 24469 24470 24471 24472 24473 24474 24475 24476 24477 24478 24479 24480 24481 24482 24483 24484 24485 24486 24487 24488 24489 24490 24491 24492 24493 24494 24495 24496 24497 24498 24499 24500 24501 24502 24503 24504 24505 24506 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24446 def get_instance_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, instance_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'thread_id is nil' if thread_id.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/threads/{threadId}' 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,'processId' => process_id,'threadId' => thread_id,'slot' => slot,'instanceId' => instance_id,'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 || status_code == 404 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_08_01::Models::ProcessThreadInfo.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_instance_process_thread_slot_with_http_info(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
24420 24421 24422 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24420 def get_instance_process_thread_slot_with_http_info(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers:nil) get_instance_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers:custom_headers).value! end |
#get_instance_process_thread_with_http_info(resource_group_name, name, process_id, thread_id, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
10076 10077 10078 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10076 def get_instance_process_thread_with_http_info(resource_group_name, name, process_id, thread_id, instance_id, custom_headers:nil) get_instance_process_thread_async(resource_group_name, name, process_id, thread_id, instance_id, custom_headers:custom_headers).value! end |
#get_instance_process_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
9318 9319 9320 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9318 def get_instance_process_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers:nil) get_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! end |
#get_migrate_my_sql_status(resource_group_name, name, custom_headers: nil) ⇒ MigrateMySqlStatus
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled
resource belongs. will be added to the HTTP request.
10721 10722 10723 10724 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10721 def get_migrate_my_sql_status(resource_group_name, name, custom_headers:nil) response = get_migrate_my_sql_status_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_migrate_my_sql_status_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled
resource belongs. to the HTTP request.
10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10760 def get_migrate_my_sql_status_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/sites/{name}/migratemysql/status' 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_08_01::Models::MigrateMySqlStatus.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_migrate_my_sql_status_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ MigrateMySqlStatus
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled
resource belongs. will be added to the HTTP request.
24995 24996 24997 24998 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24995 def get_migrate_my_sql_status_slot(resource_group_name, name, slot, custom_headers:nil) response = get_migrate_my_sql_status_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_migrate_my_sql_status_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled
resource belongs. to the HTTP request.
25036 25037 25038 25039 25040 25041 25042 25043 25044 25045 25046 25047 25048 25049 25050 25051 25052 25053 25054 25055 25056 25057 25058 25059 25060 25061 25062 25063 25064 25065 25066 25067 25068 25069 25070 25071 25072 25073 25074 25075 25076 25077 25078 25079 25080 25081 25082 25083 25084 25085 25086 25087 25088 25089 25090 25091 25092 25093 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25036 def get_migrate_my_sql_status_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/migratemysql/status' 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,'slot' => slot,'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_08_01::Models::MigrateMySqlStatus.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_migrate_my_sql_status_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled
resource belongs. will be added to the HTTP request.
25016 25017 25018 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25016 def get_migrate_my_sql_status_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) get_migrate_my_sql_status_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#get_migrate_my_sql_status_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled
Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled
resource belongs. will be added to the HTTP request.
10741 10742 10743 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10741 def get_migrate_my_sql_status_with_http_info(resource_group_name, name, custom_headers:nil) get_migrate_my_sql_status_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#get_msdeploy_log(resource_group_name, name, custom_headers: nil) ⇒ MSDeployLog
Get the MSDeploy Log for the last MSDeploy operation.
Get the MSDeploy Log for the last MSDeploy operation.
resource belongs. will be added to the HTTP request.
6383 6384 6385 6386 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6383 def get_msdeploy_log(resource_group_name, name, custom_headers:nil) response = get_msdeploy_log_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_msdeploy_log_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get the MSDeploy Log for the last MSDeploy operation.
Get the MSDeploy Log for the last MSDeploy operation.
resource belongs. to the HTTP request.
6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6418 def get_msdeploy_log_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/sites/{name}/extensions/MSDeploy/log' 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 || status_code == 404 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_08_01::Models::MSDeployLog.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_msdeploy_log_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ MSDeployLog
Get the MSDeploy Log for the last MSDeploy operation.
Get the MSDeploy Log for the last MSDeploy operation.
resource belongs. to production slot. will be added to the HTTP request.
20518 20519 20520 20521 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20518 def get_msdeploy_log_slot(resource_group_name, name, slot, custom_headers:nil) response = get_msdeploy_log_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_msdeploy_log_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get the MSDeploy Log for the last MSDeploy operation.
Get the MSDeploy Log for the last MSDeploy operation.
resource belongs. to production slot. to the HTTP request.
20557 20558 20559 20560 20561 20562 20563 20564 20565 20566 20567 20568 20569 20570 20571 20572 20573 20574 20575 20576 20577 20578 20579 20580 20581 20582 20583 20584 20585 20586 20587 20588 20589 20590 20591 20592 20593 20594 20595 20596 20597 20598 20599 20600 20601 20602 20603 20604 20605 20606 20607 20608 20609 20610 20611 20612 20613 20614 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20557 def get_msdeploy_log_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/extensions/MSDeploy/log' 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,'slot' => slot,'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 || status_code == 404 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_08_01::Models::MSDeployLog.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_msdeploy_log_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the MSDeploy Log for the last MSDeploy operation.
Get the MSDeploy Log for the last MSDeploy operation.
resource belongs. to production slot. will be added to the HTTP request.
20538 20539 20540 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20538 def get_msdeploy_log_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) get_msdeploy_log_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#get_msdeploy_log_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the MSDeploy Log for the last MSDeploy operation.
Get the MSDeploy Log for the last MSDeploy operation.
resource belongs. will be added to the HTTP request.
6401 6402 6403 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6401 def get_msdeploy_log_with_http_info(resource_group_name, name, custom_headers:nil) get_msdeploy_log_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#get_msdeploy_status(resource_group_name, name, custom_headers: nil) ⇒ MSDeployStatus
Get the status of the last MSDeploy operation.
Get the status of the last MSDeploy operation.
resource belongs. will be added to the HTTP request.
6229 6230 6231 6232 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6229 def get_msdeploy_status(resource_group_name, name, custom_headers:nil) response = get_msdeploy_status_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_msdeploy_status_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get the status of the last MSDeploy operation.
Get the status of the last MSDeploy operation.
resource belongs. to the HTTP request.
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 6312 6313 6314 6315 6316 6317 6318 6319 6320 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6264 def get_msdeploy_status_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/sites/{name}/extensions/MSDeploy' 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_08_01::Models::MSDeployStatus.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_msdeploy_status_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ MSDeployStatus
Get the status of the last MSDeploy operation.
Get the status of the last MSDeploy operation.
resource belongs. to production slot. will be added to the HTTP request.
20353 20354 20355 20356 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20353 def get_msdeploy_status_slot(resource_group_name, name, slot, custom_headers:nil) response = get_msdeploy_status_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_msdeploy_status_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get the status of the last MSDeploy operation.
Get the status of the last MSDeploy operation.
resource belongs. to production slot. to the HTTP request.
20392 20393 20394 20395 20396 20397 20398 20399 20400 20401 20402 20403 20404 20405 20406 20407 20408 20409 20410 20411 20412 20413 20414 20415 20416 20417 20418 20419 20420 20421 20422 20423 20424 20425 20426 20427 20428 20429 20430 20431 20432 20433 20434 20435 20436 20437 20438 20439 20440 20441 20442 20443 20444 20445 20446 20447 20448 20449 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20392 def get_msdeploy_status_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/extensions/MSDeploy' 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,'slot' => slot,'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_08_01::Models::MSDeployStatus.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_msdeploy_status_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the status of the last MSDeploy operation.
Get the status of the last MSDeploy operation.
resource belongs. to production slot. will be added to the HTTP request.
20373 20374 20375 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20373 def get_msdeploy_status_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) get_msdeploy_status_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#get_msdeploy_status_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the status of the last MSDeploy operation.
Get the status of the last MSDeploy operation.
resource belongs. will be added to the HTTP request.
6247 6248 6249 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6247 def get_msdeploy_status_with_http_info(resource_group_name, name, custom_headers:nil) get_msdeploy_status_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#get_premier_add_on(resource_group_name, name, premier_add_on_name, custom_headers: nil) ⇒ PremierAddOn
Gets a named add-on of an app.
Gets a named add-on of an app.
resource belongs. will be added to the HTTP request.
11618 11619 11620 11621 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11618 def get_premier_add_on(resource_group_name, name, premier_add_on_name, custom_headers:nil) response = get_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets a named add-on of an app.
Gets a named add-on of an app.
resource belongs. to the HTTP request.
11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11655 def get_premier_add_on_async(resource_group_name, name, premier_add_on_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, 'premier_add_on_name is nil' if premier_add_on_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/sites/{name}/premieraddons/{premierAddOnName}' 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,'premierAddOnName' => premier_add_on_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_08_01::Models::PremierAddOn.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_premier_add_on_slot(resource_group_name, name, premier_add_on_name, slot, custom_headers: nil) ⇒ PremierAddOn
Gets a named add-on of an app.
Gets a named add-on of an app.
resource belongs. the API will get the named add-on for the production slot. will be added to the HTTP request.
25940 25941 25942 25943 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25940 def get_premier_add_on_slot(resource_group_name, name, premier_add_on_name, slot, custom_headers:nil) response = get_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a named add-on of an app.
Gets a named add-on of an app.
resource belongs. the API will get the named add-on for the production slot. to the HTTP request.
25981 25982 25983 25984 25985 25986 25987 25988 25989 25990 25991 25992 25993 25994 25995 25996 25997 25998 25999 26000 26001 26002 26003 26004 26005 26006 26007 26008 26009 26010 26011 26012 26013 26014 26015 26016 26017 26018 26019 26020 26021 26022 26023 26024 26025 26026 26027 26028 26029 26030 26031 26032 26033 26034 26035 26036 26037 26038 26039 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25981 def get_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, 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, 'premier_add_on_name is nil' if premier_add_on_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}' 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,'premierAddOnName' => premier_add_on_name,'slot' => slot,'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_08_01::Models::PremierAddOn.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_premier_add_on_slot_with_http_info(resource_group_name, name, premier_add_on_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a named add-on of an app.
Gets a named add-on of an app.
resource belongs. the API will get the named add-on for the production slot. will be added to the HTTP request.
25961 25962 25963 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25961 def get_premier_add_on_slot_with_http_info(resource_group_name, name, premier_add_on_name, slot, custom_headers:nil) get_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers:custom_headers).value! end |
#get_premier_add_on_with_http_info(resource_group_name, name, premier_add_on_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a named add-on of an app.
Gets a named add-on of an app.
resource belongs. will be added to the HTTP request.
11637 11638 11639 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11637 def get_premier_add_on_with_http_info(resource_group_name, name, premier_add_on_name, custom_headers:nil) get_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers:custom_headers).value! end |
#get_process(resource_group_name, name, process_id, custom_headers: nil) ⇒ ProcessInfo
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
12065 12066 12067 12068 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12065 def get_process(resource_group_name, name, process_id, custom_headers:nil) response = get_process_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_process_async(resource_group_name, name, process_id, custom_headers: nil) ⇒ Concurrent::Promise
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. to the HTTP request.
12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12106 def get_process_async(resource_group_name, name, process_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/processes/{processId}' 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,'processId' => process_id,'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 || status_code == 404 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_08_01::Models::ProcessInfo.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_process_dump(resource_group_name, name, process_id, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
12286 12287 12288 12289 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12286 def get_process_dump(resource_group_name, name, process_id, custom_headers:nil) response = get_process_dump_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_process_dump_async(resource_group_name, name, process_id, custom_headers: nil) ⇒ Concurrent::Promise
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
resource belongs. to the HTTP request.
12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12327 def get_process_dump_async(resource_group_name, name, process_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/processes/{processId}/dump' 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,'processId' => process_id,'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 || status_code == 404 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: 'Stream' } } 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_process_dump_slot(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
26650 26651 26652 26653 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26650 def get_process_dump_slot(resource_group_name, name, process_id, slot, custom_headers:nil) response = get_process_dump_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_process_dump_slot_async(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. to the HTTP request.
26695 26696 26697 26698 26699 26700 26701 26702 26703 26704 26705 26706 26707 26708 26709 26710 26711 26712 26713 26714 26715 26716 26717 26718 26719 26720 26721 26722 26723 26724 26725 26726 26727 26728 26729 26730 26731 26732 26733 26734 26735 26736 26737 26738 26739 26740 26741 26742 26743 26744 26745 26746 26747 26748 26749 26750 26751 26752 26753 26754 26755 26756 26757 26758 26759 26760 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26695 def get_process_dump_slot_async(resource_group_name, name, process_id, slot, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/processes/{processId}/dump' 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,'processId' => process_id,'slot' => slot,'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 || status_code == 404 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: 'Stream' } } 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_process_dump_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
26673 26674 26675 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26673 def get_process_dump_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers:nil) get_process_dump_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! end |
#get_process_dump_with_http_info(resource_group_name, name, process_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
Get a memory dump of a process by its ID for a specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
12307 12308 12309 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12307 def get_process_dump_with_http_info(resource_group_name, name, process_id, custom_headers:nil) get_process_dump_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! end |
#get_process_module(resource_group_name, name, process_id, base_address, custom_headers: nil) ⇒ ProcessModuleInfo
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
12526 12527 12528 12529 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12526 def get_process_module(resource_group_name, name, process_id, base_address, custom_headers:nil) response = get_process_module_async(resource_group_name, name, process_id, base_address, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_process_module_async(resource_group_name, name, process_id, base_address, custom_headers: nil) ⇒ Concurrent::Promise
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. to the HTTP request.
12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12569 def get_process_module_async(resource_group_name, name, process_id, base_address, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'base_address is nil' if base_address.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/sites/{name}/processes/{processId}/modules/{baseAddress}' 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,'processId' => process_id,'baseAddress' => base_address,'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 || status_code == 404 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_08_01::Models::ProcessModuleInfo.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_process_module_slot(resource_group_name, name, process_id, base_address, slot, custom_headers: nil) ⇒ ProcessModuleInfo
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
26904 26905 26906 26907 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26904 def get_process_module_slot(resource_group_name, name, process_id, base_address, slot, custom_headers:nil) response = get_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. to the HTTP request.
26951 26952 26953 26954 26955 26956 26957 26958 26959 26960 26961 26962 26963 26964 26965 26966 26967 26968 26969 26970 26971 26972 26973 26974 26975 26976 26977 26978 26979 26980 26981 26982 26983 26984 26985 26986 26987 26988 26989 26990 26991 26992 26993 26994 26995 26996 26997 26998 26999 27000 27001 27002 27003 27004 27005 27006 27007 27008 27009 27010 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26951 def get_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'base_address is nil' if base_address.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/processes/{processId}/modules/{baseAddress}' 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,'processId' => process_id,'baseAddress' => base_address,'slot' => slot,'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 || status_code == 404 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_08_01::Models::ProcessModuleInfo.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_process_module_slot_with_http_info(resource_group_name, name, process_id, base_address, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
26928 26929 26930 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26928 def get_process_module_slot_with_http_info(resource_group_name, name, process_id, base_address, slot, custom_headers:nil) get_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, custom_headers:custom_headers).value! end |
#get_process_module_with_http_info(resource_group_name, name, process_id, base_address, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
12548 12549 12550 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12548 def get_process_module_with_http_info(resource_group_name, name, process_id, base_address, custom_headers:nil) get_process_module_async(resource_group_name, name, process_id, base_address, custom_headers:custom_headers).value! end |
#get_process_slot(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ ProcessInfo
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
26415 26416 26417 26418 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26415 def get_process_slot(resource_group_name, name, process_id, slot, custom_headers:nil) response = get_process_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_process_slot_async(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. to the HTTP request.
26460 26461 26462 26463 26464 26465 26466 26467 26468 26469 26470 26471 26472 26473 26474 26475 26476 26477 26478 26479 26480 26481 26482 26483 26484 26485 26486 26487 26488 26489 26490 26491 26492 26493 26494 26495 26496 26497 26498 26499 26500 26501 26502 26503 26504 26505 26506 26507 26508 26509 26510 26511 26512 26513 26514 26515 26516 26517 26518 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26460 def get_process_slot_async(resource_group_name, name, process_id, slot, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/processes/{processId}' 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,'processId' => process_id,'slot' => slot,'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 || status_code == 404 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_08_01::Models::ProcessInfo.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_process_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
26438 26439 26440 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26438 def get_process_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers:nil) get_process_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! end |
#get_process_thread(resource_group_name, name, process_id, thread_id, custom_headers: nil) ⇒ ProcessThreadInfo
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
12762 12763 12764 12765 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12762 def get_process_thread(resource_group_name, name, process_id, thread_id, custom_headers:nil) response = get_process_thread_async(resource_group_name, name, process_id, thread_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_process_thread_async(resource_group_name, name, process_id, thread_id, custom_headers: nil) ⇒ Concurrent::Promise
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
resource belongs. to the HTTP request.
12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12805 def get_process_thread_async(resource_group_name, name, process_id, thread_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'thread_id is nil' if thread_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/processes/{processId}/threads/{threadId}' 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,'processId' => process_id,'threadId' => thread_id,'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 || status_code == 404 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_08_01::Models::ProcessThreadInfo.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_process_thread_slot(resource_group_name, name, process_id, thread_id, slot, custom_headers: nil) ⇒ ProcessThreadInfo
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
27154 27155 27156 27157 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27154 def get_process_thread_slot(resource_group_name, name, process_id, thread_id, slot, custom_headers:nil) response = get_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. to the HTTP request.
27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27201 def get_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'thread_id is nil' if thread_id.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/processes/{processId}/threads/{threadId}' 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,'processId' => process_id,'threadId' => thread_id,'slot' => slot,'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 || status_code == 404 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_08_01::Models::ProcessThreadInfo.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_process_thread_slot_with_http_info(resource_group_name, name, process_id, thread_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
27178 27179 27180 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27178 def get_process_thread_slot_with_http_info(resource_group_name, name, process_id, thread_id, slot, custom_headers:nil) get_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, custom_headers:custom_headers).value! end |
#get_process_thread_with_http_info(resource_group_name, name, process_id, thread_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
12784 12785 12786 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12784 def get_process_thread_with_http_info(resource_group_name, name, process_id, thread_id, custom_headers:nil) get_process_thread_async(resource_group_name, name, process_id, thread_id, custom_headers:custom_headers).value! end |
#get_process_with_http_info(resource_group_name, name, process_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get process information by its ID for a specific scaled-out instance in a web site.
Get process information by its ID for a specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
12086 12087 12088 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12086 def get_process_with_http_info(resource_group_name, name, process_id, custom_headers:nil) get_process_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! end |
#get_public_certificate(resource_group_name, name, public_certificate_name, custom_headers: nil) ⇒ PublicCertificate
Get the named public certificate for an app (or deployment slot, if specified).
Get the named public certificate for an app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
12987 12988 12989 12990 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12987 def get_public_certificate(resource_group_name, name, public_certificate_name, custom_headers:nil) response = get_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers: nil) ⇒ Concurrent::Promise
Get the named public certificate for an app (or deployment slot, if specified).
Get the named public certificate for an app (or deployment slot, if specified).
resource belongs. to the HTTP request.
13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13028 def get_public_certificate_async(resource_group_name, name, public_certificate_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, 'public_certificate_name is nil' if public_certificate_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/sites/{name}/publicCertificates/{publicCertificateName}' 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,'publicCertificateName' => public_certificate_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_08_01::Models::PublicCertificate.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_public_certificate_slot(resource_group_name, name, slot, public_certificate_name, custom_headers: nil) ⇒ PublicCertificate
Get the named public certificate for an app (or deployment slot, if specified).
Get the named public certificate for an app (or deployment slot, if specified).
resource belongs. the API the named binding for the production slot. will be added to the HTTP request.
27393 27394 27395 27396 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27393 def get_public_certificate_slot(resource_group_name, name, slot, public_certificate_name, custom_headers:nil) response = get_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers: nil) ⇒ Concurrent::Promise
Get the named public certificate for an app (or deployment slot, if specified).
Get the named public certificate for an app (or deployment slot, if specified).
resource belongs. the API the named binding for the production slot. to the HTTP request.
27438 27439 27440 27441 27442 27443 27444 27445 27446 27447 27448 27449 27450 27451 27452 27453 27454 27455 27456 27457 27458 27459 27460 27461 27462 27463 27464 27465 27466 27467 27468 27469 27470 27471 27472 27473 27474 27475 27476 27477 27478 27479 27480 27481 27482 27483 27484 27485 27486 27487 27488 27489 27490 27491 27492 27493 27494 27495 27496 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27438 def get_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_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, 'slot is nil' if slot.nil? fail ArgumentError, 'public_certificate_name is nil' if public_certificate_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/sites/{name}/slots/{slot}/publicCertificates/{publicCertificateName}' 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,'slot' => slot,'publicCertificateName' => public_certificate_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_08_01::Models::PublicCertificate.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_public_certificate_slot_with_http_info(resource_group_name, name, slot, public_certificate_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the named public certificate for an app (or deployment slot, if specified).
Get the named public certificate for an app (or deployment slot, if specified).
resource belongs. the API the named binding for the production slot. will be added to the HTTP request.
27416 27417 27418 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27416 def get_public_certificate_slot_with_http_info(resource_group_name, name, slot, public_certificate_name, custom_headers:nil) get_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers:custom_headers).value! end |
#get_public_certificate_with_http_info(resource_group_name, name, public_certificate_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the named public certificate for an app (or deployment slot, if specified).
Get the named public certificate for an app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
13008 13009 13010 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13008 def get_public_certificate_with_http_info(resource_group_name, name, public_certificate_name, custom_headers:nil) get_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers:custom_headers).value! end |
#get_relay_service_connection(resource_group_name, name, entity_name, custom_headers: nil) ⇒ RelayServiceConnectionEntity
Gets a hybrid connection configuration by its name.
Gets a hybrid connection configuration by its name.
resource belongs. will be added to the HTTP request.
8322 8323 8324 8325 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8322 def get_relay_service_connection(resource_group_name, name, entity_name, custom_headers:nil) response = get_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets a hybrid connection configuration by its name.
Gets a hybrid connection configuration by its name.
resource belongs. to the HTTP request.
8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8359 def get_relay_service_connection_async(resource_group_name, name, entity_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, 'entity_name is nil' if entity_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/sites/{name}/hybridconnection/{entityName}' 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,'entityName' => entity_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_08_01::Models::RelayServiceConnectionEntity.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_relay_service_connection_slot(resource_group_name, name, entity_name, slot, custom_headers: nil) ⇒ RelayServiceConnectionEntity
Gets a hybrid connection configuration by its name.
Gets a hybrid connection configuration by its name.
resource belongs. the API will get a hybrid connection for the production slot. will be added to the HTTP request.
22562 22563 22564 22565 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22562 def get_relay_service_connection_slot(resource_group_name, name, entity_name, slot, custom_headers:nil) response = get_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a hybrid connection configuration by its name.
Gets a hybrid connection configuration by its name.
resource belongs. the API will get a hybrid connection for the production slot. to the HTTP request.
22603 22604 22605 22606 22607 22608 22609 22610 22611 22612 22613 22614 22615 22616 22617 22618 22619 22620 22621 22622 22623 22624 22625 22626 22627 22628 22629 22630 22631 22632 22633 22634 22635 22636 22637 22638 22639 22640 22641 22642 22643 22644 22645 22646 22647 22648 22649 22650 22651 22652 22653 22654 22655 22656 22657 22658 22659 22660 22661 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22603 def get_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, 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, 'entity_name is nil' if entity_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/hybridconnection/{entityName}' 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,'entityName' => entity_name,'slot' => slot,'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_08_01::Models::RelayServiceConnectionEntity.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_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a hybrid connection configuration by its name.
Gets a hybrid connection configuration by its name.
resource belongs. the API will get a hybrid connection for the production slot. will be added to the HTTP request.
22583 22584 22585 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22583 def get_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, slot, custom_headers:nil) get_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers:custom_headers).value! end |
#get_relay_service_connection_with_http_info(resource_group_name, name, entity_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a hybrid connection configuration by its name.
Gets a hybrid connection configuration by its name.
resource belongs. will be added to the HTTP request.
8341 8342 8343 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8341 def get_relay_service_connection_with_http_info(resource_group_name, name, entity_name, custom_headers:nil) get_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers:custom_headers).value! end |
#get_site_extension(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ SiteExtensionInfo
Get site extension information by its ID for a web site, or a deployment slot.
Get site extension information by its ID for a web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
13824 13825 13826 13827 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13824 def get_site_extension(resource_group_name, name, site_extension_id, custom_headers:nil) response = get_site_extension_async(resource_group_name, name, site_extension_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_site_extension_async(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ Concurrent::Promise
Get site extension information by its ID for a web site, or a deployment slot.
Get site extension information by its ID for a web site, or a deployment slot.
resource belongs. to the HTTP request.
13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13865 def get_site_extension_async(resource_group_name, name, site_extension_id, 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, 'site_extension_id is nil' if site_extension_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/siteextensions/{siteExtensionId}' 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,'siteExtensionId' => site_extension_id,'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 || status_code == 404 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_08_01::Models::SiteExtensionInfo.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_site_extension_slot(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ SiteExtensionInfo
Get site extension information by its ID for a web site, or a deployment slot.
Get site extension information by its ID for a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
28283 28284 28285 28286 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28283 def get_site_extension_slot(resource_group_name, name, site_extension_id, slot, custom_headers:nil) response = get_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get site extension information by its ID for a web site, or a deployment slot.
Get site extension information by its ID for a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
28328 28329 28330 28331 28332 28333 28334 28335 28336 28337 28338 28339 28340 28341 28342 28343 28344 28345 28346 28347 28348 28349 28350 28351 28352 28353 28354 28355 28356 28357 28358 28359 28360 28361 28362 28363 28364 28365 28366 28367 28368 28369 28370 28371 28372 28373 28374 28375 28376 28377 28378 28379 28380 28381 28382 28383 28384 28385 28386 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28328 def get_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, 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, 'site_extension_id is nil' if site_extension_id.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/siteextensions/{siteExtensionId}' 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,'siteExtensionId' => site_extension_id,'slot' => slot,'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 || status_code == 404 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_08_01::Models::SiteExtensionInfo.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_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get site extension information by its ID for a web site, or a deployment slot.
Get site extension information by its ID for a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
28306 28307 28308 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28306 def get_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, custom_headers:nil) get_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers:custom_headers).value! end |
#get_site_extension_with_http_info(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get site extension information by its ID for a web site, or a deployment slot.
Get site extension information by its ID for a web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
13845 13846 13847 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13845 def get_site_extension_with_http_info(resource_group_name, name, site_extension_id, custom_headers:nil) get_site_extension_async(resource_group_name, name, site_extension_id, custom_headers:custom_headers).value! end |
#get_site_php_error_log_flag(resource_group_name, name, custom_headers: nil) ⇒ SitePhpErrorLogFlag
Gets web app’s event logs.
Gets web app’s event logs.
resource belongs. will be added to the HTTP request.
11405 11406 11407 11408 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11405 def get_site_php_error_log_flag(resource_group_name, name, custom_headers:nil) response = get_site_php_error_log_flag_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_site_php_error_log_flag_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets web app’s event logs.
Gets web app’s event logs.
resource belongs. to the HTTP request.
11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11440 def get_site_php_error_log_flag_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/sites/{name}/phplogging' 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_08_01::Models::SitePhpErrorLogFlag.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_site_php_error_log_flag_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ SitePhpErrorLogFlag
Gets web app’s event logs.
Gets web app’s event logs.
resource belongs. to production slot. will be added to the HTTP request.
25713 25714 25715 25716 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25713 def get_site_php_error_log_flag_slot(resource_group_name, name, slot, custom_headers:nil) response = get_site_php_error_log_flag_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_site_php_error_log_flag_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets web app’s event logs.
Gets web app’s event logs.
resource belongs. to production slot. to the HTTP request.
25752 25753 25754 25755 25756 25757 25758 25759 25760 25761 25762 25763 25764 25765 25766 25767 25768 25769 25770 25771 25772 25773 25774 25775 25776 25777 25778 25779 25780 25781 25782 25783 25784 25785 25786 25787 25788 25789 25790 25791 25792 25793 25794 25795 25796 25797 25798 25799 25800 25801 25802 25803 25804 25805 25806 25807 25808 25809 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25752 def get_site_php_error_log_flag_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/phplogging' 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,'slot' => slot,'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_08_01::Models::SitePhpErrorLogFlag.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_site_php_error_log_flag_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets web app’s event logs.
Gets web app’s event logs.
resource belongs. to production slot. will be added to the HTTP request.
25733 25734 25735 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25733 def get_site_php_error_log_flag_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) get_site_php_error_log_flag_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#get_site_php_error_log_flag_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets web app’s event logs.
Gets web app’s event logs.
resource belongs. will be added to the HTTP request.
11423 11424 11425 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11423 def get_site_php_error_log_flag_with_http_info(resource_group_name, name, custom_headers:nil) get_site_php_error_log_flag_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#get_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Site
Gets the details of a web, mobile, or API app.
Gets the details of a web, mobile, or API app.
resource belongs. returns the production slot. will be added to the HTTP request.
14192 14193 14194 14195 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14192 def get_slot(resource_group_name, name, slot, custom_headers:nil) response = get_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the details of a web, mobile, or API app.
Gets the details of a web, mobile, or API app.
resource belongs. returns the production slot. to the HTTP request.
14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14231 def get_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}' 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,'slot' => slot,'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 || status_code == 404 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_08_01::Models::Site.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_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the details of a web, mobile, or API app.
Gets the details of a web, mobile, or API app.
resource belongs. returns the production slot. will be added to the HTTP request.
14212 14213 14214 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14212 def get_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) get_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#get_source_control(resource_group_name, name, custom_headers: nil) ⇒ SiteSourceControl
Gets the source control configuration of an app.
Gets the source control configuration of an app.
resource belongs. will be added to the HTTP request.
32038 32039 32040 32041 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32038 def get_source_control(resource_group_name, name, custom_headers:nil) response = get_source_control_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_source_control_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the source control configuration of an app.
Gets the source control configuration of an app.
resource belongs. to the HTTP request.
32073 32074 32075 32076 32077 32078 32079 32080 32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32073 def get_source_control_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/sites/{name}/sourcecontrols/web' 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 || status_code == 201 || 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_08_01::Models::SiteSourceControl.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 == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.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_08_01::Models::SiteSourceControl.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_source_control_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ SiteSourceControl
Gets the source control configuration of an app.
Gets the source control configuration of an app.
resource belongs. the API will get the source control configuration for the production slot. will be added to the HTTP request.
28848 28849 28850 28851 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28848 def get_source_control_slot(resource_group_name, name, slot, custom_headers:nil) response = get_source_control_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_source_control_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the source control configuration of an app.
Gets the source control configuration of an app.
resource belongs. the API will get the source control configuration for the production slot. to the HTTP request.
28887 28888 28889 28890 28891 28892 28893 28894 28895 28896 28897 28898 28899 28900 28901 28902 28903 28904 28905 28906 28907 28908 28909 28910 28911 28912 28913 28914 28915 28916 28917 28918 28919 28920 28921 28922 28923 28924 28925 28926 28927 28928 28929 28930 28931 28932 28933 28934 28935 28936 28937 28938 28939 28940 28941 28942 28943 28944 28945 28946 28947 28948 28949 28950 28951 28952 28953 28954 28955 28956 28957 28958 28959 28960 28961 28962 28963 28964 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28887 def get_source_control_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/sourcecontrols/web' 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,'slot' => slot,'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 || status_code == 201 || 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_08_01::Models::SiteSourceControl.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 == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.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_08_01::Models::SiteSourceControl.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_source_control_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the source control configuration of an app.
Gets the source control configuration of an app.
resource belongs. the API will get the source control configuration for the production slot. will be added to the HTTP request.
28868 28869 28870 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28868 def get_source_control_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) get_source_control_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#get_source_control_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the source control configuration of an app.
Gets the source control configuration of an app.
resource belongs. will be added to the HTTP request.
32056 32057 32058 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32056 def get_source_control_with_http_info(resource_group_name, name, custom_headers:nil) get_source_control_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#get_triggered_web_job(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ TriggeredWebJob
Gets a triggered web job by its ID for an app, or a deployment slot.
Gets a triggered web job by its ID for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
32926 32927 32928 32929 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32926 def get_triggered_web_job(resource_group_name, name, web_job_name, custom_headers:nil) response = get_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets a triggered web job by its ID for an app, or a deployment slot.
Gets a triggered web job by its ID for an app, or a deployment slot.
resource belongs. to the HTTP request.
32963 32964 32965 32966 32967 32968 32969 32970 32971 32972 32973 32974 32975 32976 32977 32978 32979 32980 32981 32982 32983 32984 32985 32986 32987 32988 32989 32990 32991 32992 32993 32994 32995 32996 32997 32998 32999 33000 33001 33002 33003 33004 33005 33006 33007 33008 33009 33010 33011 33012 33013 33014 33015 33016 33017 33018 33019 33020 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32963 def get_triggered_web_job_async(resource_group_name, name, web_job_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, 'web_job_name is nil' if web_job_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/sites/{name}/triggeredwebjobs/{webJobName}' 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,'webJobName' => web_job_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 || status_code == 404 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_08_01::Models::TriggeredWebJob.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_triggered_web_job_history(resource_group_name, name, web_job_name, id, custom_headers: nil) ⇒ TriggeredJobHistory
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
resource belongs. will be added to the HTTP request.
33248 33249 33250 33251 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33248 def get_triggered_web_job_history(resource_group_name, name, web_job_name, id, custom_headers:nil) response = get_triggered_web_job_history_async(resource_group_name, name, web_job_name, id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_triggered_web_job_history_async(resource_group_name, name, web_job_name, id, custom_headers: nil) ⇒ Concurrent::Promise
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
resource belongs. to the HTTP request.
33291 33292 33293 33294 33295 33296 33297 33298 33299 33300 33301 33302 33303 33304 33305 33306 33307 33308 33309 33310 33311 33312 33313 33314 33315 33316 33317 33318 33319 33320 33321 33322 33323 33324 33325 33326 33327 33328 33329 33330 33331 33332 33333 33334 33335 33336 33337 33338 33339 33340 33341 33342 33343 33344 33345 33346 33347 33348 33349 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33291 def get_triggered_web_job_history_async(resource_group_name, name, web_job_name, id, 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, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/triggeredwebjobs/{webJobName}/history/{id}' 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,'webJobName' => web_job_name,'id' => id,'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 || status_code == 404 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_08_01::Models::TriggeredJobHistory.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_triggered_web_job_history_slot(resource_group_name, name, web_job_name, id, slot, custom_headers: nil) ⇒ TriggeredJobHistory
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
30139 30140 30141 30142 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30139 def get_triggered_web_job_history_slot(resource_group_name, name, web_job_name, id, slot, custom_headers:nil) response = get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_name, id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_name, id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
30186 30187 30188 30189 30190 30191 30192 30193 30194 30195 30196 30197 30198 30199 30200 30201 30202 30203 30204 30205 30206 30207 30208 30209 30210 30211 30212 30213 30214 30215 30216 30217 30218 30219 30220 30221 30222 30223 30224 30225 30226 30227 30228 30229 30230 30231 30232 30233 30234 30235 30236 30237 30238 30239 30240 30241 30242 30243 30244 30245 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30186 def get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_name, id, slot, 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, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}/history/{id}' 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,'webJobName' => web_job_name,'id' => id,'slot' => slot,'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 || status_code == 404 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_08_01::Models::TriggeredJobHistory.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_triggered_web_job_history_slot_with_http_info(resource_group_name, name, web_job_name, id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
30163 30164 30165 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30163 def get_triggered_web_job_history_slot_with_http_info(resource_group_name, name, web_job_name, id, slot, custom_headers:nil) get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_name, id, slot, custom_headers:custom_headers).value! end |
#get_triggered_web_job_history_with_http_info(resource_group_name, name, web_job_name, id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
Gets a triggered web job’s history by its ID for an app, , or a deployment slot.
resource belongs. will be added to the HTTP request.
33270 33271 33272 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33270 def get_triggered_web_job_history_with_http_info(resource_group_name, name, web_job_name, id, custom_headers:nil) get_triggered_web_job_history_async(resource_group_name, name, web_job_name, id, custom_headers:custom_headers).value! end |
#get_triggered_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ TriggeredWebJob
Gets a triggered web job by its ID for an app, or a deployment slot.
Gets a triggered web job by its ID for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
29796 29797 29798 29799 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29796 def get_triggered_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers:nil) response = get_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a triggered web job by its ID for an app, or a deployment slot.
Gets a triggered web job by its ID for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
29837 29838 29839 29840 29841 29842 29843 29844 29845 29846 29847 29848 29849 29850 29851 29852 29853 29854 29855 29856 29857 29858 29859 29860 29861 29862 29863 29864 29865 29866 29867 29868 29869 29870 29871 29872 29873 29874 29875 29876 29877 29878 29879 29880 29881 29882 29883 29884 29885 29886 29887 29888 29889 29890 29891 29892 29893 29894 29895 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29837 def get_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, 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, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}' 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,'webJobName' => web_job_name,'slot' => slot,'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 || status_code == 404 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_08_01::Models::TriggeredWebJob.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_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a triggered web job by its ID for an app, or a deployment slot.
Gets a triggered web job by its ID for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
29817 29818 29819 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29817 def get_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers:nil) get_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! end |
#get_triggered_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a triggered web job by its ID for an app, or a deployment slot.
Gets a triggered web job by its ID for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
32945 32946 32947 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32945 def get_triggered_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers:nil) get_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! end |
#get_vnet_connection(resource_group_name, name, vnet_name, custom_headers: nil) ⇒ VnetInfo
Gets a virtual network the app (or deployment slot) is connected to by name.
Gets a virtual network the app (or deployment slot) is connected to by name.
resource belongs. will be added to the HTTP request.
33711 33712 33713 33714 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33711 def get_vnet_connection(resource_group_name, name, vnet_name, custom_headers:nil) response = get_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets a virtual network the app (or deployment slot) is connected to by name.
Gets a virtual network the app (or deployment slot) is connected to by name.
resource belongs. to the HTTP request.
33748 33749 33750 33751 33752 33753 33754 33755 33756 33757 33758 33759 33760 33761 33762 33763 33764 33765 33766 33767 33768 33769 33770 33771 33772 33773 33774 33775 33776 33777 33778 33779 33780 33781 33782 33783 33784 33785 33786 33787 33788 33789 33790 33791 33792 33793 33794 33795 33796 33797 33798 33799 33800 33801 33802 33803 33804 33805 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33748 def get_vnet_connection_async(resource_group_name, name, vnet_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, 'vnet_name is nil' if vnet_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/sites/{name}/virtualNetworkConnections/{vnetName}' 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,'vnetName' => vnet_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_08_01::Models::VnetInfo.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_vnet_connection_gateway(resource_group_name, name, vnet_name, gateway_name, custom_headers: nil) ⇒ VnetGateway
Gets an app’s Virtual Network gateway.
Gets an app’s Virtual Network gateway.
resource belongs. supported string is “primary”. will be added to the HTTP request.
34188 34189 34190 34191 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34188 def get_vnet_connection_gateway(resource_group_name, name, vnet_name, gateway_name, custom_headers:nil) response = get_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets an app’s Virtual Network gateway.
Gets an app’s Virtual Network gateway.
resource belongs. supported string is “primary”. to the HTTP request.
34229 34230 34231 34232 34233 34234 34235 34236 34237 34238 34239 34240 34241 34242 34243 34244 34245 34246 34247 34248 34249 34250 34251 34252 34253 34254 34255 34256 34257 34258 34259 34260 34261 34262 34263 34264 34265 34266 34267 34268 34269 34270 34271 34272 34273 34274 34275 34276 34277 34278 34279 34280 34281 34282 34283 34284 34285 34286 34287 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34229 def get_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_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, 'vnet_name is nil' if vnet_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_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/sites/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}' 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,'vnetName' => vnet_name,'gatewayName' => gateway_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 || status_code == 404 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_08_01::Models::VnetGateway.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_vnet_connection_gateway_slot(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers: nil) ⇒ VnetGateway
Gets an app’s Virtual Network gateway.
Gets an app’s Virtual Network gateway.
resource belongs. supported string is “primary”. the API will get a gateway for the production slot’s Virtual Network. will be added to the HTTP request.
31135 31136 31137 31138 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31135 def get_vnet_connection_gateway_slot(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers:nil) response = get_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets an app’s Virtual Network gateway.
Gets an app’s Virtual Network gateway.
resource belongs. supported string is “primary”. the API will get a gateway for the production slot’s Virtual Network. to the HTTP request.
31180 31181 31182 31183 31184 31185 31186 31187 31188 31189 31190 31191 31192 31193 31194 31195 31196 31197 31198 31199 31200 31201 31202 31203 31204 31205 31206 31207 31208 31209 31210 31211 31212 31213 31214 31215 31216 31217 31218 31219 31220 31221 31222 31223 31224 31225 31226 31227 31228 31229 31230 31231 31232 31233 31234 31235 31236 31237 31238 31239 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31180 def get_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, slot, 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, 'vnet_name is nil' if vnet_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}' 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,'vnetName' => vnet_name,'gatewayName' => gateway_name,'slot' => slot,'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 || status_code == 404 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_08_01::Models::VnetGateway.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_vnet_connection_gateway_slot_with_http_info(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets an app’s Virtual Network gateway.
Gets an app’s Virtual Network gateway.
resource belongs. supported string is “primary”. the API will get a gateway for the production slot’s Virtual Network. will be added to the HTTP request.
31158 31159 31160 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31158 def get_vnet_connection_gateway_slot_with_http_info(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers:nil) get_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers:custom_headers).value! end |
#get_vnet_connection_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets an app’s Virtual Network gateway.
Gets an app’s Virtual Network gateway.
resource belongs. supported string is “primary”. will be added to the HTTP request.
34209 34210 34211 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34209 def get_vnet_connection_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, custom_headers:nil) get_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers:custom_headers).value! end |
#get_vnet_connection_slot(resource_group_name, name, vnet_name, slot, custom_headers: nil) ⇒ VnetInfo
Gets a virtual network the app (or deployment slot) is connected to by name.
Gets a virtual network the app (or deployment slot) is connected to by name.
resource belongs. the API will get the named virtual network for the production slot. will be added to the HTTP request.
30630 30631 30632 30633 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30630 def get_vnet_connection_slot(resource_group_name, name, vnet_name, slot, custom_headers:nil) response = get_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a virtual network the app (or deployment slot) is connected to by name.
Gets a virtual network the app (or deployment slot) is connected to by name.
resource belongs. the API will get the named virtual network for the production slot. to the HTTP request.
30671 30672 30673 30674 30675 30676 30677 30678 30679 30680 30681 30682 30683 30684 30685 30686 30687 30688 30689 30690 30691 30692 30693 30694 30695 30696 30697 30698 30699 30700 30701 30702 30703 30704 30705 30706 30707 30708 30709 30710 30711 30712 30713 30714 30715 30716 30717 30718 30719 30720 30721 30722 30723 30724 30725 30726 30727 30728 30729 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30671 def get_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, 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, 'vnet_name is nil' if vnet_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}' 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,'vnetName' => vnet_name,'slot' => slot,'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_08_01::Models::VnetInfo.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_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a virtual network the app (or deployment slot) is connected to by name.
Gets a virtual network the app (or deployment slot) is connected to by name.
resource belongs. the API will get the named virtual network for the production slot. will be added to the HTTP request.
30651 30652 30653 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30651 def get_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, slot, custom_headers:nil) get_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers:custom_headers).value! end |
#get_vnet_connection_with_http_info(resource_group_name, name, vnet_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a virtual network the app (or deployment slot) is connected to by name.
Gets a virtual network the app (or deployment slot) is connected to by name.
resource belongs. will be added to the HTTP request.
33730 33731 33732 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33730 def get_vnet_connection_with_http_info(resource_group_name, name, vnet_name, custom_headers:nil) get_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers:custom_headers).value! end |
#get_web_job(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ WebJob
Get webjob information for an app, or a deployment slot.
Get webjob information for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
34671 34672 34673 34674 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34671 def get_web_job(resource_group_name, name, web_job_name, custom_headers:nil) response = get_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_web_job_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
Get webjob information for an app, or a deployment slot.
Get webjob information for an app, or a deployment slot.
resource belongs. to the HTTP request.
34708 34709 34710 34711 34712 34713 34714 34715 34716 34717 34718 34719 34720 34721 34722 34723 34724 34725 34726 34727 34728 34729 34730 34731 34732 34733 34734 34735 34736 34737 34738 34739 34740 34741 34742 34743 34744 34745 34746 34747 34748 34749 34750 34751 34752 34753 34754 34755 34756 34757 34758 34759 34760 34761 34762 34763 34764 34765 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34708 def get_web_job_async(resource_group_name, name, web_job_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, 'web_job_name is nil' if web_job_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/sites/{name}/webjobs/{webJobName}' 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,'webJobName' => web_job_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_08_01::Models::WebJob.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_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ WebJob
Get webjob information for an app, or a deployment slot.
Get webjob information for an app, or a deployment slot.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
31652 31653 31654 31655 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31652 def get_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers:nil) response = get_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get webjob information for an app, or a deployment slot.
Get webjob information for an app, or a deployment slot.
resource belongs. the API returns deployments for the production slot. to the HTTP request.
31693 31694 31695 31696 31697 31698 31699 31700 31701 31702 31703 31704 31705 31706 31707 31708 31709 31710 31711 31712 31713 31714 31715 31716 31717 31718 31719 31720 31721 31722 31723 31724 31725 31726 31727 31728 31729 31730 31731 31732 31733 31734 31735 31736 31737 31738 31739 31740 31741 31742 31743 31744 31745 31746 31747 31748 31749 31750 31751 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31693 def get_web_job_slot_async(resource_group_name, name, web_job_name, slot, 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, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/webjobs/{webJobName}' 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,'webJobName' => web_job_name,'slot' => slot,'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_08_01::Models::WebJob.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_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get webjob information for an app, or a deployment slot.
Get webjob information for an app, or a deployment slot.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
31673 31674 31675 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31673 def get_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers:nil) get_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! end |
#get_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get webjob information for an app, or a deployment slot.
Get webjob information for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
34690 34691 34692 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34690 def get_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers:nil) get_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! end |
#get_web_site_container_logs(resource_group_name, name, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Gets the last lines of docker logs for the given site
Gets the last lines of docker logs for the given site
resource belongs. will be added to the HTTP request.
4351 4352 4353 4354 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4351 def get_web_site_container_logs(resource_group_name, name, custom_headers:nil) response = get_web_site_container_logs_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_web_site_container_logs_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the last lines of docker logs for the given site
Gets the last lines of docker logs for the given site
resource belongs. to the HTTP request.
4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 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 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4386 def get_web_site_container_logs_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/sites/{name}/containerlogs' 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 == 204 || 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: 'Stream' } } 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_web_site_container_logs_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Gets the last lines of docker logs for the given site
Gets the last lines of docker logs for the given site
resource belongs. to production slot. will be added to the HTTP request.
18356 18357 18358 18359 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18356 def get_web_site_container_logs_slot(resource_group_name, name, slot, custom_headers:nil) response = get_web_site_container_logs_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_web_site_container_logs_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the last lines of docker logs for the given site
Gets the last lines of docker logs for the given site
resource belongs. to production slot. to the HTTP request.
18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18395 def get_web_site_container_logs_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/containerlogs' 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,'slot' => slot,'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 == 204 || 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: 'Stream' } } 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_web_site_container_logs_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the last lines of docker logs for the given site
Gets the last lines of docker logs for the given site
resource belongs. to production slot. will be added to the HTTP request.
18376 18377 18378 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18376 def get_web_site_container_logs_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) get_web_site_container_logs_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#get_web_site_container_logs_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the last lines of docker logs for the given site
Gets the last lines of docker logs for the given site
resource belongs. will be added to the HTTP request.
4369 4370 4371 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4369 def get_web_site_container_logs_with_http_info(resource_group_name, name, custom_headers:nil) get_web_site_container_logs_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#get_web_site_container_logs_zip(resource_group_name, name, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Gets the ZIP archived docker log files for the given site
Gets the ZIP archived docker log files for the given site
resource belongs. will be added to the HTTP request.
4464 4465 4466 4467 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4464 def get_web_site_container_logs_zip(resource_group_name, name, custom_headers:nil) response = get_web_site_container_logs_zip_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_web_site_container_logs_zip_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the ZIP archived docker log files for the given site
Gets the ZIP archived docker log files for the given site
resource belongs. to the HTTP request.
4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4499 def get_web_site_container_logs_zip_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/sites/{name}/containerlogs/zip/download' 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 == 204 || 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: 'Stream' } } 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_web_site_container_logs_zip_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Gets the ZIP archived docker log files for the given site
Gets the ZIP archived docker log files for the given site
resource belongs. to production slot. will be added to the HTTP request.
18476 18477 18478 18479 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18476 def get_web_site_container_logs_zip_slot(resource_group_name, name, slot, custom_headers:nil) response = get_web_site_container_logs_zip_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_web_site_container_logs_zip_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the ZIP archived docker log files for the given site
Gets the ZIP archived docker log files for the given site
resource belongs. to production slot. to the HTTP request.
18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18515 def get_web_site_container_logs_zip_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/containerlogs/zip/download' 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,'slot' => slot,'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 == 204 || 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: 'Stream' } } 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_web_site_container_logs_zip_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the ZIP archived docker log files for the given site
Gets the ZIP archived docker log files for the given site
resource belongs. to production slot. will be added to the HTTP request.
18496 18497 18498 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18496 def get_web_site_container_logs_zip_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) get_web_site_container_logs_zip_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#get_web_site_container_logs_zip_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the ZIP archived docker log files for the given site
Gets the ZIP archived docker log files for the given site
resource belongs. will be added to the HTTP request.
4482 4483 4484 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4482 def get_web_site_container_logs_zip_with_http_info(resource_group_name, name, custom_headers:nil) get_web_site_container_logs_zip_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#get_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the details of a web, mobile, or API app.
Gets the details of a web, mobile, or API app.
resource belongs. will be added to the HTTP request.
258 259 260 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 258 def get_with_http_info(resource_group_name, name, custom_headers:nil) get_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#install_site_extension(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ SiteExtensionInfo
Install site extension on a web site, or a deployment slot.
Install site extension on a web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
13938 13939 13940 13941 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13938 def install_site_extension(resource_group_name, name, site_extension_id, custom_headers:nil) response = install_site_extension_async(resource_group_name, name, site_extension_id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#install_site_extension_async(resource_group_name, name, site_extension_id, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. will be added to the HTTP request.
response.
13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13954 def install_site_extension_async(resource_group_name, name, site_extension_id, custom_headers:nil) # Send request promise = begin_install_site_extension_async(resource_group_name, name, site_extension_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteExtensionInfo.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 |
#install_site_extension_slot(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ SiteExtensionInfo
Install site extension on a web site, or a deployment slot.
Install site extension on a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
28404 28405 28406 28407 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28404 def install_site_extension_slot(resource_group_name, name, site_extension_id, slot, custom_headers:nil) response = install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
response.
28422 28423 28424 28425 28426 28427 28428 28429 28430 28431 28432 28433 28434 28435 28436 28437 28438 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28422 def install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers:nil) # Send request promise = begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteExtensionInfo.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 |
#is_cloneable(resource_group_name, name, custom_headers: nil) ⇒ SiteCloneability
Shows whether an app can be cloned to another resource group or subscription.
Shows whether an app can be cloned to another resource group or subscription.
resource belongs. will be added to the HTTP request.
10174 10175 10176 10177 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10174 def is_cloneable(resource_group_name, name, custom_headers:nil) response = is_cloneable_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#is_cloneable_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Shows whether an app can be cloned to another resource group or subscription.
Shows whether an app can be cloned to another resource group or subscription.
resource belongs. to the HTTP request.
10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10209 def is_cloneable_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/sites/{name}/iscloneable' 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 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_08_01::Models::SiteCloneability.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 |
#is_cloneable_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ SiteCloneability
Shows whether an app can be cloned to another resource group or subscription.
Shows whether an app can be cloned to another resource group or subscription.
resource belongs. returns information on the production slot. will be added to the HTTP request.
24523 24524 24525 24526 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24523 def is_cloneable_slot(resource_group_name, name, slot, custom_headers:nil) response = is_cloneable_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#is_cloneable_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Shows whether an app can be cloned to another resource group or subscription.
Shows whether an app can be cloned to another resource group or subscription.
resource belongs. returns information on the production slot. to the HTTP request.
24562 24563 24564 24565 24566 24567 24568 24569 24570 24571 24572 24573 24574 24575 24576 24577 24578 24579 24580 24581 24582 24583 24584 24585 24586 24587 24588 24589 24590 24591 24592 24593 24594 24595 24596 24597 24598 24599 24600 24601 24602 24603 24604 24605 24606 24607 24608 24609 24610 24611 24612 24613 24614 24615 24616 24617 24618 24619 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24562 def is_cloneable_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/iscloneable' 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,'slot' => slot,'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 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_08_01::Models::SiteCloneability.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 |
#is_cloneable_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Shows whether an app can be cloned to another resource group or subscription.
Shows whether an app can be cloned to another resource group or subscription.
resource belongs. returns information on the production slot. will be added to the HTTP request.
24543 24544 24545 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24543 def is_cloneable_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) is_cloneable_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#is_cloneable_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Shows whether an app can be cloned to another resource group or subscription.
Shows whether an app can be cloned to another resource group or subscription.
resource belongs. will be added to the HTTP request.
10192 10193 10194 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10192 def is_cloneable_with_http_info(resource_group_name, name, custom_headers:nil) is_cloneable_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list(custom_headers: nil) ⇒ Array<Site>
Get all apps for a subscription.
Get all apps for a subscription.
will be added to the HTTP request.
34 35 36 37 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34 def list(custom_headers:nil) first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end |
#list_application_settings(resource_group_name, name, custom_headers: nil) ⇒ StringDictionary
Gets the application settings of an app.
Gets the application settings of an app.
resource belongs. will be added to the HTTP request.
1843 1844 1845 1846 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1843 def list_application_settings(resource_group_name, name, custom_headers:nil) response = list_application_settings_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_application_settings_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the application settings of an app.
Gets the application settings of an app.
resource belongs. to the HTTP request.
1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1878 def list_application_settings_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/sites/{name}/config/appsettings/list' 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 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_08_01::Models::StringDictionary.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_application_settings_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ StringDictionary
Gets the application settings of an app.
Gets the application settings of an app.
resource belongs. the API will get the application settings for the production slot. will be added to the HTTP request.
15942 15943 15944 15945 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15942 def list_application_settings_slot(resource_group_name, name, slot, custom_headers:nil) response = list_application_settings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_application_settings_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the application settings of an app.
Gets the application settings of an app.
resource belongs. the API will get the application settings for the production slot. to the HTTP request.
15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15981 def list_application_settings_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/config/appsettings/list' 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,'slot' => slot,'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 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_08_01::Models::StringDictionary.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_application_settings_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the application settings of an app.
Gets the application settings of an app.
resource belongs. the API will get the application settings for the production slot. will be added to the HTTP request.
15962 15963 15964 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15962 def list_application_settings_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_application_settings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_application_settings_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the application settings of an app.
Gets the application settings of an app.
resource belongs. will be added to the HTTP request.
1861 1862 1863 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1861 def list_application_settings_with_http_info(resource_group_name, name, custom_headers:nil) list_application_settings_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_as_lazy(custom_headers: nil) ⇒ WebAppCollection
Get all apps for a subscription.
Get all apps for a subscription.
will be added to the HTTP request.
response.
42907 42908 42909 42910 42911 42912 42913 42914 42915 42916 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42907 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 apps for a subscription.
Get all apps 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-08-01/generated/azure_mgmt_web/web_apps.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/sites' 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_08_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_backup_status_secrets(resource_group_name, name, backup_id, request, custom_headers: nil) ⇒ BackupItem
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body.
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body.
resource belongs. will be added to the HTTP request.
1439 1440 1441 1442 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1439 def list_backup_status_secrets(resource_group_name, name, backup_id, request, custom_headers:nil) response = list_backup_status_secrets_async(resource_group_name, name, backup_id, request, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_backup_status_secrets_async(resource_group_name, name, backup_id, request, custom_headers: nil) ⇒ Concurrent::Promise
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body.
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body.
resource belongs. to the HTTP request.
1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1490 def list_backup_status_secrets_async(resource_group_name, name, backup_id, request, 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, 'backup_id is nil' if backup_id.nil? fail ArgumentError, 'request is nil' if request.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_08_01::Models::BackupRequest.mapper() request_content = @client.serialize(request_mapper, request) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups/{backupId}/list' 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,'backupId' => backup_id,'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(: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 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_08_01::Models::BackupItem.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_backup_status_secrets_slot(resource_group_name, name, backup_id, request, slot, custom_headers: nil) ⇒ BackupItem
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body.
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body.
resource belongs. to production slot. will be added to the HTTP request.
15513 15514 15515 15516 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15513 def list_backup_status_secrets_slot(resource_group_name, name, backup_id, request, slot, custom_headers:nil) response = list_backup_status_secrets_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_backup_status_secrets_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body.
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body.
resource belongs. to production slot. to the HTTP request.
15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15568 def list_backup_status_secrets_slot_async(resource_group_name, name, backup_id, request, slot, 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, 'backup_id is nil' if backup_id.nil? fail ArgumentError, 'request is nil' if request.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::BackupRequest.mapper() request_content = @client.serialize(request_mapper, request) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}/list' 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,'backupId' => backup_id,'slot' => slot,'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(: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 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_08_01::Models::BackupItem.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_backup_status_secrets_slot_with_http_info(resource_group_name, name, backup_id, request, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body.
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body.
resource belongs. to production slot. will be added to the HTTP request.
15541 15542 15543 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15541 def list_backup_status_secrets_slot_with_http_info(resource_group_name, name, backup_id, request, slot, custom_headers:nil) list_backup_status_secrets_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers:custom_headers).value! end |
#list_backup_status_secrets_with_http_info(resource_group_name, name, backup_id, request, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body.
Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body.
resource belongs. will be added to the HTTP request.
1465 1466 1467 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1465 def list_backup_status_secrets_with_http_info(resource_group_name, name, backup_id, request, custom_headers:nil) list_backup_status_secrets_async(resource_group_name, name, backup_id, request, custom_headers:custom_headers).value! end |
#list_backups(resource_group_name, name, custom_headers: nil) ⇒ Array<BackupItem>
Gets existing backups of an app.
Gets existing backups of an app.
resource belongs. will be added to the HTTP request.
990 991 992 993 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 990 def list_backups(resource_group_name, name, custom_headers:nil) first_page = list_backups_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_backups_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ BackupItemCollection
Gets existing backups of an app.
Gets existing backups of an app.
resource belongs. will be added to the HTTP request.
response.
42959 42960 42961 42962 42963 42964 42965 42966 42967 42968 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42959 def list_backups_as_lazy(resource_group_name, name, custom_headers:nil) response = list_backups_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_backups_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_backups_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets existing backups of an app.
Gets existing backups of an app.
resource belongs. to the HTTP request.
1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 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 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1025 def list_backups_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/sites/{name}/backups' 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_08_01::Models::BackupItemCollection.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_backups_next(next_page_link, custom_headers: nil) ⇒ BackupItemCollection
Gets existing backups of an app.
Gets existing backups of an app.
to List operation. will be added to the HTTP request.
37724 37725 37726 37727 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37724 def list_backups_next(next_page_link, custom_headers:nil) response = list_backups_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_backups_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets existing backups of an app.
Gets existing backups of an app.
to List operation. to the HTTP request.
37757 37758 37759 37760 37761 37762 37763 37764 37765 37766 37767 37768 37769 37770 37771 37772 37773 37774 37775 37776 37777 37778 37779 37780 37781 37782 37783 37784 37785 37786 37787 37788 37789 37790 37791 37792 37793 37794 37795 37796 37797 37798 37799 37800 37801 37802 37803 37804 37805 37806 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37757 def list_backups_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_08_01::Models::BackupItemCollection.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_backups_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets existing backups of an app.
Gets existing backups of an app.
to List operation. will be added to the HTTP request.
37741 37742 37743 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37741 def list_backups_next_with_http_info(next_page_link, custom_headers:nil) list_backups_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_backups_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<BackupItem>
Gets existing backups of an app.
Gets existing backups of an app.
resource belongs. the API will get backups of the production slot. will be added to the HTTP request.
15036 15037 15038 15039 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15036 def list_backups_slot(resource_group_name, name, slot, custom_headers:nil) first_page = list_backups_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_backups_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ BackupItemCollection
Gets existing backups of an app.
Gets existing backups of an app.
resource belongs. the API will get backups of the production slot. will be added to the HTTP request.
response.
43523 43524 43525 43526 43527 43528 43529 43530 43531 43532 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43523 def list_backups_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) response = list_backups_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_backups_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_backups_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets existing backups of an app.
Gets existing backups of an app.
resource belongs. the API will get backups of the production slot. to the HTTP request.
15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15075 def list_backups_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/backups' 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,'slot' => slot,'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_08_01::Models::BackupItemCollection.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_backups_slot_next(next_page_link, custom_headers: nil) ⇒ BackupItemCollection
Gets existing backups of an app.
Gets existing backups of an app.
to List operation. will be added to the HTTP request.
39782 39783 39784 39785 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39782 def list_backups_slot_next(next_page_link, custom_headers:nil) response = list_backups_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_backups_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets existing backups of an app.
Gets existing backups of an app.
to List operation. to the HTTP request.
39815 39816 39817 39818 39819 39820 39821 39822 39823 39824 39825 39826 39827 39828 39829 39830 39831 39832 39833 39834 39835 39836 39837 39838 39839 39840 39841 39842 39843 39844 39845 39846 39847 39848 39849 39850 39851 39852 39853 39854 39855 39856 39857 39858 39859 39860 39861 39862 39863 39864 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39815 def list_backups_slot_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_08_01::Models::BackupItemCollection.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_backups_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets existing backups of an app.
Gets existing backups of an app.
to List operation. will be added to the HTTP request.
39799 39800 39801 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39799 def list_backups_slot_next_with_http_info(next_page_link, custom_headers:nil) list_backups_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_backups_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets existing backups of an app.
Gets existing backups of an app.
resource belongs. the API will get backups of the production slot. will be added to the HTTP request.
15056 15057 15058 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15056 def list_backups_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_backups_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_backups_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets existing backups of an app.
Gets existing backups of an app.
resource belongs. will be added to the HTTP request.
1008 1009 1010 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1008 def list_backups_with_http_info(resource_group_name, name, custom_headers:nil) list_backups_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_by_resource_group(resource_group_name, include_slots: nil, custom_headers: nil) ⇒ Array<Site>
Gets all web, mobile, and API apps in the specified resource group.
Gets all web, mobile, and API apps in the specified resource group.
resource belongs. deployment slots in results. The default is false, which only gives you the production slot of all apps. will be added to the HTTP request.
131 132 133 134 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 131 def list_by_resource_group(resource_group_name, include_slots:nil, custom_headers:nil) first_page = list_by_resource_group_as_lazy(resource_group_name, include_slots:include_slots, custom_headers:custom_headers) first_page.get_all_items end |
#list_by_resource_group_as_lazy(resource_group_name, include_slots: nil, custom_headers: nil) ⇒ WebAppCollection
Gets all web, mobile, and API apps in the specified resource group.
Gets all web, mobile, and API apps in the specified resource group.
resource belongs. deployment slots in results. The default is false, which only gives you the production slot of all apps. will be added to the HTTP request.
response.
42934 42935 42936 42937 42938 42939 42940 42941 42942 42943 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42934 def list_by_resource_group_as_lazy(resource_group_name, include_slots:nil, custom_headers:nil) response = list_by_resource_group_async(resource_group_name, include_slots:include_slots, 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, include_slots: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets all web, mobile, and API apps in the specified resource group.
Gets all web, mobile, and API apps in the specified resource group.
resource belongs. deployment slots in results. The default is false, which only gives you the production slot of all apps. to the HTTP request.
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 217 218 219 220 221 222 223 224 225 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 170 def list_by_resource_group_async(resource_group_name, include_slots: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, '@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/sites' 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: {'includeSlots' => include_slots,'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_08_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_by_resource_group_next(next_page_link, custom_headers: nil) ⇒ WebAppCollection
Gets all web, mobile, and API apps in the specified resource group.
Gets all web, mobile, and API apps in the specified resource group.
to List operation. will be added to the HTTP request.
37628 37629 37630 37631 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37628 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
Gets all web, mobile, and API apps in the specified resource group.
Gets all web, mobile, and API apps in the specified resource group.
to List operation. to the HTTP request.
37661 37662 37663 37664 37665 37666 37667 37668 37669 37670 37671 37672 37673 37674 37675 37676 37677 37678 37679 37680 37681 37682 37683 37684 37685 37686 37687 37688 37689 37690 37691 37692 37693 37694 37695 37696 37697 37698 37699 37700 37701 37702 37703 37704 37705 37706 37707 37708 37709 37710 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37661 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_08_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_by_resource_group_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all web, mobile, and API apps in the specified resource group.
Gets all web, mobile, and API apps in the specified resource group.
to List operation. will be added to the HTTP request.
37645 37646 37647 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37645 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, include_slots: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all web, mobile, and API apps in the specified resource group.
Gets all web, mobile, and API apps in the specified resource group.
resource belongs. deployment slots in results. The default is false, which only gives you the production slot of all apps. will be added to the HTTP request.
151 152 153 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 151 def list_by_resource_group_with_http_info(resource_group_name, include_slots:nil, custom_headers:nil) list_by_resource_group_async(resource_group_name, include_slots:include_slots, custom_headers:custom_headers).value! end |
#list_configuration_snapshot_info(resource_group_name, name, custom_headers: nil) ⇒ Array<SiteConfigurationSnapshotInfo>
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
resource belongs. will be added to the HTTP request.
4032 4033 4034 4035 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4032 def list_configuration_snapshot_info(resource_group_name, name, custom_headers:nil) first_page = list_configuration_snapshot_info_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_configuration_snapshot_info_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ SiteConfigurationSnapshotInfoCollection
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
resource belongs. will be added to the HTTP request.
to pages of the response.
43011 43012 43013 43014 43015 43016 43017 43018 43019 43020 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43011 def list_configuration_snapshot_info_as_lazy(resource_group_name, name, custom_headers:nil) response = list_configuration_snapshot_info_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_configuration_snapshot_info_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_configuration_snapshot_info_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
resource belongs. to the HTTP request.
4071 4072 4073 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 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4071 def list_configuration_snapshot_info_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/sites/{name}/config/web/snapshots' 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_08_01::Models::SiteConfigurationSnapshotInfoCollection.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_configuration_snapshot_info_next(next_page_link, custom_headers: nil) ⇒ SiteConfigurationSnapshotInfoCollection
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
to List operation. will be added to the HTTP request.
37918 37919 37920 37921 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37918 def list_configuration_snapshot_info_next(next_page_link, custom_headers:nil) response = list_configuration_snapshot_info_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_configuration_snapshot_info_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
to List operation. to the HTTP request.
37955 37956 37957 37958 37959 37960 37961 37962 37963 37964 37965 37966 37967 37968 37969 37970 37971 37972 37973 37974 37975 37976 37977 37978 37979 37980 37981 37982 37983 37984 37985 37986 37987 37988 37989 37990 37991 37992 37993 37994 37995 37996 37997 37998 37999 38000 38001 38002 38003 38004 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37955 def list_configuration_snapshot_info_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_08_01::Models::SiteConfigurationSnapshotInfoCollection.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_configuration_snapshot_info_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
to List operation. will be added to the HTTP request.
37937 37938 37939 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37937 def list_configuration_snapshot_info_next_with_http_info(next_page_link, custom_headers:nil) list_configuration_snapshot_info_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_configuration_snapshot_info_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<SiteConfigurationSnapshotInfo>
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
resource belongs. the API will return configuration for the production slot. will be added to the HTTP request.
18016 18017 18018 18019 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18016 def list_configuration_snapshot_info_slot(resource_group_name, name, slot, custom_headers:nil) first_page = list_configuration_snapshot_info_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_configuration_snapshot_info_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ SiteConfigurationSnapshotInfoCollection
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
resource belongs. the API will return configuration for the production slot. will be added to the HTTP request.
to pages of the response.
43579 43580 43581 43582 43583 43584 43585 43586 43587 43588 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43579 def list_configuration_snapshot_info_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) response = list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_configuration_snapshot_info_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
resource belongs. the API will return configuration for the production slot. to the HTTP request.
18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18059 def list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/config/web/snapshots' 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,'slot' => slot,'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_08_01::Models::SiteConfigurationSnapshotInfoCollection.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_configuration_snapshot_info_slot_next(next_page_link, custom_headers: nil) ⇒ SiteConfigurationSnapshotInfoCollection
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
to List operation. will be added to the HTTP request.
39976 39977 39978 39979 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39976 def list_configuration_snapshot_info_slot_next(next_page_link, custom_headers:nil) response = list_configuration_snapshot_info_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_configuration_snapshot_info_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
to List operation. to the HTTP request.
40013 40014 40015 40016 40017 40018 40019 40020 40021 40022 40023 40024 40025 40026 40027 40028 40029 40030 40031 40032 40033 40034 40035 40036 40037 40038 40039 40040 40041 40042 40043 40044 40045 40046 40047 40048 40049 40050 40051 40052 40053 40054 40055 40056 40057 40058 40059 40060 40061 40062 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40013 def list_configuration_snapshot_info_slot_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_08_01::Models::SiteConfigurationSnapshotInfoCollection.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_configuration_snapshot_info_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
to List operation. will be added to the HTTP request.
39995 39996 39997 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39995 def list_configuration_snapshot_info_slot_next_with_http_info(next_page_link, custom_headers:nil) list_configuration_snapshot_info_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_configuration_snapshot_info_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
resource belongs. the API will return configuration for the production slot. will be added to the HTTP request.
18038 18039 18040 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18038 def list_configuration_snapshot_info_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_configuration_snapshot_info_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot.
resource belongs. will be added to the HTTP request.
4052 4053 4054 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4052 def list_configuration_snapshot_info_with_http_info(resource_group_name, name, custom_headers:nil) list_configuration_snapshot_info_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_configurations(resource_group_name, name, custom_headers: nil) ⇒ Array<SiteConfigResource>
List the configurations of an app
List the configurations of an app
resource belongs. will be added to the HTTP request.
1620 1621 1622 1623 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1620 def list_configurations(resource_group_name, name, custom_headers:nil) first_page = list_configurations_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_configurations_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ SiteConfigResourceCollection
List the configurations of an app
List the configurations of an app
resource belongs. will be added to the HTTP request.
the response.
42984 42985 42986 42987 42988 42989 42990 42991 42992 42993 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42984 def list_configurations_as_lazy(resource_group_name, name, custom_headers:nil) response = list_configurations_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_configurations_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_configurations_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
List the configurations of an app
List the configurations of an app
resource belongs. to the HTTP request.
1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 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 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1655 def list_configurations_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/sites/{name}/config' 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_08_01::Models::SiteConfigResourceCollection.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_configurations_next(next_page_link, custom_headers: nil) ⇒ SiteConfigResourceCollection
List the configurations of an app
List the configurations of an app
to List operation. will be added to the HTTP request.
37820 37821 37822 37823 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37820 def list_configurations_next(next_page_link, custom_headers:nil) response = list_configurations_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_configurations_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List the configurations of an app
List the configurations of an app
to List operation. to the HTTP request.
37853 37854 37855 37856 37857 37858 37859 37860 37861 37862 37863 37864 37865 37866 37867 37868 37869 37870 37871 37872 37873 37874 37875 37876 37877 37878 37879 37880 37881 37882 37883 37884 37885 37886 37887 37888 37889 37890 37891 37892 37893 37894 37895 37896 37897 37898 37899 37900 37901 37902 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37853 def list_configurations_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_08_01::Models::SiteConfigResourceCollection.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_configurations_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the configurations of an app
List the configurations of an app
to List operation. will be added to the HTTP request.
37837 37838 37839 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37837 def list_configurations_next_with_http_info(next_page_link, custom_headers:nil) list_configurations_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_configurations_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<SiteConfigResource>
List the configurations of an app
List the configurations of an app
resource belongs. the API will return configuration for the production slot. will be added to the HTTP request.
15705 15706 15707 15708 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15705 def list_configurations_slot(resource_group_name, name, slot, custom_headers:nil) first_page = list_configurations_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_configurations_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ SiteConfigResourceCollection
List the configurations of an app
List the configurations of an app
resource belongs. the API will return configuration for the production slot. will be added to the HTTP request.
the response.
43550 43551 43552 43553 43554 43555 43556 43557 43558 43559 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43550 def list_configurations_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) response = list_configurations_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_configurations_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_configurations_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
List the configurations of an app
List the configurations of an app
resource belongs. the API will return configuration for the production slot. to the HTTP request.
15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15744 def list_configurations_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/config' 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,'slot' => slot,'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_08_01::Models::SiteConfigResourceCollection.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_configurations_slot_next(next_page_link, custom_headers: nil) ⇒ SiteConfigResourceCollection
List the configurations of an app
List the configurations of an app
to List operation. will be added to the HTTP request.
39878 39879 39880 39881 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39878 def list_configurations_slot_next(next_page_link, custom_headers:nil) response = list_configurations_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_configurations_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List the configurations of an app
List the configurations of an app
to List operation. to the HTTP request.
39911 39912 39913 39914 39915 39916 39917 39918 39919 39920 39921 39922 39923 39924 39925 39926 39927 39928 39929 39930 39931 39932 39933 39934 39935 39936 39937 39938 39939 39940 39941 39942 39943 39944 39945 39946 39947 39948 39949 39950 39951 39952 39953 39954 39955 39956 39957 39958 39959 39960 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39911 def list_configurations_slot_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_08_01::Models::SiteConfigResourceCollection.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_configurations_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the configurations of an app
List the configurations of an app
to List operation. will be added to the HTTP request.
39895 39896 39897 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39895 def list_configurations_slot_next_with_http_info(next_page_link, custom_headers:nil) list_configurations_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_configurations_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the configurations of an app
List the configurations of an app
resource belongs. the API will return configuration for the production slot. will be added to the HTTP request.
15725 15726 15727 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15725 def list_configurations_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_configurations_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_configurations_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the configurations of an app
List the configurations of an app
resource belongs. will be added to the HTTP request.
1638 1639 1640 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1638 def list_configurations_with_http_info(resource_group_name, name, custom_headers:nil) list_configurations_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_connection_strings(resource_group_name, name, custom_headers: nil) ⇒ ConnectionStringDictionary
Gets the connection strings of an app.
Gets the connection strings of an app.
resource belongs. will be added to the HTTP request.
2613 2614 2615 2616 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2613 def list_connection_strings(resource_group_name, name, custom_headers:nil) response = list_connection_strings_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_connection_strings_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the connection strings of an app.
Gets the connection strings of an app.
resource belongs. to the HTTP request.
2648 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 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2648 def list_connection_strings_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/sites/{name}/config/connectionstrings/list' 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 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_08_01::Models::ConnectionStringDictionary.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_connection_strings_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ ConnectionStringDictionary
Gets the connection strings of an app.
Gets the connection strings of an app.
resource belongs. the API will get the connection settings for the production slot. will be added to the HTTP request.
16761 16762 16763 16764 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16761 def list_connection_strings_slot(resource_group_name, name, slot, custom_headers:nil) response = list_connection_strings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_connection_strings_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the connection strings of an app.
Gets the connection strings of an app.
resource belongs. the API will get the connection settings for the production slot. to the HTTP request.
16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16800 def list_connection_strings_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/config/connectionstrings/list' 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,'slot' => slot,'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 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_08_01::Models::ConnectionStringDictionary.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_connection_strings_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the connection strings of an app.
Gets the connection strings of an app.
resource belongs. the API will get the connection settings for the production slot. will be added to the HTTP request.
16781 16782 16783 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16781 def list_connection_strings_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_connection_strings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_connection_strings_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the connection strings of an app.
Gets the connection strings of an app.
resource belongs. will be added to the HTTP request.
2631 2632 2633 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2631 def list_connection_strings_with_http_info(resource_group_name, name, custom_headers:nil) list_connection_strings_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_continuous_web_jobs(resource_group_name, name, custom_headers: nil) ⇒ Array<ContinuousWebJob>
List continuous web jobs for an app, or a deployment slot.
List continuous web jobs for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
4577 4578 4579 4580 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4577 def list_continuous_web_jobs(resource_group_name, name, custom_headers:nil) first_page = list_continuous_web_jobs_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_continuous_web_jobs_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ ContinuousWebJobCollection
List continuous web jobs for an app, or a deployment slot.
List continuous web jobs for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
the response.
43036 43037 43038 43039 43040 43041 43042 43043 43044 43045 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43036 def list_continuous_web_jobs_as_lazy(resource_group_name, name, custom_headers:nil) response = list_continuous_web_jobs_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_continuous_web_jobs_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_continuous_web_jobs_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
List continuous web jobs for an app, or a deployment slot.
List continuous web jobs for an app, or a deployment slot.
resource belongs. to the HTTP request.
4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4612 def list_continuous_web_jobs_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/sites/{name}/continuouswebjobs' 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_08_01::Models::ContinuousWebJobCollection.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_continuous_web_jobs_next(next_page_link, custom_headers: nil) ⇒ ContinuousWebJobCollection
List continuous web jobs for an app, or a deployment slot.
List continuous web jobs for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
38018 38019 38020 38021 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38018 def list_continuous_web_jobs_next(next_page_link, custom_headers:nil) response = list_continuous_web_jobs_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_continuous_web_jobs_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List continuous web jobs for an app, or a deployment slot.
List continuous web jobs for an app, or a deployment slot.
to List operation. to the HTTP request.
38051 38052 38053 38054 38055 38056 38057 38058 38059 38060 38061 38062 38063 38064 38065 38066 38067 38068 38069 38070 38071 38072 38073 38074 38075 38076 38077 38078 38079 38080 38081 38082 38083 38084 38085 38086 38087 38088 38089 38090 38091 38092 38093 38094 38095 38096 38097 38098 38099 38100 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38051 def list_continuous_web_jobs_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_08_01::Models::ContinuousWebJobCollection.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_continuous_web_jobs_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List continuous web jobs for an app, or a deployment slot.
List continuous web jobs for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
38035 38036 38037 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38035 def list_continuous_web_jobs_next_with_http_info(next_page_link, custom_headers:nil) list_continuous_web_jobs_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_continuous_web_jobs_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<ContinuousWebJob>
List continuous web jobs for an app, or a deployment slot.
List continuous web jobs for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
18596 18597 18598 18599 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18596 def list_continuous_web_jobs_slot(resource_group_name, name, slot, custom_headers:nil) first_page = list_continuous_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_continuous_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ ContinuousWebJobCollection
List continuous web jobs for an app, or a deployment slot.
List continuous web jobs for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
the response.
43606 43607 43608 43609 43610 43611 43612 43613 43614 43615 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43606 def list_continuous_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) response = list_continuous_web_jobs_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_continuous_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_continuous_web_jobs_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
List continuous web jobs for an app, or a deployment slot.
List continuous web jobs for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18635 def list_continuous_web_jobs_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/continuouswebjobs' 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,'slot' => slot,'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_08_01::Models::ContinuousWebJobCollection.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_continuous_web_jobs_slot_next(next_page_link, custom_headers: nil) ⇒ ContinuousWebJobCollection
List continuous web jobs for an app, or a deployment slot.
List continuous web jobs for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
40076 40077 40078 40079 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40076 def list_continuous_web_jobs_slot_next(next_page_link, custom_headers:nil) response = list_continuous_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_continuous_web_jobs_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List continuous web jobs for an app, or a deployment slot.
List continuous web jobs for an app, or a deployment slot.
to List operation. to the HTTP request.
40109 40110 40111 40112 40113 40114 40115 40116 40117 40118 40119 40120 40121 40122 40123 40124 40125 40126 40127 40128 40129 40130 40131 40132 40133 40134 40135 40136 40137 40138 40139 40140 40141 40142 40143 40144 40145 40146 40147 40148 40149 40150 40151 40152 40153 40154 40155 40156 40157 40158 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40109 def list_continuous_web_jobs_slot_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_08_01::Models::ContinuousWebJobCollection.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_continuous_web_jobs_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List continuous web jobs for an app, or a deployment slot.
List continuous web jobs for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
40093 40094 40095 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40093 def list_continuous_web_jobs_slot_next_with_http_info(next_page_link, custom_headers:nil) list_continuous_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_continuous_web_jobs_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List continuous web jobs for an app, or a deployment slot.
List continuous web jobs for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
18616 18617 18618 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18616 def list_continuous_web_jobs_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_continuous_web_jobs_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_continuous_web_jobs_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List continuous web jobs for an app, or a deployment slot.
List continuous web jobs for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
4595 4596 4597 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4595 def list_continuous_web_jobs_with_http_info(resource_group_name, name, custom_headers:nil) list_continuous_web_jobs_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_deployment_log(resource_group_name, name, id, custom_headers: nil) ⇒ Deployment
List deployment log for specific deployment for an app, or a deployment slot.
List deployment log for specific deployment for an app, or a deployment slot.
resource belongs. name property in the JSON response from “GET /api/sites/siteName/deployments”. will be added to the HTTP request.
5529 5530 5531 5532 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5529 def list_deployment_log(resource_group_name, name, id, custom_headers:nil) response = list_deployment_log_async(resource_group_name, name, id, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_deployment_log_async(resource_group_name, name, id, custom_headers: nil) ⇒ Concurrent::Promise
List deployment log for specific deployment for an app, or a deployment slot.
List deployment log for specific deployment for an app, or a deployment slot.
resource belongs. name property in the JSON response from “GET /api/sites/siteName/deployments”. to the HTTP request.
5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 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 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5570 def list_deployment_log_async(resource_group_name, name, id, 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, 'id is nil' if id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/deployments/{id}/log' 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,'id' => id,'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_08_01::Models::Deployment.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_deployment_log_slot(resource_group_name, name, id, slot, custom_headers: nil) ⇒ Deployment
List deployment log for specific deployment for an app, or a deployment slot.
List deployment log for specific deployment for an app, or a deployment slot.
resource belongs. name property in the JSON response from “GET /api/sites/siteName/deployments”. the API returns deployments for the production slot. will be added to the HTTP request.
19611 19612 19613 19614 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19611 def list_deployment_log_slot(resource_group_name, name, id, slot, custom_headers:nil) response = list_deployment_log_slot_async(resource_group_name, name, id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_deployment_log_slot_async(resource_group_name, name, id, slot, custom_headers: nil) ⇒ Concurrent::Promise
List deployment log for specific deployment for an app, or a deployment slot.
List deployment log for specific deployment for an app, or a deployment slot.
resource belongs. name property in the JSON response from “GET /api/sites/siteName/deployments”. the API returns deployments for the production slot. to the HTTP request.
19656 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675 19676 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701 19702 19703 19704 19705 19706 19707 19708 19709 19710 19711 19712 19713 19714 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19656 def list_deployment_log_slot_async(resource_group_name, name, id, slot, 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, 'id is nil' if id.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/deployments/{id}/log' 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,'id' => id,'slot' => slot,'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_08_01::Models::Deployment.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_deployment_log_slot_with_http_info(resource_group_name, name, id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List deployment log for specific deployment for an app, or a deployment slot.
List deployment log for specific deployment for an app, or a deployment slot.
resource belongs. name property in the JSON response from “GET /api/sites/siteName/deployments”. the API returns deployments for the production slot. will be added to the HTTP request.
19634 19635 19636 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19634 def list_deployment_log_slot_with_http_info(resource_group_name, name, id, slot, custom_headers:nil) list_deployment_log_slot_async(resource_group_name, name, id, slot, custom_headers:custom_headers).value! end |
#list_deployment_log_with_http_info(resource_group_name, name, id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List deployment log for specific deployment for an app, or a deployment slot.
List deployment log for specific deployment for an app, or a deployment slot.
resource belongs. name property in the JSON response from “GET /api/sites/siteName/deployments”. will be added to the HTTP request.
5550 5551 5552 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5550 def list_deployment_log_with_http_info(resource_group_name, name, id, custom_headers:nil) list_deployment_log_async(resource_group_name, name, id, custom_headers:custom_headers).value! end |
#list_deployments(resource_group_name, name, custom_headers: nil) ⇒ Array<Deployment>
List deployments for an app, or a deployment slot.
List deployments for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
5090 5091 5092 5093 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5090 def list_deployments(resource_group_name, name, custom_headers:nil) first_page = list_deployments_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_deployments_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ DeploymentCollection
List deployments for an app, or a deployment slot.
List deployments for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
response.
43061 43062 43063 43064 43065 43066 43067 43068 43069 43070 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43061 def list_deployments_as_lazy(resource_group_name, name, custom_headers:nil) response = list_deployments_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_deployments_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_deployments_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
List deployments for an app, or a deployment slot.
List deployments for an app, or a deployment slot.
resource belongs. to the HTTP request.
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 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5125 def list_deployments_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/sites/{name}/deployments' 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_08_01::Models::DeploymentCollection.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_deployments_next(next_page_link, custom_headers: nil) ⇒ DeploymentCollection
List deployments for an app, or a deployment slot.
List deployments for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
38114 38115 38116 38117 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38114 def list_deployments_next(next_page_link, custom_headers:nil) response = list_deployments_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_deployments_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List deployments for an app, or a deployment slot.
List deployments for an app, or a deployment slot.
to List operation. to the HTTP request.
38147 38148 38149 38150 38151 38152 38153 38154 38155 38156 38157 38158 38159 38160 38161 38162 38163 38164 38165 38166 38167 38168 38169 38170 38171 38172 38173 38174 38175 38176 38177 38178 38179 38180 38181 38182 38183 38184 38185 38186 38187 38188 38189 38190 38191 38192 38193 38194 38195 38196 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38147 def list_deployments_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_08_01::Models::DeploymentCollection.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_deployments_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List deployments for an app, or a deployment slot.
List deployments for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
38131 38132 38133 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38131 def list_deployments_next_with_http_info(next_page_link, custom_headers:nil) list_deployments_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_deployments_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<Deployment>
List deployments for an app, or a deployment slot.
List deployments for an app, or a deployment slot.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
19144 19145 19146 19147 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19144 def list_deployments_slot(resource_group_name, name, slot, custom_headers:nil) first_page = list_deployments_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_deployments_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ DeploymentCollection
List deployments for an app, or a deployment slot.
List deployments for an app, or a deployment slot.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
response.
43633 43634 43635 43636 43637 43638 43639 43640 43641 43642 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43633 def list_deployments_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) response = list_deployments_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_deployments_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_deployments_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
List deployments for an app, or a deployment slot.
List deployments for an app, or a deployment slot.
resource belongs. the API returns deployments for the production slot. to the HTTP request.
19183 19184 19185 19186 19187 19188 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229 19230 19231 19232 19233 19234 19235 19236 19237 19238 19239 19240 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19183 def list_deployments_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/deployments' 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,'slot' => slot,'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_08_01::Models::DeploymentCollection.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_deployments_slot_next(next_page_link, custom_headers: nil) ⇒ DeploymentCollection
List deployments for an app, or a deployment slot.
List deployments for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
40172 40173 40174 40175 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40172 def list_deployments_slot_next(next_page_link, custom_headers:nil) response = list_deployments_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_deployments_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List deployments for an app, or a deployment slot.
List deployments for an app, or a deployment slot.
to List operation. to the HTTP request.
40205 40206 40207 40208 40209 40210 40211 40212 40213 40214 40215 40216 40217 40218 40219 40220 40221 40222 40223 40224 40225 40226 40227 40228 40229 40230 40231 40232 40233 40234 40235 40236 40237 40238 40239 40240 40241 40242 40243 40244 40245 40246 40247 40248 40249 40250 40251 40252 40253 40254 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40205 def list_deployments_slot_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_08_01::Models::DeploymentCollection.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_deployments_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List deployments for an app, or a deployment slot.
List deployments for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
40189 40190 40191 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40189 def list_deployments_slot_next_with_http_info(next_page_link, custom_headers:nil) list_deployments_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_deployments_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List deployments for an app, or a deployment slot.
List deployments for an app, or a deployment slot.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
19164 19165 19166 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19164 def list_deployments_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_deployments_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_deployments_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List deployments for an app, or a deployment slot.
List deployments for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
5108 5109 5110 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5108 def list_deployments_with_http_info(resource_group_name, name, custom_headers:nil) list_deployments_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_domain_ownership_identifiers(resource_group_name, name, custom_headers: nil) ⇒ Array<Identifier>
Lists ownership identifiers for domain associated with web app.
Lists ownership identifiers for domain associated with web app.
resource belongs. will be added to the HTTP request.
5642 5643 5644 5645 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5642 def list_domain_ownership_identifiers(resource_group_name, name, custom_headers:nil) first_page = list_domain_ownership_identifiers_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_domain_ownership_identifiers_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ IdentifierCollection
Lists ownership identifiers for domain associated with web app.
Lists ownership identifiers for domain associated with web app.
resource belongs. will be added to the HTTP request.
response.
43086 43087 43088 43089 43090 43091 43092 43093 43094 43095 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43086 def list_domain_ownership_identifiers_as_lazy(resource_group_name, name, custom_headers:nil) response = list_domain_ownership_identifiers_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_domain_ownership_identifiers_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_domain_ownership_identifiers_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Lists ownership identifiers for domain associated with web app.
Lists ownership identifiers for domain associated with web app.
resource belongs. to the HTTP request.
5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 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 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5677 def list_domain_ownership_identifiers_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/sites/{name}/domainOwnershipIdentifiers' 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_08_01::Models::IdentifierCollection.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_domain_ownership_identifiers_next(next_page_link, custom_headers: nil) ⇒ IdentifierCollection
Lists ownership identifiers for domain associated with web app.
Lists ownership identifiers for domain associated with web app.
to List operation. will be added to the HTTP request.
38210 38211 38212 38213 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38210 def list_domain_ownership_identifiers_next(next_page_link, custom_headers:nil) response = list_domain_ownership_identifiers_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_domain_ownership_identifiers_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists ownership identifiers for domain associated with web app.
Lists ownership identifiers for domain associated with web app.
to List operation. to the HTTP request.
38243 38244 38245 38246 38247 38248 38249 38250 38251 38252 38253 38254 38255 38256 38257 38258 38259 38260 38261 38262 38263 38264 38265 38266 38267 38268 38269 38270 38271 38272 38273 38274 38275 38276 38277 38278 38279 38280 38281 38282 38283 38284 38285 38286 38287 38288 38289 38290 38291 38292 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38243 def list_domain_ownership_identifiers_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_08_01::Models::IdentifierCollection.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_domain_ownership_identifiers_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists ownership identifiers for domain associated with web app.
Lists ownership identifiers for domain associated with web app.
to List operation. will be added to the HTTP request.
38227 38228 38229 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38227 def list_domain_ownership_identifiers_next_with_http_info(next_page_link, custom_headers:nil) list_domain_ownership_identifiers_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_domain_ownership_identifiers_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<Identifier>
Lists ownership identifiers for domain associated with web app.
Lists ownership identifiers for domain associated with web app.
resource belongs. the API will delete the binding for the production slot. will be added to the HTTP request.
19731 19732 19733 19734 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19731 def list_domain_ownership_identifiers_slot(resource_group_name, name, slot, custom_headers:nil) first_page = list_domain_ownership_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_domain_ownership_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ IdentifierCollection
Lists ownership identifiers for domain associated with web app.
Lists ownership identifiers for domain associated with web app.
resource belongs. the API will delete the binding for the production slot. will be added to the HTTP request.
response.
43660 43661 43662 43663 43664 43665 43666 43667 43668 43669 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43660 def list_domain_ownership_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) response = list_domain_ownership_identifiers_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_domain_ownership_identifiers_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_domain_ownership_identifiers_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Lists ownership identifiers for domain associated with web app.
Lists ownership identifiers for domain associated with web app.
resource belongs. the API will delete the binding for the production slot. to the HTTP request.
19770 19771 19772 19773 19774 19775 19776 19777 19778 19779 19780 19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 19791 19792 19793 19794 19795 19796 19797 19798 19799 19800 19801 19802 19803 19804 19805 19806 19807 19808 19809 19810 19811 19812 19813 19814 19815 19816 19817 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19770 def list_domain_ownership_identifiers_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/domainOwnershipIdentifiers' 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,'slot' => slot,'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_08_01::Models::IdentifierCollection.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_domain_ownership_identifiers_slot_next(next_page_link, custom_headers: nil) ⇒ IdentifierCollection
Lists ownership identifiers for domain associated with web app.
Lists ownership identifiers for domain associated with web app.
to List operation. will be added to the HTTP request.
40268 40269 40270 40271 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40268 def list_domain_ownership_identifiers_slot_next(next_page_link, custom_headers:nil) response = list_domain_ownership_identifiers_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_domain_ownership_identifiers_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Lists ownership identifiers for domain associated with web app.
Lists ownership identifiers for domain associated with web app.
to List operation. to the HTTP request.
40301 40302 40303 40304 40305 40306 40307 40308 40309 40310 40311 40312 40313 40314 40315 40316 40317 40318 40319 40320 40321 40322 40323 40324 40325 40326 40327 40328 40329 40330 40331 40332 40333 40334 40335 40336 40337 40338 40339 40340 40341 40342 40343 40344 40345 40346 40347 40348 40349 40350 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40301 def list_domain_ownership_identifiers_slot_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_08_01::Models::IdentifierCollection.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_domain_ownership_identifiers_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists ownership identifiers for domain associated with web app.
Lists ownership identifiers for domain associated with web app.
to List operation. will be added to the HTTP request.
40285 40286 40287 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40285 def list_domain_ownership_identifiers_slot_next_with_http_info(next_page_link, custom_headers:nil) list_domain_ownership_identifiers_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_domain_ownership_identifiers_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists ownership identifiers for domain associated with web app.
Lists ownership identifiers for domain associated with web app.
resource belongs. the API will delete the binding for the production slot. will be added to the HTTP request.
19751 19752 19753 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19751 def list_domain_ownership_identifiers_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_domain_ownership_identifiers_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_domain_ownership_identifiers_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Lists ownership identifiers for domain associated with web app.
Lists ownership identifiers for domain associated with web app.
resource belongs. will be added to the HTTP request.
5660 5661 5662 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5660 def list_domain_ownership_identifiers_with_http_info(resource_group_name, name, custom_headers:nil) list_domain_ownership_identifiers_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_function_secrets(resource_group_name, name, function_name, custom_headers: nil) ⇒ FunctionSecrets
Get function secrets for a function in a web site, or a deployment slot.
Get function secrets for a function in a web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
6968 6969 6970 6971 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6968 def list_function_secrets(resource_group_name, name, function_name, custom_headers:nil) response = list_function_secrets_async(resource_group_name, name, function_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_function_secrets_async(resource_group_name, name, function_name, custom_headers: nil) ⇒ Concurrent::Promise
Get function secrets for a function in a web site, or a deployment slot.
Get function secrets for a function in a web site, or a deployment slot.
resource belongs. to the HTTP request.
7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7005 def list_function_secrets_async(resource_group_name, name, function_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, 'function_name is nil' if function_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/sites/{name}/functions/{functionName}/listsecrets' 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,'functionName' => function_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 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_08_01::Models::FunctionSecrets.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_function_secrets_slot(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ FunctionSecrets
Get function secrets for a function in a web site, or a deployment slot.
Get function secrets for a function in a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
21142 21143 21144 21145 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21142 def list_function_secrets_slot(resource_group_name, name, function_name, slot, custom_headers:nil) response = list_function_secrets_slot_async(resource_group_name, name, function_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_function_secrets_slot_async(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get function secrets for a function in a web site, or a deployment slot.
Get function secrets for a function in a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
21183 21184 21185 21186 21187 21188 21189 21190 21191 21192 21193 21194 21195 21196 21197 21198 21199 21200 21201 21202 21203 21204 21205 21206 21207 21208 21209 21210 21211 21212 21213 21214 21215 21216 21217 21218 21219 21220 21221 21222 21223 21224 21225 21226 21227 21228 21229 21230 21231 21232 21233 21234 21235 21236 21237 21238 21239 21240 21241 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21183 def list_function_secrets_slot_async(resource_group_name, name, function_name, slot, 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, 'function_name is nil' if function_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/functions/{functionName}/listsecrets' 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,'functionName' => function_name,'slot' => slot,'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 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_08_01::Models::FunctionSecrets.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_function_secrets_slot_with_http_info(resource_group_name, name, function_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get function secrets for a function in a web site, or a deployment slot.
Get function secrets for a function in a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
21163 21164 21165 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21163 def list_function_secrets_slot_with_http_info(resource_group_name, name, function_name, slot, custom_headers:nil) list_function_secrets_slot_async(resource_group_name, name, function_name, slot, custom_headers:custom_headers).value! end |
#list_function_secrets_with_http_info(resource_group_name, name, function_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get function secrets for a function in a web site, or a deployment slot.
Get function secrets for a function in a web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
6987 6988 6989 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6987 def list_function_secrets_with_http_info(resource_group_name, name, function_name, custom_headers:nil) list_function_secrets_async(resource_group_name, name, function_name, custom_headers:custom_headers).value! end |
#list_functions(resource_group_name, name, custom_headers: nil) ⇒ Array<FunctionEnvelope>
List the functions for a web site, or a deployment slot.
List the functions for a web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
6489 6490 6491 6492 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6489 def list_functions(resource_group_name, name, custom_headers:nil) first_page = list_functions_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_functions_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ FunctionEnvelopeCollection
List the functions for a web site, or a deployment slot.
List the functions for a web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
the response.
43111 43112 43113 43114 43115 43116 43117 43118 43119 43120 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43111 def list_functions_as_lazy(resource_group_name, name, custom_headers:nil) response = list_functions_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_functions_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_functions_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
List the functions for a web site, or a deployment slot.
List the functions for a web site, or a deployment slot.
resource belongs. to the HTTP request.
6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6524 def list_functions_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/sites/{name}/functions' 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 || status_code == 404 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_08_01::Models::FunctionEnvelopeCollection.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_functions_next(next_page_link, custom_headers: nil) ⇒ FunctionEnvelopeCollection
List the functions for a web site, or a deployment slot.
List the functions for a web site, or a deployment slot.
to List operation. will be added to the HTTP request.
38306 38307 38308 38309 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38306 def list_functions_next(next_page_link, custom_headers:nil) response = list_functions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_functions_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List the functions for a web site, or a deployment slot.
List the functions for a web site, or a deployment slot.
to List operation. to the HTTP request.
38339 38340 38341 38342 38343 38344 38345 38346 38347 38348 38349 38350 38351 38352 38353 38354 38355 38356 38357 38358 38359 38360 38361 38362 38363 38364 38365 38366 38367 38368 38369 38370 38371 38372 38373 38374 38375 38376 38377 38378 38379 38380 38381 38382 38383 38384 38385 38386 38387 38388 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38339 def list_functions_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 || status_code == 404 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_08_01::Models::FunctionEnvelopeCollection.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_functions_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the functions for a web site, or a deployment slot.
List the functions for a web site, or a deployment slot.
to List operation. will be added to the HTTP request.
38323 38324 38325 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38323 def list_functions_next_with_http_info(next_page_link, custom_headers:nil) list_functions_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_functions_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the functions for a web site, or a deployment slot.
List the functions for a web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
6507 6508 6509 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6507 def list_functions_with_http_info(resource_group_name, name, custom_headers:nil) list_functions_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_host_name_bindings(resource_group_name, name, custom_headers: nil) ⇒ Array<HostNameBinding>
Get hostname bindings for an app or a deployment slot.
Get hostname bindings for an app or a deployment slot.
resource belongs. will be added to the HTTP request.
7077 7078 7079 7080 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7077 def list_host_name_bindings(resource_group_name, name, custom_headers:nil) first_page = list_host_name_bindings_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_host_name_bindings_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ HostNameBindingCollection
Get hostname bindings for an app or a deployment slot.
Get hostname bindings for an app or a deployment slot.
resource belongs. will be added to the HTTP request.
response.
43136 43137 43138 43139 43140 43141 43142 43143 43144 43145 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43136 def list_host_name_bindings_as_lazy(resource_group_name, name, custom_headers:nil) response = list_host_name_bindings_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_host_name_bindings_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_host_name_bindings_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get hostname bindings for an app or a deployment slot.
Get hostname bindings for an app or a deployment slot.
resource belongs. to the HTTP request.
7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7112 def list_host_name_bindings_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/sites/{name}/hostNameBindings' 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_08_01::Models::HostNameBindingCollection.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_host_name_bindings_next(next_page_link, custom_headers: nil) ⇒ HostNameBindingCollection
Get hostname bindings for an app or a deployment slot.
Get hostname bindings for an app or a deployment slot.
to List operation. will be added to the HTTP request.
38402 38403 38404 38405 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38402 def list_host_name_bindings_next(next_page_link, custom_headers:nil) response = list_host_name_bindings_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_host_name_bindings_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get hostname bindings for an app or a deployment slot.
Get hostname bindings for an app or a deployment slot.
to List operation. to the HTTP request.
38435 38436 38437 38438 38439 38440 38441 38442 38443 38444 38445 38446 38447 38448 38449 38450 38451 38452 38453 38454 38455 38456 38457 38458 38459 38460 38461 38462 38463 38464 38465 38466 38467 38468 38469 38470 38471 38472 38473 38474 38475 38476 38477 38478 38479 38480 38481 38482 38483 38484 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38435 def list_host_name_bindings_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_08_01::Models::HostNameBindingCollection.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_host_name_bindings_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get hostname bindings for an app or a deployment slot.
Get hostname bindings for an app or a deployment slot.
to List operation. will be added to the HTTP request.
38419 38420 38421 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38419 def list_host_name_bindings_next_with_http_info(next_page_link, custom_headers:nil) list_host_name_bindings_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_host_name_bindings_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<HostNameBinding>
Get hostname bindings for an app or a deployment slot.
Get hostname bindings for an app or a deployment slot.
resource belongs. the API gets hostname bindings for the production slot. will be added to the HTTP request.
21258 21259 21260 21261 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21258 def list_host_name_bindings_slot(resource_group_name, name, slot, custom_headers:nil) first_page = list_host_name_bindings_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_host_name_bindings_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ HostNameBindingCollection
Get hostname bindings for an app or a deployment slot.
Get hostname bindings for an app or a deployment slot.
resource belongs. the API gets hostname bindings for the production slot. will be added to the HTTP request.
response.
43714 43715 43716 43717 43718 43719 43720 43721 43722 43723 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43714 def list_host_name_bindings_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) response = list_host_name_bindings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_host_name_bindings_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_host_name_bindings_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get hostname bindings for an app or a deployment slot.
Get hostname bindings for an app or a deployment slot.
resource belongs. the API gets hostname bindings for the production slot. to the HTTP request.
21297 21298 21299 21300 21301 21302 21303 21304 21305 21306 21307 21308 21309 21310 21311 21312 21313 21314 21315 21316 21317 21318 21319 21320 21321 21322 21323 21324 21325 21326 21327 21328 21329 21330 21331 21332 21333 21334 21335 21336 21337 21338 21339 21340 21341 21342 21343 21344 21345 21346 21347 21348 21349 21350 21351 21352 21353 21354 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21297 def list_host_name_bindings_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/hostNameBindings' 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,'slot' => slot,'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_08_01::Models::HostNameBindingCollection.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_host_name_bindings_slot_next(next_page_link, custom_headers: nil) ⇒ HostNameBindingCollection
Get hostname bindings for an app or a deployment slot.
Get hostname bindings for an app or a deployment slot.
to List operation. will be added to the HTTP request.
40460 40461 40462 40463 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40460 def list_host_name_bindings_slot_next(next_page_link, custom_headers:nil) response = list_host_name_bindings_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_host_name_bindings_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get hostname bindings for an app or a deployment slot.
Get hostname bindings for an app or a deployment slot.
to List operation. to the HTTP request.
40493 40494 40495 40496 40497 40498 40499 40500 40501 40502 40503 40504 40505 40506 40507 40508 40509 40510 40511 40512 40513 40514 40515 40516 40517 40518 40519 40520 40521 40522 40523 40524 40525 40526 40527 40528 40529 40530 40531 40532 40533 40534 40535 40536 40537 40538 40539 40540 40541 40542 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40493 def list_host_name_bindings_slot_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_08_01::Models::HostNameBindingCollection.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_host_name_bindings_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get hostname bindings for an app or a deployment slot.
Get hostname bindings for an app or a deployment slot.
to List operation. will be added to the HTTP request.
40477 40478 40479 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40477 def list_host_name_bindings_slot_next_with_http_info(next_page_link, custom_headers:nil) list_host_name_bindings_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_host_name_bindings_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get hostname bindings for an app or a deployment slot.
Get hostname bindings for an app or a deployment slot.
resource belongs. the API gets hostname bindings for the production slot. will be added to the HTTP request.
21278 21279 21280 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 21278 def list_host_name_bindings_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_host_name_bindings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_host_name_bindings_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get hostname bindings for an app or a deployment slot.
Get hostname bindings for an app or a deployment slot.
resource belongs. will be added to the HTTP request.
7095 7096 7097 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7095 def list_host_name_bindings_with_http_info(resource_group_name, name, custom_headers:nil) list_host_name_bindings_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_hybrid_connection_keys(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ HybridConnectionKey
Gets the send key name and value for a Hybrid Connection.
Gets the send key name and value for a Hybrid Connection.
resource belongs. will be added to the HTTP request.
7991 7992 7993 7994 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7991 def list_hybrid_connection_keys(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) response = list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the send key name and value for a Hybrid Connection.
Gets the send key name and value for a Hybrid Connection.
resource belongs. to the HTTP request.
8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8030 def list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, relay_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, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'relay_name is nil' if relay_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/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/listKeys' 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,'namespaceName' => namespace_name,'relayName' => relay_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 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_08_01::Models::HybridConnectionKey.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_hybrid_connection_keys_slot(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ HybridConnectionKey
Gets the send key name and value for a Hybrid Connection.
Gets the send key name and value for a Hybrid Connection.
resource belongs. will be added to the HTTP request.
22215 22216 22217 22218 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22215 def list_hybrid_connection_keys_slot(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:nil) response = list_hybrid_connection_keys_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_hybrid_connection_keys_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the send key name and value for a Hybrid Connection.
Gets the send key name and value for a Hybrid Connection.
resource belongs. to the HTTP request.
22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 22267 22268 22269 22270 22271 22272 22273 22274 22275 22276 22277 22278 22279 22280 22281 22282 22283 22284 22285 22286 22287 22288 22289 22290 22291 22292 22293 22294 22295 22296 22297 22298 22299 22300 22301 22302 22303 22304 22305 22306 22307 22308 22309 22310 22311 22312 22313 22314 22315 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22256 def list_hybrid_connection_keys_slot_async(resource_group_name, name, namespace_name, relay_name, slot, 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, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'relay_name is nil' if relay_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/listKeys' 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,'namespaceName' => namespace_name,'relayName' => relay_name,'slot' => slot,'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 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_08_01::Models::HybridConnectionKey.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_hybrid_connection_keys_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the send key name and value for a Hybrid Connection.
Gets the send key name and value for a Hybrid Connection.
resource belongs. will be added to the HTTP request.
22236 22237 22238 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22236 def list_hybrid_connection_keys_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:nil) list_hybrid_connection_keys_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:custom_headers).value! end |
#list_hybrid_connection_keys_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the send key name and value for a Hybrid Connection.
Gets the send key name and value for a Hybrid Connection.
resource belongs. will be added to the HTTP request.
8011 8012 8013 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8011 def list_hybrid_connection_keys_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! end |
#list_hybrid_connections(resource_group_name, name, custom_headers: nil) ⇒ HybridConnection
Retrieves all Service Bus Hybrid Connections used by this Web App.
Retrieves all Service Bus Hybrid Connections used by this Web App.
resource belongs. will be added to the HTTP request.
8103 8104 8105 8106 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8103 def list_hybrid_connections(resource_group_name, name, custom_headers:nil) response = list_hybrid_connections_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_hybrid_connections_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Retrieves all Service Bus Hybrid Connections used by this Web App.
Retrieves all Service Bus Hybrid Connections used by this Web App.
resource belongs. to the HTTP request.
8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8138 def list_hybrid_connections_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/sites/{name}/hybridConnectionRelays' 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_08_01::Models::HybridConnection.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_hybrid_connections_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ HybridConnection
Retrieves all Service Bus Hybrid Connections used by this Web App.
Retrieves all Service Bus Hybrid Connections used by this Web App.
resource belongs. will be added to the HTTP request.
22331 22332 22333 22334 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22331 def list_hybrid_connections_slot(resource_group_name, name, slot, custom_headers:nil) response = list_hybrid_connections_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_hybrid_connections_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Retrieves all Service Bus Hybrid Connections used by this Web App.
Retrieves all Service Bus Hybrid Connections used by this Web App.
resource belongs. to the HTTP request.
22368 22369 22370 22371 22372 22373 22374 22375 22376 22377 22378 22379 22380 22381 22382 22383 22384 22385 22386 22387 22388 22389 22390 22391 22392 22393 22394 22395 22396 22397 22398 22399 22400 22401 22402 22403 22404 22405 22406 22407 22408 22409 22410 22411 22412 22413 22414 22415 22416 22417 22418 22419 22420 22421 22422 22423 22424 22425 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22368 def list_hybrid_connections_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/hybridConnectionRelays' 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,'slot' => slot,'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_08_01::Models::HybridConnection.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_hybrid_connections_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Retrieves all Service Bus Hybrid Connections used by this Web App.
Retrieves all Service Bus Hybrid Connections used by this Web App.
resource belongs. will be added to the HTTP request.
22350 22351 22352 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22350 def list_hybrid_connections_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_hybrid_connections_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_hybrid_connections_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Retrieves all Service Bus Hybrid Connections used by this Web App.
Retrieves all Service Bus Hybrid Connections used by this Web App.
resource belongs. will be added to the HTTP request.
8121 8122 8123 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8121 def list_hybrid_connections_with_http_info(resource_group_name, name, custom_headers:nil) list_hybrid_connections_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_instance_functions_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<FunctionEnvelope>
List the functions for a web site, or a deployment slot.
List the functions for a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
20631 20632 20633 20634 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20631 def list_instance_functions_slot(resource_group_name, name, slot, custom_headers:nil) first_page = list_instance_functions_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_instance_functions_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ FunctionEnvelopeCollection
List the functions for a web site, or a deployment slot.
List the functions for a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
the response.
43687 43688 43689 43690 43691 43692 43693 43694 43695 43696 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43687 def list_instance_functions_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) response = list_instance_functions_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_instance_functions_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_instance_functions_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
List the functions for a web site, or a deployment slot.
List the functions for a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
20670 20671 20672 20673 20674 20675 20676 20677 20678 20679 20680 20681 20682 20683 20684 20685 20686 20687 20688 20689 20690 20691 20692 20693 20694 20695 20696 20697 20698 20699 20700 20701 20702 20703 20704 20705 20706 20707 20708 20709 20710 20711 20712 20713 20714 20715 20716 20717 20718 20719 20720 20721 20722 20723 20724 20725 20726 20727 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20670 def list_instance_functions_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/functions' 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,'slot' => slot,'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 || status_code == 404 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_08_01::Models::FunctionEnvelopeCollection.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_instance_functions_slot_next(next_page_link, custom_headers: nil) ⇒ FunctionEnvelopeCollection
List the functions for a web site, or a deployment slot.
List the functions for a web site, or a deployment slot.
to List operation. will be added to the HTTP request.
40364 40365 40366 40367 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40364 def list_instance_functions_slot_next(next_page_link, custom_headers:nil) response = list_instance_functions_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_instance_functions_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List the functions for a web site, or a deployment slot.
List the functions for a web site, or a deployment slot.
to List operation. to the HTTP request.
40397 40398 40399 40400 40401 40402 40403 40404 40405 40406 40407 40408 40409 40410 40411 40412 40413 40414 40415 40416 40417 40418 40419 40420 40421 40422 40423 40424 40425 40426 40427 40428 40429 40430 40431 40432 40433 40434 40435 40436 40437 40438 40439 40440 40441 40442 40443 40444 40445 40446 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40397 def list_instance_functions_slot_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 || status_code == 404 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_08_01::Models::FunctionEnvelopeCollection.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_instance_functions_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the functions for a web site, or a deployment slot.
List the functions for a web site, or a deployment slot.
to List operation. will be added to the HTTP request.
40381 40382 40383 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40381 def list_instance_functions_slot_next_with_http_info(next_page_link, custom_headers:nil) list_instance_functions_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_instance_functions_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the functions for a web site, or a deployment slot.
List the functions for a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
20651 20652 20653 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20651 def list_instance_functions_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_instance_functions_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_instance_identifiers(resource_group_name, name, custom_headers: nil) ⇒ Array<SiteInstance>
Gets all scale-out instances of an app.
Gets all scale-out instances of an app.
resource belongs. will be added to the HTTP request.
8790 8791 8792 8793 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8790 def list_instance_identifiers(resource_group_name, name, custom_headers:nil) first_page = list_instance_identifiers_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_instance_identifiers_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ WebAppInstanceCollection
Gets all scale-out instances of an app.
Gets all scale-out instances of an app.
resource belongs. will be added to the HTTP request.
response.
43161 43162 43163 43164 43165 43166 43167 43168 43169 43170 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43161 def list_instance_identifiers_as_lazy(resource_group_name, name, custom_headers:nil) response = list_instance_identifiers_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_instance_identifiers_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_instance_identifiers_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets all scale-out instances of an app.
Gets all scale-out instances of an app.
resource belongs. to the HTTP request.
8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8825 def list_instance_identifiers_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/sites/{name}/instances' 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_08_01::Models::WebAppInstanceCollection.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_instance_identifiers_next(next_page_link, custom_headers: nil) ⇒ WebAppInstanceCollection
Gets all scale-out instances of an app.
Gets all scale-out instances of an app.
to List operation. will be added to the HTTP request.
38498 38499 38500 38501 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38498 def list_instance_identifiers_next(next_page_link, custom_headers:nil) response = list_instance_identifiers_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_instance_identifiers_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets all scale-out instances of an app.
Gets all scale-out instances of an app.
to List operation. to the HTTP request.
38531 38532 38533 38534 38535 38536 38537 38538 38539 38540 38541 38542 38543 38544 38545 38546 38547 38548 38549 38550 38551 38552 38553 38554 38555 38556 38557 38558 38559 38560 38561 38562 38563 38564 38565 38566 38567 38568 38569 38570 38571 38572 38573 38574 38575 38576 38577 38578 38579 38580 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38531 def list_instance_identifiers_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_08_01::Models::WebAppInstanceCollection.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_instance_identifiers_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all scale-out instances of an app.
Gets all scale-out instances of an app.
to List operation. will be added to the HTTP request.
38515 38516 38517 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38515 def list_instance_identifiers_next_with_http_info(next_page_link, custom_headers:nil) list_instance_identifiers_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_instance_identifiers_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<SiteInstance>
Gets all scale-out instances of an app.
Gets all scale-out instances of an app.
resource belongs. the API gets the production slot instances. will be added to the HTTP request.
23058 23059 23060 23061 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23058 def list_instance_identifiers_slot(resource_group_name, name, slot, custom_headers:nil) first_page = list_instance_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_instance_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ WebAppInstanceCollection
Gets all scale-out instances of an app.
Gets all scale-out instances of an app.
resource belongs. the API gets the production slot instances. will be added to the HTTP request.
response.
43741 43742 43743 43744 43745 43746 43747 43748 43749 43750 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43741 def list_instance_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) response = list_instance_identifiers_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_instance_identifiers_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_instance_identifiers_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets all scale-out instances of an app.
Gets all scale-out instances of an app.
resource belongs. the API gets the production slot instances. to the HTTP request.
23097 23098 23099 23100 23101 23102 23103 23104 23105 23106 23107 23108 23109 23110 23111 23112 23113 23114 23115 23116 23117 23118 23119 23120 23121 23122 23123 23124 23125 23126 23127 23128 23129 23130 23131 23132 23133 23134 23135 23136 23137 23138 23139 23140 23141 23142 23143 23144 23145 23146 23147 23148 23149 23150 23151 23152 23153 23154 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23097 def list_instance_identifiers_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/instances' 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,'slot' => slot,'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_08_01::Models::WebAppInstanceCollection.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_instance_identifiers_slot_next(next_page_link, custom_headers: nil) ⇒ WebAppInstanceCollection
Gets all scale-out instances of an app.
Gets all scale-out instances of an app.
to List operation. will be added to the HTTP request.
40556 40557 40558 40559 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40556 def list_instance_identifiers_slot_next(next_page_link, custom_headers:nil) response = list_instance_identifiers_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_instance_identifiers_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets all scale-out instances of an app.
Gets all scale-out instances of an app.
to List operation. to the HTTP request.
40589 40590 40591 40592 40593 40594 40595 40596 40597 40598 40599 40600 40601 40602 40603 40604 40605 40606 40607 40608 40609 40610 40611 40612 40613 40614 40615 40616 40617 40618 40619 40620 40621 40622 40623 40624 40625 40626 40627 40628 40629 40630 40631 40632 40633 40634 40635 40636 40637 40638 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40589 def list_instance_identifiers_slot_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_08_01::Models::WebAppInstanceCollection.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_instance_identifiers_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all scale-out instances of an app.
Gets all scale-out instances of an app.
to List operation. will be added to the HTTP request.
40573 40574 40575 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40573 def list_instance_identifiers_slot_next_with_http_info(next_page_link, custom_headers:nil) list_instance_identifiers_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_instance_identifiers_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all scale-out instances of an app.
Gets all scale-out instances of an app.
resource belongs. the API gets the production slot instances. will be added to the HTTP request.
23078 23079 23080 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23078 def list_instance_identifiers_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_instance_identifiers_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_instance_identifiers_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all scale-out instances of an app.
Gets all scale-out instances of an app.
resource belongs. will be added to the HTTP request.
8808 8809 8810 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8808 def list_instance_identifiers_with_http_info(resource_group_name, name, custom_headers:nil) list_instance_identifiers_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_instance_process_modules(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ Array<ProcessModuleInfo>
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
9668 9669 9670 9671 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9668 def list_instance_process_modules(resource_group_name, name, process_id, instance_id, custom_headers:nil) first_page = list_instance_process_modules_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers) first_page.get_all_items end |
#list_instance_process_modules_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ ProcessModuleInfoCollection
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
the response.
43222 43223 43224 43225 43226 43227 43228 43229 43230 43231 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43222 def list_instance_process_modules_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers:nil) response = list_instance_process_modules_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_instance_process_modules_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_instance_process_modules_async(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. to the HTTP request.
9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9715 def list_instance_process_modules_async(resource_group_name, name, process_id, instance_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/instances/{instanceId}/processes/{processId}/modules' 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,'processId' => process_id,'instanceId' => instance_id,'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 || status_code == 404 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_08_01::Models::ProcessModuleInfoCollection.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_instance_process_modules_next(next_page_link, custom_headers: nil) ⇒ ProcessModuleInfoCollection
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
38698 38699 38700 38701 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38698 def list_instance_process_modules_next(next_page_link, custom_headers:nil) response = list_instance_process_modules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_instance_process_modules_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
to List operation. to the HTTP request.
38735 38736 38737 38738 38739 38740 38741 38742 38743 38744 38745 38746 38747 38748 38749 38750 38751 38752 38753 38754 38755 38756 38757 38758 38759 38760 38761 38762 38763 38764 38765 38766 38767 38768 38769 38770 38771 38772 38773 38774 38775 38776 38777 38778 38779 38780 38781 38782 38783 38784 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38735 def list_instance_process_modules_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 || status_code == 404 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_08_01::Models::ProcessModuleInfoCollection.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_instance_process_modules_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
38717 38718 38719 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38717 def list_instance_process_modules_next_with_http_info(next_page_link, custom_headers:nil) list_instance_process_modules_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_instance_process_modules_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ Array<ProcessModuleInfo>
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
23989 23990 23991 23992 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23989 def list_instance_process_modules_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) first_page = list_instance_process_modules_slot_as_lazy(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers) first_page.get_all_items end |
#list_instance_process_modules_slot_as_lazy(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ ProcessModuleInfoCollection
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
the response.
43806 43807 43808 43809 43810 43811 43812 43813 43814 43815 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43806 def list_instance_process_modules_slot_as_lazy(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) response = list_instance_process_modules_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_instance_process_modules_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_instance_process_modules_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. to the HTTP request.
24040 24041 24042 24043 24044 24045 24046 24047 24048 24049 24050 24051 24052 24053 24054 24055 24056 24057 24058 24059 24060 24061 24062 24063 24064 24065 24066 24067 24068 24069 24070 24071 24072 24073 24074 24075 24076 24077 24078 24079 24080 24081 24082 24083 24084 24085 24086 24087 24088 24089 24090 24091 24092 24093 24094 24095 24096 24097 24098 24099 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24040 def list_instance_process_modules_slot_async(resource_group_name, name, process_id, slot, instance_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/modules' 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,'processId' => process_id,'slot' => slot,'instanceId' => instance_id,'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 || status_code == 404 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_08_01::Models::ProcessModuleInfoCollection.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_instance_process_modules_slot_next(next_page_link, custom_headers: nil) ⇒ ProcessModuleInfoCollection
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
40756 40757 40758 40759 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40756 def list_instance_process_modules_slot_next(next_page_link, custom_headers:nil) response = list_instance_process_modules_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_instance_process_modules_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
to List operation. to the HTTP request.
40793 40794 40795 40796 40797 40798 40799 40800 40801 40802 40803 40804 40805 40806 40807 40808 40809 40810 40811 40812 40813 40814 40815 40816 40817 40818 40819 40820 40821 40822 40823 40824 40825 40826 40827 40828 40829 40830 40831 40832 40833 40834 40835 40836 40837 40838 40839 40840 40841 40842 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40793 def list_instance_process_modules_slot_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 || status_code == 404 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_08_01::Models::ProcessModuleInfoCollection.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_instance_process_modules_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
40775 40776 40777 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40775 def list_instance_process_modules_slot_next_with_http_info(next_page_link, custom_headers:nil) list_instance_process_modules_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_instance_process_modules_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
24015 24016 24017 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24015 def list_instance_process_modules_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) list_instance_process_modules_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! end |
#list_instance_process_modules_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
9692 9693 9694 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9692 def list_instance_process_modules_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers:nil) list_instance_process_modules_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! end |
#list_instance_process_threads(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ Array<ProcessThreadInfo>
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
9924 9925 9926 9927 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9924 def list_instance_process_threads(resource_group_name, name, process_id, instance_id, custom_headers:nil) first_page = list_instance_process_threads_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers) first_page.get_all_items end |
#list_instance_process_threads_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ ProcessThreadInfoCollection
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
the response.
43253 43254 43255 43256 43257 43258 43259 43260 43261 43262 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43253 def list_instance_process_threads_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers:nil) response = list_instance_process_threads_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_instance_process_threads_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_instance_process_threads_async(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. to the HTTP request.
9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9971 def list_instance_process_threads_async(resource_group_name, name, process_id, instance_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/instances/{instanceId}/processes/{processId}/threads' 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,'processId' => process_id,'instanceId' => instance_id,'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 || status_code == 404 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_08_01::Models::ProcessThreadInfoCollection.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_instance_process_threads_next(next_page_link, custom_headers: nil) ⇒ ProcessThreadInfoCollection
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
38800 38801 38802 38803 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38800 def list_instance_process_threads_next(next_page_link, custom_headers:nil) response = list_instance_process_threads_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_instance_process_threads_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
to List operation. to the HTTP request.
38837 38838 38839 38840 38841 38842 38843 38844 38845 38846 38847 38848 38849 38850 38851 38852 38853 38854 38855 38856 38857 38858 38859 38860 38861 38862 38863 38864 38865 38866 38867 38868 38869 38870 38871 38872 38873 38874 38875 38876 38877 38878 38879 38880 38881 38882 38883 38884 38885 38886 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38837 def list_instance_process_threads_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 || status_code == 404 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_08_01::Models::ProcessThreadInfoCollection.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_instance_process_threads_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
38819 38820 38821 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38819 def list_instance_process_threads_next_with_http_info(next_page_link, custom_headers:nil) list_instance_process_threads_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_instance_process_threads_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ Array<ProcessThreadInfo>
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
24259 24260 24261 24262 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24259 def list_instance_process_threads_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) first_page = list_instance_process_threads_slot_as_lazy(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers) first_page.get_all_items end |
#list_instance_process_threads_slot_as_lazy(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ ProcessThreadInfoCollection
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
the response.
43839 43840 43841 43842 43843 43844 43845 43846 43847 43848 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43839 def list_instance_process_threads_slot_as_lazy(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) response = list_instance_process_threads_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_instance_process_threads_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_instance_process_threads_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. to the HTTP request.
24310 24311 24312 24313 24314 24315 24316 24317 24318 24319 24320 24321 24322 24323 24324 24325 24326 24327 24328 24329 24330 24331 24332 24333 24334 24335 24336 24337 24338 24339 24340 24341 24342 24343 24344 24345 24346 24347 24348 24349 24350 24351 24352 24353 24354 24355 24356 24357 24358 24359 24360 24361 24362 24363 24364 24365 24366 24367 24368 24369 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24310 def list_instance_process_threads_slot_async(resource_group_name, name, process_id, slot, instance_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'slot is nil' if slot.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/threads' 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,'processId' => process_id,'slot' => slot,'instanceId' => instance_id,'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 || status_code == 404 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_08_01::Models::ProcessThreadInfoCollection.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_instance_process_threads_slot_next(next_page_link, custom_headers: nil) ⇒ ProcessThreadInfoCollection
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
40858 40859 40860 40861 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40858 def list_instance_process_threads_slot_next(next_page_link, custom_headers:nil) response = list_instance_process_threads_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_instance_process_threads_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
to List operation. to the HTTP request.
40895 40896 40897 40898 40899 40900 40901 40902 40903 40904 40905 40906 40907 40908 40909 40910 40911 40912 40913 40914 40915 40916 40917 40918 40919 40920 40921 40922 40923 40924 40925 40926 40927 40928 40929 40930 40931 40932 40933 40934 40935 40936 40937 40938 40939 40940 40941 40942 40943 40944 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40895 def list_instance_process_threads_slot_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 || status_code == 404 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_08_01::Models::ProcessThreadInfoCollection.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_instance_process_threads_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
40877 40878 40879 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40877 def list_instance_process_threads_slot_next_with_http_info(next_page_link, custom_headers:nil) list_instance_process_threads_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_instance_process_threads_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
24285 24286 24287 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24285 def list_instance_process_threads_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) list_instance_process_threads_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! end |
#list_instance_process_threads_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
9948 9949 9950 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9948 def list_instance_process_threads_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers:nil) list_instance_process_threads_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! end |
#list_instance_processes(resource_group_name, name, instance_id, custom_headers: nil) ⇒ Array<ProcessInfo>
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
9171 9172 9173 9174 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9171 def list_instance_processes(resource_group_name, name, instance_id, custom_headers:nil) first_page = list_instance_processes_as_lazy(resource_group_name, name, instance_id, custom_headers:custom_headers) first_page.get_all_items end |
#list_instance_processes_as_lazy(resource_group_name, name, instance_id, custom_headers: nil) ⇒ ProcessInfoCollection
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
response.
43191 43192 43193 43194 43195 43196 43197 43198 43199 43200 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43191 def list_instance_processes_as_lazy(resource_group_name, name, instance_id, custom_headers:nil) response = list_instance_processes_async(resource_group_name, name, instance_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_instance_processes_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_instance_processes_async(resource_group_name, name, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. to the HTTP request.
9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9216 def list_instance_processes_async(resource_group_name, name, instance_id, 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_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/instances/{instanceId}/processes' 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,'instanceId' => instance_id,'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 || status_code == 404 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_08_01::Models::ProcessInfoCollection.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_instance_processes_next(next_page_link, custom_headers: nil) ⇒ ProcessInfoCollection
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
38596 38597 38598 38599 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38596 def list_instance_processes_next(next_page_link, custom_headers:nil) response = list_instance_processes_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_instance_processes_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
to List operation. to the HTTP request.
38633 38634 38635 38636 38637 38638 38639 38640 38641 38642 38643 38644 38645 38646 38647 38648 38649 38650 38651 38652 38653 38654 38655 38656 38657 38658 38659 38660 38661 38662 38663 38664 38665 38666 38667 38668 38669 38670 38671 38672 38673 38674 38675 38676 38677 38678 38679 38680 38681 38682 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38633 def list_instance_processes_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 || status_code == 404 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_08_01::Models::ProcessInfoCollection.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_instance_processes_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
38615 38616 38617 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38615 def list_instance_processes_next_with_http_info(next_page_link, custom_headers:nil) list_instance_processes_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_instance_processes_slot(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ Array<ProcessInfo>
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
23464 23465 23466 23467 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23464 def list_instance_processes_slot(resource_group_name, name, slot, instance_id, custom_headers:nil) first_page = list_instance_processes_slot_as_lazy(resource_group_name, name, slot, instance_id, custom_headers:custom_headers) first_page.get_all_items end |
#list_instance_processes_slot_as_lazy(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ ProcessInfoCollection
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
response.
43773 43774 43775 43776 43777 43778 43779 43780 43781 43782 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43773 def list_instance_processes_slot_as_lazy(resource_group_name, name, slot, instance_id, custom_headers:nil) response = list_instance_processes_slot_async(resource_group_name, name, slot, instance_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_instance_processes_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_instance_processes_slot_async(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ Concurrent::Promise
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. to the HTTP request.
23513 23514 23515 23516 23517 23518 23519 23520 23521 23522 23523 23524 23525 23526 23527 23528 23529 23530 23531 23532 23533 23534 23535 23536 23537 23538 23539 23540 23541 23542 23543 23544 23545 23546 23547 23548 23549 23550 23551 23552 23553 23554 23555 23556 23557 23558 23559 23560 23561 23562 23563 23564 23565 23566 23567 23568 23569 23570 23571 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23513 def list_instance_processes_slot_async(resource_group_name, name, slot, instance_id, 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, 'slot is nil' if slot.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/slots/{slot}/instances/{instanceId}/processes' 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,'slot' => slot,'instanceId' => instance_id,'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 || status_code == 404 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_08_01::Models::ProcessInfoCollection.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_instance_processes_slot_next(next_page_link, custom_headers: nil) ⇒ ProcessInfoCollection
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
40654 40655 40656 40657 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40654 def list_instance_processes_slot_next(next_page_link, custom_headers:nil) response = list_instance_processes_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_instance_processes_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
to List operation. to the HTTP request.
40691 40692 40693 40694 40695 40696 40697 40698 40699 40700 40701 40702 40703 40704 40705 40706 40707 40708 40709 40710 40711 40712 40713 40714 40715 40716 40717 40718 40719 40720 40721 40722 40723 40724 40725 40726 40727 40728 40729 40730 40731 40732 40733 40734 40735 40736 40737 40738 40739 40740 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40691 def list_instance_processes_slot_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 || status_code == 404 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_08_01::Models::ProcessInfoCollection.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_instance_processes_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
40673 40674 40675 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40673 def list_instance_processes_slot_next_with_http_info(next_page_link, custom_headers:nil) list_instance_processes_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_instance_processes_slot_with_http_info(resource_group_name, name, slot, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
23489 23490 23491 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 23489 def list_instance_processes_slot_with_http_info(resource_group_name, name, slot, instance_id, custom_headers:nil) list_instance_processes_slot_async(resource_group_name, name, slot, instance_id, custom_headers:custom_headers).value! end |
#list_instance_processes_with_http_info(resource_group_name, name, instance_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
resource belongs. value of the name property in the JSON response from “GET api/sites/siteName/instances”. will be added to the HTTP request.
9194 9195 9196 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 9194 def list_instance_processes_with_http_info(resource_group_name, name, instance_id, custom_headers:nil) list_instance_processes_async(resource_group_name, name, instance_id, custom_headers:custom_headers).value! end |
#list_metadata(resource_group_name, name, custom_headers: nil) ⇒ StringDictionary
Gets the metadata of an app.
Gets the metadata of an app.
resource belongs. will be added to the HTTP request.
3065 3066 3067 3068 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3065 def (resource_group_name, name, custom_headers:nil) response = (resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_metadata_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the metadata of an app.
Gets the metadata of an app.
resource belongs. to the HTTP request.
3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3100 def (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/sites/{name}/config/metadata/list' 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 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_08_01::Models::StringDictionary.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_metadata_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ StringDictionary
Gets the metadata of an app.
Gets the metadata of an app.
resource belongs. the API will get the metadata for the production slot. will be added to the HTTP request.
17241 17242 17243 17244 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17241 def (resource_group_name, name, slot, custom_headers:nil) response = (resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_metadata_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the metadata of an app.
Gets the metadata of an app.
resource belongs. the API will get the metadata for the production slot. to the HTTP request.
17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17280 def (resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/config/metadata/list' 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,'slot' => slot,'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 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_08_01::Models::StringDictionary.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_metadata_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the metadata of an app.
Gets the metadata of an app.
resource belongs. the API will get the metadata for the production slot. will be added to the HTTP request.
17261 17262 17263 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17261 def (resource_group_name, name, slot, custom_headers:nil) (resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_metadata_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the metadata of an app.
Gets the metadata of an app.
resource belongs. will be added to the HTTP request.
3083 3084 3085 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3083 def (resource_group_name, name, custom_headers:nil) (resource_group_name, name, custom_headers:custom_headers).value! end |
#list_metric_definitions(resource_group_name, name, custom_headers: nil) ⇒ Array<ResourceMetricDefinition>
Gets all metric definitions of an app (or deployment slot, if specified).
Gets all metric definitions of an app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
10386 10387 10388 10389 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10386 def list_metric_definitions(resource_group_name, name, custom_headers:nil) first_page = list_metric_definitions_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_metric_definitions_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Gets all metric definitions of an app (or deployment slot, if specified).
Gets all metric definitions of an app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
pages of the response.
43278 43279 43280 43281 43282 43283 43284 43285 43286 43287 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43278 def list_metric_definitions_as_lazy(resource_group_name, name, custom_headers:nil) response = list_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_metric_definitions_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_metric_definitions_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets all metric definitions of an app (or deployment slot, if specified).
Gets all metric definitions of an app (or deployment slot, if specified).
resource belongs. to the HTTP request.
10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10421 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/sites/{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_08_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_metric_definitions_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Gets all metric definitions of an app (or deployment slot, if specified).
Gets all metric definitions of an app (or deployment slot, if specified).
to List operation. will be added to the HTTP request.
38900 38901 38902 38903 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38900 def list_metric_definitions_next(next_page_link, custom_headers:nil) response = list_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_metric_definitions_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets all metric definitions of an app (or deployment slot, if specified).
Gets all metric definitions of an app (or deployment slot, if specified).
to List operation. to the HTTP request.
38933 38934 38935 38936 38937 38938 38939 38940 38941 38942 38943 38944 38945 38946 38947 38948 38949 38950 38951 38952 38953 38954 38955 38956 38957 38958 38959 38960 38961 38962 38963 38964 38965 38966 38967 38968 38969 38970 38971 38972 38973 38974 38975 38976 38977 38978 38979 38980 38981 38982 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38933 def list_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_08_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_metric_definitions_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all metric definitions of an app (or deployment slot, if specified).
Gets all metric definitions of an app (or deployment slot, if specified).
to List operation. will be added to the HTTP request.
38917 38918 38919 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38917 def list_metric_definitions_next_with_http_info(next_page_link, custom_headers:nil) list_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_metric_definitions_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<ResourceMetricDefinition>
Gets all metric definitions of an app (or deployment slot, if specified).
Gets all metric definitions of an app (or deployment slot, if specified).
resource belongs. the API will get metric definitions of the production slot. will be added to the HTTP request.
24749 24750 24751 24752 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24749 def list_metric_definitions_slot(resource_group_name, name, slot, custom_headers:nil) first_page = list_metric_definitions_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_metric_definitions_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Gets all metric definitions of an app (or deployment slot, if specified).
Gets all metric definitions of an app (or deployment slot, if specified).
resource belongs. the API will get metric definitions of the production slot. will be added to the HTTP request.
pages of the response.
43866 43867 43868 43869 43870 43871 43872 43873 43874 43875 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43866 def list_metric_definitions_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) response = list_metric_definitions_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_metric_definitions_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_metric_definitions_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets all metric definitions of an app (or deployment slot, if specified).
Gets all metric definitions of an app (or deployment slot, if specified).
resource belongs. the API will get metric definitions of the production slot. to the HTTP request.
24788 24789 24790 24791 24792 24793 24794 24795 24796 24797 24798 24799 24800 24801 24802 24803 24804 24805 24806 24807 24808 24809 24810 24811 24812 24813 24814 24815 24816 24817 24818 24819 24820 24821 24822 24823 24824 24825 24826 24827 24828 24829 24830 24831 24832 24833 24834 24835 24836 24837 24838 24839 24840 24841 24842 24843 24844 24845 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24788 def list_metric_definitions_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/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,'slot' => slot,'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_08_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_metric_definitions_slot_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricDefinitionCollection
Gets all metric definitions of an app (or deployment slot, if specified).
Gets all metric definitions of an app (or deployment slot, if specified).
to List operation. will be added to the HTTP request.
40958 40959 40960 40961 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40958 def list_metric_definitions_slot_next(next_page_link, custom_headers:nil) response = list_metric_definitions_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_metric_definitions_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets all metric definitions of an app (or deployment slot, if specified).
Gets all metric definitions of an app (or deployment slot, if specified).
to List operation. to the HTTP request.
40991 40992 40993 40994 40995 40996 40997 40998 40999 41000 41001 41002 41003 41004 41005 41006 41007 41008 41009 41010 41011 41012 41013 41014 41015 41016 41017 41018 41019 41020 41021 41022 41023 41024 41025 41026 41027 41028 41029 41030 41031 41032 41033 41034 41035 41036 41037 41038 41039 41040 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40991 def list_metric_definitions_slot_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_08_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_metric_definitions_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all metric definitions of an app (or deployment slot, if specified).
Gets all metric definitions of an app (or deployment slot, if specified).
to List operation. will be added to the HTTP request.
40975 40976 40977 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 40975 def list_metric_definitions_slot_next_with_http_info(next_page_link, custom_headers:nil) list_metric_definitions_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_metric_definitions_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all metric definitions of an app (or deployment slot, if specified).
Gets all metric definitions of an app (or deployment slot, if specified).
resource belongs. the API will get metric definitions of the production slot. will be added to the HTTP request.
24769 24770 24771 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24769 def list_metric_definitions_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_metric_definitions_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_metric_definitions_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all metric definitions of an app (or deployment slot, if specified).
Gets all metric definitions of an app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
10404 10405 10406 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10404 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>
Gets performance metrics of an app (or deployment slot, if specified).
Gets performance metrics of an app (or deployment slot, if specified).
resource belongs. response. It is “false” by default. OData syntax). For 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.
10498 10499 10500 10501 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10498 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
Gets performance metrics of an app (or deployment slot, if specified).
Gets performance metrics of an app (or deployment slot, if specified).
resource belongs. response. It is “false” by default. OData syntax). For 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.
43309 43310 43311 43312 43313 43314 43315 43316 43317 43318 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43309 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
Gets performance metrics of an app (or deployment slot, if specified).
Gets performance metrics of an app (or deployment slot, if specified).
resource belongs. response. It is “false” by default. OData syntax). For 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.
10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10545 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/sites/{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_08_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
Gets performance metrics of an app (or deployment slot, if specified).
Gets performance metrics of an app (or deployment slot, if specified).
to List operation. will be added to the HTTP request.
38996 38997 38998 38999 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 38996 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
Gets performance metrics of an app (or deployment slot, if specified).
Gets performance metrics of an app (or deployment slot, if specified).
to List operation. to the HTTP request.
39029 39030 39031 39032 39033 39034 39035 39036 39037 39038 39039 39040 39041 39042 39043 39044 39045 39046 39047 39048 39049 39050 39051 39052 39053 39054 39055 39056 39057 39058 39059 39060 39061 39062 39063 39064 39065 39066 39067 39068 39069 39070 39071 39072 39073 39074 39075 39076 39077 39078 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39029 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_08_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
Gets performance metrics of an app (or deployment slot, if specified).
Gets performance metrics of an app (or deployment slot, if specified).
to List operation. will be added to the HTTP request.
39013 39014 39015 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39013 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_slot(resource_group_name, name, slot, details: nil, filter: nil, custom_headers: nil) ⇒ Array<ResourceMetric>
Gets performance metrics of an app (or deployment slot, if specified).
Gets performance metrics of an app (or deployment slot, if specified).
resource belongs. the API will get metrics of the production slot. response. It is “false” by default. OData syntax). For 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.
24868 24869 24870 24871 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24868 def list_metrics_slot(resource_group_name, name, slot, details:nil, filter:nil, custom_headers:nil) first_page = list_metrics_slot_as_lazy(resource_group_name, name, slot, details:details, filter:filter, custom_headers:custom_headers) first_page.get_all_items end |
#list_metrics_slot_as_lazy(resource_group_name, name, slot, details: nil, filter: nil, custom_headers: nil) ⇒ ResourceMetricCollection
Gets performance metrics of an app (or deployment slot, if specified).
Gets performance metrics of an app (or deployment slot, if specified).
resource belongs. the API will get metrics of the production slot. response. It is “false” by default. OData syntax). For 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.
43899 43900 43901 43902 43903 43904 43905 43906 43907 43908 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43899 def list_metrics_slot_as_lazy(resource_group_name, name, slot, details:nil, filter:nil, custom_headers:nil) response = list_metrics_slot_async(resource_group_name, name, slot, 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_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_metrics_slot_async(resource_group_name, name, slot, details: nil, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets performance metrics of an app (or deployment slot, if specified).
Gets performance metrics of an app (or deployment slot, if specified).
resource belongs. the API will get metrics of the production slot. response. It is “false” by default. OData syntax). For 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.
24919 24920 24921 24922 24923 24924 24925 24926 24927 24928 24929 24930 24931 24932 24933 24934 24935 24936 24937 24938 24939 24940 24941 24942 24943 24944 24945 24946 24947 24948 24949 24950 24951 24952 24953 24954 24955 24956 24957 24958 24959 24960 24961 24962 24963 24964 24965 24966 24967 24968 24969 24970 24971 24972 24973 24974 24975 24976 24977 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24919 def list_metrics_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/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,'slot' => slot,'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_08_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_slot_next(next_page_link, custom_headers: nil) ⇒ ResourceMetricCollection
Gets performance metrics of an app (or deployment slot, if specified).
Gets performance metrics of an app (or deployment slot, if specified).
to List operation. will be added to the HTTP request.
41054 41055 41056 41057 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41054 def list_metrics_slot_next(next_page_link, custom_headers:nil) response = list_metrics_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_metrics_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets performance metrics of an app (or deployment slot, if specified).
Gets performance metrics of an app (or deployment slot, if specified).
to List operation. to the HTTP request.
41087 41088 41089 41090 41091 41092 41093 41094 41095 41096 41097 41098 41099 41100 41101 41102 41103 41104 41105 41106 41107 41108 41109 41110 41111 41112 41113 41114 41115 41116 41117 41118 41119 41120 41121 41122 41123 41124 41125 41126 41127 41128 41129 41130 41131 41132 41133 41134 41135 41136 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41087 def list_metrics_slot_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_08_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_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets performance metrics of an app (or deployment slot, if specified).
Gets performance metrics of an app (or deployment slot, if specified).
to List operation. will be added to the HTTP request.
41071 41072 41073 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41071 def list_metrics_slot_next_with_http_info(next_page_link, custom_headers:nil) list_metrics_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_metrics_slot_with_http_info(resource_group_name, name, slot, details: nil, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets performance metrics of an app (or deployment slot, if specified).
Gets performance metrics of an app (or deployment slot, if specified).
resource belongs. the API will get metrics of the production slot. response. It is “false” by default. OData syntax). For 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.
24894 24895 24896 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24894 def list_metrics_slot_with_http_info(resource_group_name, name, slot, details:nil, filter:nil, custom_headers:nil) list_metrics_slot_async(resource_group_name, name, slot, details:details, filter:filter, custom_headers:custom_headers).value! end |
#list_metrics_with_http_info(resource_group_name, name, details: nil, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets performance metrics of an app (or deployment slot, if specified).
Gets performance metrics of an app (or deployment slot, if specified).
resource belongs. response. It is “false” by default. OData syntax). For 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.
10522 10523 10524 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10522 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_network_features(resource_group_name, name, view, custom_headers: nil) ⇒ NetworkFeatures
Gets all network features used by the app (or deployment slot, if specified).
Gets all network features used by the app (or deployment slot, if specified).
resource belongs. “detailed”. will be added to the HTTP request.
10833 10834 10835 10836 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10833 def list_network_features(resource_group_name, name, view, custom_headers:nil) response = list_network_features_async(resource_group_name, name, view, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_network_features_async(resource_group_name, name, view, custom_headers: nil) ⇒ Concurrent::Promise
Gets all network features used by the app (or deployment slot, if specified).
Gets all network features used by the app (or deployment slot, if specified).
resource belongs. “detailed”. to the HTTP request.
10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10872 def list_network_features_async(resource_group_name, name, view, 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, 'view is nil' if view.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/sites/{name}/networkFeatures/{view}' 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,'view' => view,'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 || status_code == 404 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_08_01::Models::NetworkFeatures.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_network_features_slot(resource_group_name, name, view, slot, custom_headers: nil) ⇒ NetworkFeatures
Gets all network features used by the app (or deployment slot, if specified).
Gets all network features used by the app (or deployment slot, if specified).
resource belongs. “detailed”. the API will get network features for the production slot. will be added to the HTTP request.
25112 25113 25114 25115 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25112 def list_network_features_slot(resource_group_name, name, view, slot, custom_headers:nil) response = list_network_features_slot_async(resource_group_name, name, view, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_network_features_slot_async(resource_group_name, name, view, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets all network features used by the app (or deployment slot, if specified).
Gets all network features used by the app (or deployment slot, if specified).
resource belongs. “detailed”. the API will get network features for the production slot. to the HTTP request.
25155 25156 25157 25158 25159 25160 25161 25162 25163 25164 25165 25166 25167 25168 25169 25170 25171 25172 25173 25174 25175 25176 25177 25178 25179 25180 25181 25182 25183 25184 25185 25186 25187 25188 25189 25190 25191 25192 25193 25194 25195 25196 25197 25198 25199 25200 25201 25202 25203 25204 25205 25206 25207 25208 25209 25210 25211 25212 25213 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25155 def list_network_features_slot_async(resource_group_name, name, view, slot, 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, 'view is nil' if view.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/networkFeatures/{view}' 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,'view' => view,'slot' => slot,'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 || status_code == 404 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_08_01::Models::NetworkFeatures.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_network_features_slot_with_http_info(resource_group_name, name, view, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all network features used by the app (or deployment slot, if specified).
Gets all network features used by the app (or deployment slot, if specified).
resource belongs. “detailed”. the API will get network features for the production slot. will be added to the HTTP request.
25134 25135 25136 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25134 def list_network_features_slot_with_http_info(resource_group_name, name, view, slot, custom_headers:nil) list_network_features_slot_async(resource_group_name, name, view, slot, custom_headers:custom_headers).value! end |
#list_network_features_with_http_info(resource_group_name, name, view, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all network features used by the app (or deployment slot, if specified).
Gets all network features used by the app (or deployment slot, if specified).
resource belongs. “detailed”. will be added to the HTTP request.
10853 10854 10855 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10853 def list_network_features_with_http_info(resource_group_name, name, view, custom_headers:nil) list_network_features_async(resource_group_name, name, view, custom_headers:custom_headers).value! end |
#list_next(next_page_link, custom_headers: nil) ⇒ WebAppCollection
Get all apps for a subscription.
Get all apps for a subscription.
to List operation. will be added to the HTTP request.
37532 37533 37534 37535 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37532 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 apps for a subscription.
Get all apps for a subscription.
to List operation. to the HTTP request.
37565 37566 37567 37568 37569 37570 37571 37572 37573 37574 37575 37576 37577 37578 37579 37580 37581 37582 37583 37584 37585 37586 37587 37588 37589 37590 37591 37592 37593 37594 37595 37596 37597 37598 37599 37600 37601 37602 37603 37604 37605 37606 37607 37608 37609 37610 37611 37612 37613 37614 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37565 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_08_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_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all apps for a subscription.
Get all apps for a subscription.
to List operation. will be added to the HTTP request.
37549 37550 37551 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 37549 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_perf_mon_counters(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ Array<PerfMonResponse>
Gets perfmon counters for web app.
Gets perfmon counters for web app.
resource belongs. Filter conforms to odata syntax. Example: $filter=(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.
11290 11291 11292 11293 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11290 def list_perf_mon_counters(resource_group_name, name, filter:nil, custom_headers:nil) first_page = list_perf_mon_counters_as_lazy(resource_group_name, name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end |
#list_perf_mon_counters_as_lazy(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ PerfMonCounterCollection
Gets perfmon counters for web app.
Gets perfmon counters for web app.
resource belongs. Filter conforms to odata syntax. Example: $filter=(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.
43338 43339 43340 43341 43342 43343 43344 43345 43346 43347 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43338 def list_perf_mon_counters_as_lazy(resource_group_name, name, filter:nil, custom_headers:nil) response = list_perf_mon_counters_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_perf_mon_counters_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_perf_mon_counters_async(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets perfmon counters for web app.
Gets perfmon counters for web app.
resource belongs. Filter conforms to odata syntax. Example: $filter=(startTime eq ‘2014-01-01T00:00:00Z’ and endTime eq ‘2014-12-31T23:59:59Z’ and timeGrain eq duration’‘. to the HTTP request.
11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11333 def list_perf_mon_counters_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/sites/{name}/perfcounters' 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_08_01::Models::PerfMonCounterCollection.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_perf_mon_counters_next(next_page_link, custom_headers: nil) ⇒ PerfMonCounterCollection
Gets perfmon counters for web app.
Gets perfmon counters for web app.
to List operation. will be added to the HTTP request.
39092 39093 39094 39095 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39092 def list_perf_mon_counters_next(next_page_link, custom_headers:nil) response = list_perf_mon_counters_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_perf_mon_counters_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets perfmon counters for web app.
Gets perfmon counters for web app.
to List operation. to the HTTP request.
39125 39126 39127 39128 39129 39130 39131 39132 39133 39134 39135 39136 39137 39138 39139 39140 39141 39142 39143 39144 39145 39146 39147 39148 39149 39150 39151 39152 39153 39154 39155 39156 39157 39158 39159 39160 39161 39162 39163 39164 39165 39166 39167 39168 39169 39170 39171 39172 39173 39174 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39125 def list_perf_mon_counters_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_08_01::Models::PerfMonCounterCollection.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_perf_mon_counters_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets perfmon counters for web app.
Gets perfmon counters for web app.
to List operation. will be added to the HTTP request.
39109 39110 39111 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39109 def list_perf_mon_counters_next_with_http_info(next_page_link, custom_headers:nil) list_perf_mon_counters_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_perf_mon_counters_slot(resource_group_name, name, slot, filter: nil, custom_headers: nil) ⇒ Array<PerfMonResponse>
Gets perfmon counters for web app.
Gets perfmon counters for web app.
resource belongs. to production slot. Filter conforms to odata syntax. Example: $filter=(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.
25591 25592 25593 25594 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25591 def list_perf_mon_counters_slot(resource_group_name, name, slot, filter:nil, custom_headers:nil) first_page = list_perf_mon_counters_slot_as_lazy(resource_group_name, name, slot, filter:filter, custom_headers:custom_headers) first_page.get_all_items end |
#list_perf_mon_counters_slot_as_lazy(resource_group_name, name, slot, filter: nil, custom_headers: nil) ⇒ PerfMonCounterCollection
Gets perfmon counters for web app.
Gets perfmon counters for web app.
resource belongs. to production slot. Filter conforms to odata syntax. Example: $filter=(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.
43930 43931 43932 43933 43934 43935 43936 43937 43938 43939 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43930 def list_perf_mon_counters_slot_as_lazy(resource_group_name, name, slot, filter:nil, custom_headers:nil) response = list_perf_mon_counters_slot_async(resource_group_name, name, slot, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_perf_mon_counters_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_perf_mon_counters_slot_async(resource_group_name, name, slot, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets perfmon counters for web app.
Gets perfmon counters for web app.
resource belongs. to production slot. Filter conforms to odata syntax. Example: $filter=(startTime eq ‘2014-01-01T00:00:00Z’ and endTime eq ‘2014-12-31T23:59:59Z’ and timeGrain eq duration’‘. to the HTTP request.
25638 25639 25640 25641 25642 25643 25644 25645 25646 25647 25648 25649 25650 25651 25652 25653 25654 25655 25656 25657 25658 25659 25660 25661 25662 25663 25664 25665 25666 25667 25668 25669 25670 25671 25672 25673 25674 25675 25676 25677 25678 25679 25680 25681 25682 25683 25684 25685 25686 25687 25688 25689 25690 25691 25692 25693 25694 25695 25696 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25638 def list_perf_mon_counters_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/perfcounters' 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,'slot' => slot,'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_08_01::Models::PerfMonCounterCollection.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_perf_mon_counters_slot_next(next_page_link, custom_headers: nil) ⇒ PerfMonCounterCollection
Gets perfmon counters for web app.
Gets perfmon counters for web app.
to List operation. will be added to the HTTP request.
41150 41151 41152 41153 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41150 def list_perf_mon_counters_slot_next(next_page_link, custom_headers:nil) response = list_perf_mon_counters_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_perf_mon_counters_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets perfmon counters for web app.
Gets perfmon counters for web app.
to List operation. to the HTTP request.
41183 41184 41185 41186 41187 41188 41189 41190 41191 41192 41193 41194 41195 41196 41197 41198 41199 41200 41201 41202 41203 41204 41205 41206 41207 41208 41209 41210 41211 41212 41213 41214 41215 41216 41217 41218 41219 41220 41221 41222 41223 41224 41225 41226 41227 41228 41229 41230 41231 41232 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41183 def list_perf_mon_counters_slot_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_08_01::Models::PerfMonCounterCollection.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_perf_mon_counters_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets perfmon counters for web app.
Gets perfmon counters for web app.
to List operation. will be added to the HTTP request.
41167 41168 41169 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41167 def list_perf_mon_counters_slot_next_with_http_info(next_page_link, custom_headers:nil) list_perf_mon_counters_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_perf_mon_counters_slot_with_http_info(resource_group_name, name, slot, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets perfmon counters for web app.
Gets perfmon counters for web app.
resource belongs. to production slot. Filter conforms to odata syntax. Example: $filter=(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.
25615 25616 25617 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25615 def list_perf_mon_counters_slot_with_http_info(resource_group_name, name, slot, filter:nil, custom_headers:nil) list_perf_mon_counters_slot_async(resource_group_name, name, slot, filter:filter, custom_headers:custom_headers).value! end |
#list_perf_mon_counters_with_http_info(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets perfmon counters for web app.
Gets perfmon counters for web app.
resource belongs. Filter conforms to odata syntax. Example: $filter=(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.
11312 11313 11314 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11312 def list_perf_mon_counters_with_http_info(resource_group_name, name, filter:nil, custom_headers:nil) list_perf_mon_counters_async(resource_group_name, name, filter:filter, custom_headers:custom_headers).value! end |
#list_premier_add_ons(resource_group_name, name, custom_headers: nil) ⇒ PremierAddOn
Gets the premier add-ons of an app.
Gets the premier add-ons of an app.
resource belongs. will be added to the HTTP request.
11511 11512 11513 11514 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11511 def list_premier_add_ons(resource_group_name, name, custom_headers:nil) response = list_premier_add_ons_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_premier_add_ons_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the premier add-ons of an app.
Gets the premier add-ons of an app.
resource belongs. to the HTTP request.
11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11546 def list_premier_add_ons_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/sites/{name}/premieraddons' 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_08_01::Models::PremierAddOn.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_premier_add_ons_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ PremierAddOn
Gets the premier add-ons of an app.
Gets the premier add-ons of an app.
resource belongs. the API will get the premier add-ons for the production slot. will be added to the HTTP request.
25826 25827 25828 25829 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25826 def list_premier_add_ons_slot(resource_group_name, name, slot, custom_headers:nil) response = list_premier_add_ons_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_premier_add_ons_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the premier add-ons of an app.
Gets the premier add-ons of an app.
resource belongs. the API will get the premier add-ons for the production slot. to the HTTP request.
25865 25866 25867 25868 25869 25870 25871 25872 25873 25874 25875 25876 25877 25878 25879 25880 25881 25882 25883 25884 25885 25886 25887 25888 25889 25890 25891 25892 25893 25894 25895 25896 25897 25898 25899 25900 25901 25902 25903 25904 25905 25906 25907 25908 25909 25910 25911 25912 25913 25914 25915 25916 25917 25918 25919 25920 25921 25922 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25865 def list_premier_add_ons_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/premieraddons' 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,'slot' => slot,'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_08_01::Models::PremierAddOn.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_premier_add_ons_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the premier add-ons of an app.
Gets the premier add-ons of an app.
resource belongs. the API will get the premier add-ons for the production slot. will be added to the HTTP request.
25846 25847 25848 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25846 def list_premier_add_ons_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_premier_add_ons_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_premier_add_ons_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the premier add-ons of an app.
Gets the premier add-ons of an app.
resource belongs. will be added to the HTTP request.
11529 11530 11531 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11529 def list_premier_add_ons_with_http_info(resource_group_name, name, custom_headers:nil) list_premier_add_ons_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_process_modules(resource_group_name, name, process_id, custom_headers: nil) ⇒ Array<ProcessModuleInfo>
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
12409 12410 12411 12412 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12409 def list_process_modules(resource_group_name, name, process_id, custom_headers:nil) first_page = list_process_modules_as_lazy(resource_group_name, name, process_id, custom_headers:custom_headers) first_page.get_all_items end |
#list_process_modules_as_lazy(resource_group_name, name, process_id, custom_headers: nil) ⇒ ProcessModuleInfoCollection
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
the response.
43393 43394 43395 43396 43397 43398 43399 43400 43401 43402 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43393 def list_process_modules_as_lazy(resource_group_name, name, process_id, custom_headers:nil) response = list_process_modules_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_process_modules_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_process_modules_async(resource_group_name, name, process_id, custom_headers: nil) ⇒ Concurrent::Promise
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
resource belongs. to the HTTP request.
12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12450 def list_process_modules_async(resource_group_name, name, process_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/processes/{processId}/modules' 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,'processId' => process_id,'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 || status_code == 404 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_08_01::Models::ProcessModuleInfoCollection.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_process_modules_next(next_page_link, custom_headers: nil) ⇒ ProcessModuleInfoCollection
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
39292 39293 39294 39295 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39292 def list_process_modules_next(next_page_link, custom_headers:nil) response = list_process_modules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_process_modules_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
to List operation. to the HTTP request.
39329 39330 39331 39332 39333 39334 39335 39336 39337 39338 39339 39340 39341 39342 39343 39344 39345 39346 39347 39348 39349 39350 39351 39352 39353 39354 39355 39356 39357 39358 39359 39360 39361 39362 39363 39364 39365 39366 39367 39368 39369 39370 39371 39372 39373 39374 39375 39376 39377 39378 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39329 def list_process_modules_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 || status_code == 404 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_08_01::Models::ProcessModuleInfoCollection.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_process_modules_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
39311 39312 39313 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39311 def list_process_modules_next_with_http_info(next_page_link, custom_headers:nil) list_process_modules_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_process_modules_slot(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ Array<ProcessModuleInfo>
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
26780 26781 26782 26783 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26780 def list_process_modules_slot(resource_group_name, name, process_id, slot, custom_headers:nil) first_page = list_process_modules_slot_as_lazy(resource_group_name, name, process_id, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_process_modules_slot_as_lazy(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ ProcessModuleInfoCollection
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
the response.
43989 43990 43991 43992 43993 43994 43995 43996 43997 43998 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43989 def list_process_modules_slot_as_lazy(resource_group_name, name, process_id, slot, custom_headers:nil) response = list_process_modules_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_process_modules_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_process_modules_slot_async(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. to the HTTP request.
26825 26826 26827 26828 26829 26830 26831 26832 26833 26834 26835 26836 26837 26838 26839 26840 26841 26842 26843 26844 26845 26846 26847 26848 26849 26850 26851 26852 26853 26854 26855 26856 26857 26858 26859 26860 26861 26862 26863 26864 26865 26866 26867 26868 26869 26870 26871 26872 26873 26874 26875 26876 26877 26878 26879 26880 26881 26882 26883 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26825 def list_process_modules_slot_async(resource_group_name, name, process_id, slot, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/processes/{processId}/modules' 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,'processId' => process_id,'slot' => slot,'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 || status_code == 404 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_08_01::Models::ProcessModuleInfoCollection.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_process_modules_slot_next(next_page_link, custom_headers: nil) ⇒ ProcessModuleInfoCollection
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
41350 41351 41352 41353 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41350 def list_process_modules_slot_next(next_page_link, custom_headers:nil) response = list_process_modules_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_process_modules_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
to List operation. to the HTTP request.
41387 41388 41389 41390 41391 41392 41393 41394 41395 41396 41397 41398 41399 41400 41401 41402 41403 41404 41405 41406 41407 41408 41409 41410 41411 41412 41413 41414 41415 41416 41417 41418 41419 41420 41421 41422 41423 41424 41425 41426 41427 41428 41429 41430 41431 41432 41433 41434 41435 41436 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41387 def list_process_modules_slot_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 || status_code == 404 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_08_01::Models::ProcessModuleInfoCollection.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_process_modules_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
41369 41370 41371 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41369 def list_process_modules_slot_next_with_http_info(next_page_link, custom_headers:nil) list_process_modules_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_process_modules_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
26803 26804 26805 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26803 def list_process_modules_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers:nil) list_process_modules_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! end |
#list_process_modules_with_http_info(resource_group_name, name, process_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List module information for a process by its ID for a specific scaled-out instance in a web site.
List module information for a process by its ID for a specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
12430 12431 12432 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12430 def list_process_modules_with_http_info(resource_group_name, name, process_id, custom_headers:nil) list_process_modules_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! end |
#list_process_threads(resource_group_name, name, process_id, custom_headers: nil) ⇒ Array<ProcessThreadInfo>
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
12645 12646 12647 12648 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12645 def list_process_threads(resource_group_name, name, process_id, custom_headers:nil) first_page = list_process_threads_as_lazy(resource_group_name, name, process_id, custom_headers:custom_headers) first_page.get_all_items end |
#list_process_threads_as_lazy(resource_group_name, name, process_id, custom_headers: nil) ⇒ ProcessThreadInfoCollection
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
the response.
43421 43422 43423 43424 43425 43426 43427 43428 43429 43430 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43421 def list_process_threads_as_lazy(resource_group_name, name, process_id, custom_headers:nil) response = list_process_threads_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_process_threads_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_process_threads_async(resource_group_name, name, process_id, custom_headers: nil) ⇒ Concurrent::Promise
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
resource belongs. to the HTTP request.
12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12686 def list_process_threads_async(resource_group_name, name, process_id, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/processes/{processId}/threads' 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,'processId' => process_id,'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 || status_code == 404 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_08_01::Models::ProcessThreadInfoCollection.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_process_threads_next(next_page_link, custom_headers: nil) ⇒ ProcessThreadInfoCollection
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
39394 39395 39396 39397 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39394 def list_process_threads_next(next_page_link, custom_headers:nil) response = list_process_threads_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_process_threads_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
to List operation. to the HTTP request.
39431 39432 39433 39434 39435 39436 39437 39438 39439 39440 39441 39442 39443 39444 39445 39446 39447 39448 39449 39450 39451 39452 39453 39454 39455 39456 39457 39458 39459 39460 39461 39462 39463 39464 39465 39466 39467 39468 39469 39470 39471 39472 39473 39474 39475 39476 39477 39478 39479 39480 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39431 def list_process_threads_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 || status_code == 404 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_08_01::Models::ProcessThreadInfoCollection.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_process_threads_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
39413 39414 39415 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39413 def list_process_threads_next_with_http_info(next_page_link, custom_headers:nil) list_process_threads_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_process_threads_slot(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ Array<ProcessThreadInfo>
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
27030 27031 27032 27033 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27030 def list_process_threads_slot(resource_group_name, name, process_id, slot, custom_headers:nil) first_page = list_process_threads_slot_as_lazy(resource_group_name, name, process_id, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_process_threads_slot_as_lazy(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ ProcessThreadInfoCollection
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
the response.
44019 44020 44021 44022 44023 44024 44025 44026 44027 44028 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 44019 def list_process_threads_slot_as_lazy(resource_group_name, name, process_id, slot, custom_headers:nil) response = list_process_threads_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_process_threads_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_process_threads_slot_async(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. to the HTTP request.
27075 27076 27077 27078 27079 27080 27081 27082 27083 27084 27085 27086 27087 27088 27089 27090 27091 27092 27093 27094 27095 27096 27097 27098 27099 27100 27101 27102 27103 27104 27105 27106 27107 27108 27109 27110 27111 27112 27113 27114 27115 27116 27117 27118 27119 27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27075 def list_process_threads_slot_async(resource_group_name, name, process_id, slot, 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, 'process_id is nil' if process_id.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/processes/{processId}/threads' 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,'processId' => process_id,'slot' => slot,'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 || status_code == 404 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_08_01::Models::ProcessThreadInfoCollection.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_process_threads_slot_next(next_page_link, custom_headers: nil) ⇒ ProcessThreadInfoCollection
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
41452 41453 41454 41455 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41452 def list_process_threads_slot_next(next_page_link, custom_headers:nil) response = list_process_threads_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_process_threads_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
to List operation. to the HTTP request.
41489 41490 41491 41492 41493 41494 41495 41496 41497 41498 41499 41500 41501 41502 41503 41504 41505 41506 41507 41508 41509 41510 41511 41512 41513 41514 41515 41516 41517 41518 41519 41520 41521 41522 41523 41524 41525 41526 41527 41528 41529 41530 41531 41532 41533 41534 41535 41536 41537 41538 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41489 def list_process_threads_slot_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 || status_code == 404 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_08_01::Models::ProcessThreadInfoCollection.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_process_threads_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
41471 41472 41473 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41471 def list_process_threads_slot_next_with_http_info(next_page_link, custom_headers:nil) list_process_threads_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_process_threads_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
27053 27054 27055 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27053 def list_process_threads_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers:nil) list_process_threads_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! end |
#list_process_threads_with_http_info(resource_group_name, name, process_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List the threads in a process by its ID for a specific scaled-out instance in a web site.
List the threads in a process by its ID for a specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
12666 12667 12668 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12666 def list_process_threads_with_http_info(resource_group_name, name, process_id, custom_headers:nil) list_process_threads_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! end |
#list_processes(resource_group_name, name, custom_headers: nil) ⇒ Array<ProcessInfo>
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
11952 11953 11954 11955 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11952 def list_processes(resource_group_name, name, custom_headers:nil) first_page = list_processes_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_processes_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ ProcessInfoCollection
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
response.
43365 43366 43367 43368 43369 43370 43371 43372 43373 43374 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43365 def list_processes_as_lazy(resource_group_name, name, custom_headers:nil) response = list_processes_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_processes_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_processes_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
resource belongs. to the HTTP request.
11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11991 def list_processes_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/sites/{name}/processes' 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 || status_code == 404 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_08_01::Models::ProcessInfoCollection.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_processes_next(next_page_link, custom_headers: nil) ⇒ ProcessInfoCollection
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
39190 39191 39192 39193 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39190 def list_processes_next(next_page_link, custom_headers:nil) response = list_processes_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_processes_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
to List operation. to the HTTP request.
39227 39228 39229 39230 39231 39232 39233 39234 39235 39236 39237 39238 39239 39240 39241 39242 39243 39244 39245 39246 39247 39248 39249 39250 39251 39252 39253 39254 39255 39256 39257 39258 39259 39260 39261 39262 39263 39264 39265 39266 39267 39268 39269 39270 39271 39272 39273 39274 39275 39276 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39227 def list_processes_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 || status_code == 404 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_08_01::Models::ProcessInfoCollection.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_processes_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
39209 39210 39211 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39209 def list_processes_next_with_http_info(next_page_link, custom_headers:nil) list_processes_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_processes_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<ProcessInfo>
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
26295 26296 26297 26298 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26295 def list_processes_slot(resource_group_name, name, slot, custom_headers:nil) first_page = list_processes_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_processes_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ ProcessInfoCollection
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
response.
43959 43960 43961 43962 43963 43964 43965 43966 43967 43968 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43959 def list_processes_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) response = list_processes_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_processes_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_processes_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. to the HTTP request.
26338 26339 26340 26341 26342 26343 26344 26345 26346 26347 26348 26349 26350 26351 26352 26353 26354 26355 26356 26357 26358 26359 26360 26361 26362 26363 26364 26365 26366 26367 26368 26369 26370 26371 26372 26373 26374 26375 26376 26377 26378 26379 26380 26381 26382 26383 26384 26385 26386 26387 26388 26389 26390 26391 26392 26393 26394 26395 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26338 def list_processes_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/processes' 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,'slot' => slot,'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 || status_code == 404 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_08_01::Models::ProcessInfoCollection.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_processes_slot_next(next_page_link, custom_headers: nil) ⇒ ProcessInfoCollection
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
41248 41249 41250 41251 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41248 def list_processes_slot_next(next_page_link, custom_headers:nil) response = list_processes_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_processes_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
to List operation. to the HTTP request.
41285 41286 41287 41288 41289 41290 41291 41292 41293 41294 41295 41296 41297 41298 41299 41300 41301 41302 41303 41304 41305 41306 41307 41308 41309 41310 41311 41312 41313 41314 41315 41316 41317 41318 41319 41320 41321 41322 41323 41324 41325 41326 41327 41328 41329 41330 41331 41332 41333 41334 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41285 def list_processes_slot_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 || status_code == 404 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_08_01::Models::ProcessInfoCollection.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_processes_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
to List operation. will be added to the HTTP request.
41267 41268 41269 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41267 def list_processes_slot_next_with_http_info(next_page_link, custom_headers:nil) list_processes_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_processes_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
26317 26318 26319 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 26317 def list_processes_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_processes_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_processes_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site.
resource belongs. will be added to the HTTP request.
11972 11973 11974 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11972 def list_processes_with_http_info(resource_group_name, name, custom_headers:nil) list_processes_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_public_certificates(resource_group_name, name, custom_headers: nil) ⇒ Array<PublicCertificate>
Get public certificates for an app or a deployment slot.
Get public certificates for an app or a deployment slot.
resource belongs. will be added to the HTTP request.
12878 12879 12880 12881 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12878 def list_public_certificates(resource_group_name, name, custom_headers:nil) first_page = list_public_certificates_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_public_certificates_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ PublicCertificateCollection
Get public certificates for an app or a deployment slot.
Get public certificates for an app or a deployment slot.
resource belongs. will be added to the HTTP request.
the response.
43446 43447 43448 43449 43450 43451 43452 43453 43454 43455 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43446 def list_public_certificates_as_lazy(resource_group_name, name, custom_headers:nil) response = list_public_certificates_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_public_certificates_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_public_certificates_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get public certificates for an app or a deployment slot.
Get public certificates for an app or a deployment slot.
resource belongs. to the HTTP request.
12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12913 def list_public_certificates_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/sites/{name}/publicCertificates' 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_08_01::Models::PublicCertificateCollection.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_public_certificates_next(next_page_link, custom_headers: nil) ⇒ PublicCertificateCollection
Get public certificates for an app or a deployment slot.
Get public certificates for an app or a deployment slot.
to List operation. will be added to the HTTP request.
39494 39495 39496 39497 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39494 def list_public_certificates_next(next_page_link, custom_headers:nil) response = list_public_certificates_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_public_certificates_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get public certificates for an app or a deployment slot.
Get public certificates for an app or a deployment slot.
to List operation. to the HTTP request.
39527 39528 39529 39530 39531 39532 39533 39534 39535 39536 39537 39538 39539 39540 39541 39542 39543 39544 39545 39546 39547 39548 39549 39550 39551 39552 39553 39554 39555 39556 39557 39558 39559 39560 39561 39562 39563 39564 39565 39566 39567 39568 39569 39570 39571 39572 39573 39574 39575 39576 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39527 def list_public_certificates_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_08_01::Models::PublicCertificateCollection.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_public_certificates_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get public certificates for an app or a deployment slot.
Get public certificates for an app or a deployment slot.
to List operation. will be added to the HTTP request.
39511 39512 39513 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39511 def list_public_certificates_next_with_http_info(next_page_link, custom_headers:nil) list_public_certificates_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_public_certificates_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<PublicCertificate>
Get public certificates for an app or a deployment slot.
Get public certificates for an app or a deployment slot.
resource belongs. the API gets hostname bindings for the production slot. will be added to the HTTP request.
27277 27278 27279 27280 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27277 def list_public_certificates_slot(resource_group_name, name, slot, custom_headers:nil) first_page = list_public_certificates_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_public_certificates_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ PublicCertificateCollection
Get public certificates for an app or a deployment slot.
Get public certificates for an app or a deployment slot.
resource belongs. the API gets hostname bindings for the production slot. will be added to the HTTP request.
the response.
44046 44047 44048 44049 44050 44051 44052 44053 44054 44055 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 44046 def list_public_certificates_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) response = list_public_certificates_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_public_certificates_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_public_certificates_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get public certificates for an app or a deployment slot.
Get public certificates for an app or a deployment slot.
resource belongs. the API gets hostname bindings for the production slot. to the HTTP request.
27316 27317 27318 27319 27320 27321 27322 27323 27324 27325 27326 27327 27328 27329 27330 27331 27332 27333 27334 27335 27336 27337 27338 27339 27340 27341 27342 27343 27344 27345 27346 27347 27348 27349 27350 27351 27352 27353 27354 27355 27356 27357 27358 27359 27360 27361 27362 27363 27364 27365 27366 27367 27368 27369 27370 27371 27372 27373 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27316 def list_public_certificates_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/publicCertificates' 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,'slot' => slot,'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_08_01::Models::PublicCertificateCollection.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_public_certificates_slot_next(next_page_link, custom_headers: nil) ⇒ PublicCertificateCollection
Get public certificates for an app or a deployment slot.
Get public certificates for an app or a deployment slot.
to List operation. will be added to the HTTP request.
41552 41553 41554 41555 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41552 def list_public_certificates_slot_next(next_page_link, custom_headers:nil) response = list_public_certificates_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_public_certificates_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get public certificates for an app or a deployment slot.
Get public certificates for an app or a deployment slot.
to List operation. to the HTTP request.
41585 41586 41587 41588 41589 41590 41591 41592 41593 41594 41595 41596 41597 41598 41599 41600 41601 41602 41603 41604 41605 41606 41607 41608 41609 41610 41611 41612 41613 41614 41615 41616 41617 41618 41619 41620 41621 41622 41623 41624 41625 41626 41627 41628 41629 41630 41631 41632 41633 41634 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41585 def list_public_certificates_slot_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_08_01::Models::PublicCertificateCollection.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_public_certificates_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get public certificates for an app or a deployment slot.
Get public certificates for an app or a deployment slot.
to List operation. will be added to the HTTP request.
41569 41570 41571 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41569 def list_public_certificates_slot_next_with_http_info(next_page_link, custom_headers:nil) list_public_certificates_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_public_certificates_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get public certificates for an app or a deployment slot.
Get public certificates for an app or a deployment slot.
resource belongs. the API gets hostname bindings for the production slot. will be added to the HTTP request.
27297 27298 27299 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27297 def list_public_certificates_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_public_certificates_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_public_certificates_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get public certificates for an app or a deployment slot.
Get public certificates for an app or a deployment slot.
resource belongs. will be added to the HTTP request.
12896 12897 12898 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 12896 def list_public_certificates_with_http_info(resource_group_name, name, custom_headers:nil) list_public_certificates_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_publishing_credentials(resource_group_name, name, custom_headers: nil) ⇒ User
Gets the Git/FTP publishing credentials of an app.
Gets the Git/FTP publishing credentials of an app.
resource belongs. will be added to the HTTP request.
3171 3172 3173 3174 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3171 def list_publishing_credentials(resource_group_name, name, custom_headers:nil) response = list_publishing_credentials_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_publishing_credentials_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. will be added to the HTTP request.
response.
3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3186 def list_publishing_credentials_async(resource_group_name, name, custom_headers:nil) # Send request promise = begin_list_publishing_credentials_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_08_01::Models::User.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 |
#list_publishing_credentials_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ User
Gets the Git/FTP publishing credentials of an app.
Gets the Git/FTP publishing credentials of an app.
resource belongs. the API will get the publishing credentials for the production slot. will be added to the HTTP request.
17354 17355 17356 17357 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17354 def list_publishing_credentials_slot(resource_group_name, name, slot, custom_headers:nil) response = list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. the API will get the publishing credentials for the production slot. will be added to the HTTP request.
response.
17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17371 def list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers:nil) # Send request promise = begin_list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::User.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 |
#list_publishing_profile_xml_with_secrets(resource_group_name, name, publishing_profile_options, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Gets the publishing profile for an app (or deployment slot, if specified).
Gets the publishing profile for an app (or deployment slot, if specified).
resource belongs. publishingProfileOptions for publishing profile. For example, use “FileZilla3” to get a FileZilla publishing profile. will be added to the HTTP request.
13326 13327 13328 13329 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13326 def list_publishing_profile_xml_with_secrets(resource_group_name, name, , custom_headers:nil) response = list_publishing_profile_xml_with_secrets_async(resource_group_name, name, , custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_publishing_profile_xml_with_secrets_async(resource_group_name, name, publishing_profile_options, custom_headers: nil) ⇒ Concurrent::Promise
Gets the publishing profile for an app (or deployment slot, if specified).
Gets the publishing profile for an app (or deployment slot, if specified).
resource belongs. publishingProfileOptions for publishing profile. For example, use “FileZilla3” to get a FileZilla publishing profile. to the HTTP request.
13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13367 def list_publishing_profile_xml_with_secrets_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, 'publishing_profile_options is nil' if .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_08_01::Models::CsmPublishingProfileOptions.mapper() request_content = @client.serialize(request_mapper, ) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publishxml' 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(: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 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: 'Stream' } } 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_publishing_profile_xml_with_secrets_slot(resource_group_name, name, publishing_profile_options, slot, custom_headers: nil) ⇒ NOT_IMPLEMENTED
Gets the publishing profile for an app (or deployment slot, if specified).
Gets the publishing profile for an app (or deployment slot, if specified).
resource belongs. publishingProfileOptions for publishing profile. For example, use “FileZilla3” to get a FileZilla publishing profile. the API will get the publishing profile for the production slot. will be added to the HTTP request.
27753 27754 27755 27756 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27753 def list_publishing_profile_xml_with_secrets_slot(resource_group_name, name, , slot, custom_headers:nil) response = list_publishing_profile_xml_with_secrets_slot_async(resource_group_name, name, , slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_publishing_profile_xml_with_secrets_slot_async(resource_group_name, name, publishing_profile_options, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the publishing profile for an app (or deployment slot, if specified).
Gets the publishing profile for an app (or deployment slot, if specified).
resource belongs. publishingProfileOptions for publishing profile. For example, use “FileZilla3” to get a FileZilla publishing profile. the API will get the publishing profile for the production slot. to the HTTP request.
27798 27799 27800 27801 27802 27803 27804 27805 27806 27807 27808 27809 27810 27811 27812 27813 27814 27815 27816 27817 27818 27819 27820 27821 27822 27823 27824 27825 27826 27827 27828 27829 27830 27831 27832 27833 27834 27835 27836 27837 27838 27839 27840 27841 27842 27843 27844 27845 27846 27847 27848 27849 27850 27851 27852 27853 27854 27855 27856 27857 27858 27859 27860 27861 27862 27863 27864 27865 27866 27867 27868 27869 27870 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27798 def list_publishing_profile_xml_with_secrets_slot_async(resource_group_name, name, , slot, 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, 'publishing_profile_options is nil' if .nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::CsmPublishingProfileOptions.mapper() request_content = @client.serialize(request_mapper, ) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publishxml' 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,'slot' => slot,'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(: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 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: 'Stream' } } 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_publishing_profile_xml_with_secrets_slot_with_http_info(resource_group_name, name, publishing_profile_options, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the publishing profile for an app (or deployment slot, if specified).
Gets the publishing profile for an app (or deployment slot, if specified).
resource belongs. publishingProfileOptions for publishing profile. For example, use “FileZilla3” to get a FileZilla publishing profile. the API will get the publishing profile for the production slot. will be added to the HTTP request.
27776 27777 27778 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27776 def list_publishing_profile_xml_with_secrets_slot_with_http_info(resource_group_name, name, , slot, custom_headers:nil) list_publishing_profile_xml_with_secrets_slot_async(resource_group_name, name, , slot, custom_headers:custom_headers).value! end |
#list_publishing_profile_xml_with_secrets_with_http_info(resource_group_name, name, publishing_profile_options, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the publishing profile for an app (or deployment slot, if specified).
Gets the publishing profile for an app (or deployment slot, if specified).
resource belongs. publishingProfileOptions for publishing profile. For example, use “FileZilla3” to get a FileZilla publishing profile. will be added to the HTTP request.
13347 13348 13349 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13347 def list_publishing_profile_xml_with_secrets_with_http_info(resource_group_name, name, , custom_headers:nil) list_publishing_profile_xml_with_secrets_async(resource_group_name, name, , custom_headers:custom_headers).value! end |
#list_relay_service_connections(resource_group_name, name, custom_headers: nil) ⇒ RelayServiceConnectionEntity
Gets hybrid connections configured for an app (or deployment slot, if specified).
Gets hybrid connections configured for an app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
8211 8212 8213 8214 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8211 def list_relay_service_connections(resource_group_name, name, custom_headers:nil) response = list_relay_service_connections_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_relay_service_connections_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets hybrid connections configured for an app (or deployment slot, if specified).
Gets hybrid connections configured for an app (or deployment slot, if specified).
resource belongs. to the HTTP request.
8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8250 def list_relay_service_connections_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/sites/{name}/hybridconnection' 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_08_01::Models::RelayServiceConnectionEntity.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_relay_service_connections_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ RelayServiceConnectionEntity
Gets hybrid connections configured for an app (or deployment slot, if specified).
Gets hybrid connections configured for an app (or deployment slot, if specified).
resource belongs. the API will get hybrid connections for the production slot. will be added to the HTTP request.
22444 22445 22446 22447 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22444 def list_relay_service_connections_slot(resource_group_name, name, slot, custom_headers:nil) response = list_relay_service_connections_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_relay_service_connections_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets hybrid connections configured for an app (or deployment slot, if specified).
Gets hybrid connections configured for an app (or deployment slot, if specified).
resource belongs. the API will get hybrid connections for the production slot. to the HTTP request.
22487 22488 22489 22490 22491 22492 22493 22494 22495 22496 22497 22498 22499 22500 22501 22502 22503 22504 22505 22506 22507 22508 22509 22510 22511 22512 22513 22514 22515 22516 22517 22518 22519 22520 22521 22522 22523 22524 22525 22526 22527 22528 22529 22530 22531 22532 22533 22534 22535 22536 22537 22538 22539 22540 22541 22542 22543 22544 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22487 def list_relay_service_connections_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/hybridconnection' 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,'slot' => slot,'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_08_01::Models::RelayServiceConnectionEntity.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_relay_service_connections_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets hybrid connections configured for an app (or deployment slot, if specified).
Gets hybrid connections configured for an app (or deployment slot, if specified).
resource belongs. the API will get hybrid connections for the production slot. will be added to the HTTP request.
22466 22467 22468 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22466 def list_relay_service_connections_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_relay_service_connections_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_relay_service_connections_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets hybrid connections configured for an app (or deployment slot, if specified).
Gets hybrid connections configured for an app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
8231 8232 8233 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8231 def list_relay_service_connections_with_http_info(resource_group_name, name, custom_headers:nil) list_relay_service_connections_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_site_extensions(resource_group_name, name, custom_headers: nil) ⇒ Array<SiteExtensionInfo>
Get list of siteextensions for a web site, or a deployment slot.
Get list of siteextensions for a web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
13715 13716 13717 13718 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13715 def list_site_extensions(resource_group_name, name, custom_headers:nil) first_page = list_site_extensions_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_site_extensions_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ SiteExtensionInfoCollection
Get list of siteextensions for a web site, or a deployment slot.
Get list of siteextensions for a web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
the response.
43471 43472 43473 43474 43475 43476 43477 43478 43479 43480 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43471 def list_site_extensions_as_lazy(resource_group_name, name, custom_headers:nil) response = list_site_extensions_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_site_extensions_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_site_extensions_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get list of siteextensions for a web site, or a deployment slot.
Get list of siteextensions for a web site, or a deployment slot.
resource belongs. to the HTTP request.
13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13750 def list_site_extensions_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/sites/{name}/siteextensions' 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 || status_code == 404 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_08_01::Models::SiteExtensionInfoCollection.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_site_extensions_next(next_page_link, custom_headers: nil) ⇒ SiteExtensionInfoCollection
Get list of siteextensions for a web site, or a deployment slot.
Get list of siteextensions for a web site, or a deployment slot.
to List operation. will be added to the HTTP request.
39590 39591 39592 39593 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39590 def list_site_extensions_next(next_page_link, custom_headers:nil) response = list_site_extensions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_site_extensions_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get list of siteextensions for a web site, or a deployment slot.
Get list of siteextensions for a web site, or a deployment slot.
to List operation. to the HTTP request.
39623 39624 39625 39626 39627 39628 39629 39630 39631 39632 39633 39634 39635 39636 39637 39638 39639 39640 39641 39642 39643 39644 39645 39646 39647 39648 39649 39650 39651 39652 39653 39654 39655 39656 39657 39658 39659 39660 39661 39662 39663 39664 39665 39666 39667 39668 39669 39670 39671 39672 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39623 def list_site_extensions_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 || status_code == 404 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_08_01::Models::SiteExtensionInfoCollection.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_site_extensions_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of siteextensions for a web site, or a deployment slot.
Get list of siteextensions for a web site, or a deployment slot.
to List operation. will be added to the HTTP request.
39607 39608 39609 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39607 def list_site_extensions_next_with_http_info(next_page_link, custom_headers:nil) list_site_extensions_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_site_extensions_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<SiteExtensionInfo>
Get list of siteextensions for a web site, or a deployment slot.
Get list of siteextensions for a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
28167 28168 28169 28170 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28167 def list_site_extensions_slot(resource_group_name, name, slot, custom_headers:nil) first_page = list_site_extensions_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_site_extensions_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ SiteExtensionInfoCollection
Get list of siteextensions for a web site, or a deployment slot.
Get list of siteextensions for a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
the response.
44073 44074 44075 44076 44077 44078 44079 44080 44081 44082 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 44073 def list_site_extensions_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) response = list_site_extensions_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_site_extensions_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_site_extensions_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get list of siteextensions for a web site, or a deployment slot.
Get list of siteextensions for a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
28206 28207 28208 28209 28210 28211 28212 28213 28214 28215 28216 28217 28218 28219 28220 28221 28222 28223 28224 28225 28226 28227 28228 28229 28230 28231 28232 28233 28234 28235 28236 28237 28238 28239 28240 28241 28242 28243 28244 28245 28246 28247 28248 28249 28250 28251 28252 28253 28254 28255 28256 28257 28258 28259 28260 28261 28262 28263 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28206 def list_site_extensions_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/siteextensions' 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,'slot' => slot,'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 || status_code == 404 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_08_01::Models::SiteExtensionInfoCollection.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_site_extensions_slot_next(next_page_link, custom_headers: nil) ⇒ SiteExtensionInfoCollection
Get list of siteextensions for a web site, or a deployment slot.
Get list of siteextensions for a web site, or a deployment slot.
to List operation. will be added to the HTTP request.
41648 41649 41650 41651 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41648 def list_site_extensions_slot_next(next_page_link, custom_headers:nil) response = list_site_extensions_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_site_extensions_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get list of siteextensions for a web site, or a deployment slot.
Get list of siteextensions for a web site, or a deployment slot.
to List operation. to the HTTP request.
41681 41682 41683 41684 41685 41686 41687 41688 41689 41690 41691 41692 41693 41694 41695 41696 41697 41698 41699 41700 41701 41702 41703 41704 41705 41706 41707 41708 41709 41710 41711 41712 41713 41714 41715 41716 41717 41718 41719 41720 41721 41722 41723 41724 41725 41726 41727 41728 41729 41730 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41681 def list_site_extensions_slot_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 || status_code == 404 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_08_01::Models::SiteExtensionInfoCollection.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_site_extensions_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of siteextensions for a web site, or a deployment slot.
Get list of siteextensions for a web site, or a deployment slot.
to List operation. will be added to the HTTP request.
41665 41666 41667 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41665 def list_site_extensions_slot_next_with_http_info(next_page_link, custom_headers:nil) list_site_extensions_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_site_extensions_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of siteextensions for a web site, or a deployment slot.
Get list of siteextensions for a web site, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
28187 28188 28189 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28187 def list_site_extensions_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_site_extensions_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_site_extensions_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get list of siteextensions for a web site, or a deployment slot.
Get list of siteextensions for a web site, or a deployment slot.
resource belongs. will be added to the HTTP request.
13733 13734 13735 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13733 def list_site_extensions_with_http_info(resource_group_name, name, custom_headers:nil) list_site_extensions_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_site_push_settings(resource_group_name, name, custom_headers: nil) ⇒ PushSettings
Gets the Push settings associated with web app.
Gets the Push settings associated with web app.
resource belongs. will be added to the HTTP request.
3334 3335 3336 3337 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3334 def list_site_push_settings(resource_group_name, name, custom_headers:nil) response = list_site_push_settings_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_site_push_settings_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the Push settings associated with web app.
Gets the Push settings associated with web app.
resource belongs. to the HTTP request.
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 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3369 def list_site_push_settings_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/sites/{name}/config/pushsettings/list' 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 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_08_01::Models::PushSettings.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_site_push_settings_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ PushSettings
Gets the Push settings associated with web app.
Gets the Push settings associated with web app.
resource belongs. to production slot. will be added to the HTTP request.
17528 17529 17530 17531 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17528 def list_site_push_settings_slot(resource_group_name, name, slot, custom_headers:nil) response = list_site_push_settings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_site_push_settings_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the Push settings associated with web app.
Gets the Push settings associated with web app.
resource belongs. to production slot. to the HTTP request.
17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17567 def list_site_push_settings_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/config/pushsettings/list' 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,'slot' => slot,'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 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_08_01::Models::PushSettings.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_site_push_settings_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the Push settings associated with web app.
Gets the Push settings associated with web app.
resource belongs. to production slot. will be added to the HTTP request.
17548 17549 17550 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17548 def list_site_push_settings_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_site_push_settings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_site_push_settings_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the Push settings associated with web app.
Gets the Push settings associated with web app.
resource belongs. will be added to the HTTP request.
3352 3353 3354 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3352 def list_site_push_settings_with_http_info(resource_group_name, name, custom_headers:nil) list_site_push_settings_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_slot_configuration_names(resource_group_name, name, custom_headers: nil) ⇒ SlotConfigNamesResource
Gets the names of app settings and connection strings that stick to the slot (not swapped).
Gets the names of app settings and connection strings that stick to the slot (not swapped).
resource belongs. will be added to the HTTP request.
3442 3443 3444 3445 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3442 def list_slot_configuration_names(resource_group_name, name, custom_headers:nil) response = list_slot_configuration_names_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_slot_configuration_names_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the names of app settings and connection strings that stick to the slot (not swapped).
Gets the names of app settings and connection strings that stick to the slot (not swapped).
resource belongs. to the HTTP request.
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 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3481 def list_slot_configuration_names_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/sites/{name}/config/slotConfigNames' 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_08_01::Models::SlotConfigNamesResource.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_slot_configuration_names_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the names of app settings and connection strings that stick to the slot (not swapped).
Gets the names of app settings and connection strings that stick to the slot (not swapped).
resource belongs. will be added to the HTTP request.
3462 3463 3464 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3462 def list_slot_configuration_names_with_http_info(resource_group_name, name, custom_headers:nil) list_slot_configuration_names_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_slot_differences_from_production(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ Array<SlotDifference>
Get the difference in configuration settings between two web app slots.
Get the difference in configuration settings between two web app slots.
resource belongs. slot name. See example. will be added to the HTTP request.
31768 31769 31770 31771 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31768 def list_slot_differences_from_production(resource_group_name, name, slot_swap_entity, custom_headers:nil) first_page = list_slot_differences_from_production_as_lazy(resource_group_name, name, slot_swap_entity, custom_headers:custom_headers) first_page.get_all_items end |
#list_slot_differences_from_production_as_lazy(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ SlotDifferenceCollection
Get the difference in configuration settings between two web app slots.
Get the difference in configuration settings between two web app slots.
resource belongs. slot name. See example. will be added to the HTTP request.
response.
44270 44271 44272 44273 44274 44275 44276 44277 44278 44279 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 44270 def list_slot_differences_from_production_as_lazy(resource_group_name, name, slot_swap_entity, custom_headers:nil) response = list_slot_differences_from_production_async(resource_group_name, name, slot_swap_entity, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_slot_differences_from_production_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_slot_differences_from_production_async(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ Concurrent::Promise
Get the difference in configuration settings between two web app slots.
Get the difference in configuration settings between two web app slots.
resource belongs. slot name. See example. to the HTTP request.
31807 31808 31809 31810 31811 31812 31813 31814 31815 31816 31817 31818 31819 31820 31821 31822 31823 31824 31825 31826 31827 31828 31829 31830 31831 31832 31833 31834 31835 31836 31837 31838 31839 31840 31841 31842 31843 31844 31845 31846 31847 31848 31849 31850 31851 31852 31853 31854 31855 31856 31857 31858 31859 31860 31861 31862 31863 31864 31865 31866 31867 31868 31869 31870 31871 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31807 def list_slot_differences_from_production_async(resource_group_name, name, slot_swap_entity, 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, 'slot_swap_entity is nil' if slot_swap_entity.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_08_01::Models::CsmSlotEntity.mapper() request_content = @client.serialize(request_mapper, slot_swap_entity) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slotsdiffs' 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(: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 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_08_01::Models::SlotDifferenceCollection.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_slot_differences_from_production_next(next_page_link, custom_headers: nil) ⇒ SlotDifferenceCollection
Get the difference in configuration settings between two web app slots.
Get the difference in configuration settings between two web app slots.
to List operation. will be added to the HTTP request.
42326 42327 42328 42329 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42326 def list_slot_differences_from_production_next(next_page_link, custom_headers:nil) response = list_slot_differences_from_production_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_slot_differences_from_production_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get the difference in configuration settings between two web app slots.
Get the difference in configuration settings between two web app slots.
to List operation. to the HTTP request.
42359 42360 42361 42362 42363 42364 42365 42366 42367 42368 42369 42370 42371 42372 42373 42374 42375 42376 42377 42378 42379 42380 42381 42382 42383 42384 42385 42386 42387 42388 42389 42390 42391 42392 42393 42394 42395 42396 42397 42398 42399 42400 42401 42402 42403 42404 42405 42406 42407 42408 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42359 def list_slot_differences_from_production_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 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_08_01::Models::SlotDifferenceCollection.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_slot_differences_from_production_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the difference in configuration settings between two web app slots.
Get the difference in configuration settings between two web app slots.
to List operation. will be added to the HTTP request.
42343 42344 42345 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42343 def list_slot_differences_from_production_next_with_http_info(next_page_link, custom_headers:nil) list_slot_differences_from_production_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_slot_differences_from_production_with_http_info(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the difference in configuration settings between two web app slots.
Get the difference in configuration settings between two web app slots.
resource belongs. slot name. See example. will be added to the HTTP request.
31788 31789 31790 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31788 def list_slot_differences_from_production_with_http_info(resource_group_name, name, slot_swap_entity, custom_headers:nil) list_slot_differences_from_production_async(resource_group_name, name, slot_swap_entity, custom_headers:custom_headers).value! end |
#list_slot_differences_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ Array<SlotDifference>
Get the difference in configuration settings between two web app slots.
Get the difference in configuration settings between two web app slots.
resource belongs. slot name. See example. production slot is used as the source slot. will be added to the HTTP request.
28563 28564 28565 28566 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28563 def list_slot_differences_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) first_page = list_slot_differences_slot_as_lazy(resource_group_name, name, slot_swap_entity, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_slot_differences_slot_as_lazy(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ SlotDifferenceCollection
Get the difference in configuration settings between two web app slots.
Get the difference in configuration settings between two web app slots.
resource belongs. slot name. See example. production slot is used as the source slot. will be added to the HTTP request.
response.
44102 44103 44104 44105 44106 44107 44108 44109 44110 44111 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 44102 def list_slot_differences_slot_as_lazy(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) response = list_slot_differences_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_slot_differences_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_slot_differences_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ Concurrent::Promise
Get the difference in configuration settings between two web app slots.
Get the difference in configuration settings between two web app slots.
resource belongs. slot name. See example. production slot is used as the source slot. to the HTTP request.
28606 28607 28608 28609 28610 28611 28612 28613 28614 28615 28616 28617 28618 28619 28620 28621 28622 28623 28624 28625 28626 28627 28628 28629 28630 28631 28632 28633 28634 28635 28636 28637 28638 28639 28640 28641 28642 28643 28644 28645 28646 28647 28648 28649 28650 28651 28652 28653 28654 28655 28656 28657 28658 28659 28660 28661 28662 28663 28664 28665 28666 28667 28668 28669 28670 28671 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28606 def list_slot_differences_slot_async(resource_group_name, name, slot_swap_entity, slot, 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, 'slot_swap_entity is nil' if slot_swap_entity.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::CsmSlotEntity.mapper() request_content = @client.serialize(request_mapper, slot_swap_entity) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/slotsdiffs' 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,'slot' => slot,'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(: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 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_08_01::Models::SlotDifferenceCollection.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_slot_differences_slot_next(next_page_link, custom_headers: nil) ⇒ SlotDifferenceCollection
Get the difference in configuration settings between two web app slots.
Get the difference in configuration settings between two web app slots.
to List operation. will be added to the HTTP request.
41744 41745 41746 41747 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41744 def list_slot_differences_slot_next(next_page_link, custom_headers:nil) response = list_slot_differences_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_slot_differences_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get the difference in configuration settings between two web app slots.
Get the difference in configuration settings between two web app slots.
to List operation. to the HTTP request.
41777 41778 41779 41780 41781 41782 41783 41784 41785 41786 41787 41788 41789 41790 41791 41792 41793 41794 41795 41796 41797 41798 41799 41800 41801 41802 41803 41804 41805 41806 41807 41808 41809 41810 41811 41812 41813 41814 41815 41816 41817 41818 41819 41820 41821 41822 41823 41824 41825 41826 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41777 def list_slot_differences_slot_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 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_08_01::Models::SlotDifferenceCollection.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_slot_differences_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the difference in configuration settings between two web app slots.
Get the difference in configuration settings between two web app slots.
to List operation. will be added to the HTTP request.
41761 41762 41763 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41761 def list_slot_differences_slot_next_with_http_info(next_page_link, custom_headers:nil) list_slot_differences_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_slot_differences_slot_with_http_info(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the difference in configuration settings between two web app slots.
Get the difference in configuration settings between two web app slots.
resource belongs. slot name. See example. production slot is used as the source slot. will be added to the HTTP request.
28585 28586 28587 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28585 def list_slot_differences_slot_with_http_info(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) list_slot_differences_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:custom_headers).value! end |
#list_slots(resource_group_name, name, custom_headers: nil) ⇒ Array<Site>
Gets an app’s deployment slots.
Gets an app’s deployment slots.
resource belongs. will be added to the HTTP request.
14084 14085 14086 14087 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14084 def list_slots(resource_group_name, name, custom_headers:nil) first_page = list_slots_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_slots_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ WebAppCollection
Gets an app’s deployment slots.
Gets an app’s deployment slots.
resource belongs. will be added to the HTTP request.
response.
43496 43497 43498 43499 43500 43501 43502 43503 43504 43505 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 43496 def list_slots_as_lazy(resource_group_name, name, custom_headers:nil) response = list_slots_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_slots_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_slots_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets an app’s deployment slots.
Gets an app’s deployment slots.
resource belongs. to the HTTP request.
14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14119 def list_slots_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/sites/{name}/slots' 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_08_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_slots_next(next_page_link, custom_headers: nil) ⇒ WebAppCollection
Gets an app’s deployment slots.
Gets an app’s deployment slots.
to List operation. will be added to the HTTP request.
39686 39687 39688 39689 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39686 def list_slots_next(next_page_link, custom_headers:nil) response = list_slots_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_slots_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets an app’s deployment slots.
Gets an app’s deployment slots.
to List operation. to the HTTP request.
39719 39720 39721 39722 39723 39724 39725 39726 39727 39728 39729 39730 39731 39732 39733 39734 39735 39736 39737 39738 39739 39740 39741 39742 39743 39744 39745 39746 39747 39748 39749 39750 39751 39752 39753 39754 39755 39756 39757 39758 39759 39760 39761 39762 39763 39764 39765 39766 39767 39768 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39719 def list_slots_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_08_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_slots_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets an app’s deployment slots.
Gets an app’s deployment slots.
to List operation. will be added to the HTTP request.
39703 39704 39705 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 39703 def list_slots_next_with_http_info(next_page_link, custom_headers:nil) list_slots_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_slots_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets an app’s deployment slots.
Gets an app’s deployment slots.
resource belongs. will be added to the HTTP request.
14102 14103 14104 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14102 def list_slots_with_http_info(resource_group_name, name, custom_headers:nil) list_slots_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_snapshots(resource_group_name, name, custom_headers: nil) ⇒ Array<Snapshot>
Returns all Snapshots to the user.
Returns all Snapshots to the user.
resource belongs. will be added to the HTTP request.
31932 31933 31934 31935 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31932 def list_snapshots(resource_group_name, name, custom_headers:nil) first_page = list_snapshots_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_snapshots_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ SnapshotCollection
Returns all Snapshots to the user.
Returns all Snapshots to the user.
resource belongs. will be added to the HTTP request.
response.
44295 44296 44297 44298 44299 44300 44301 44302 44303 44304 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 44295 def list_snapshots_as_lazy(resource_group_name, name, custom_headers:nil) response = list_snapshots_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_snapshots_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_snapshots_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Returns all Snapshots to the user.
Returns all Snapshots to the user.
resource belongs. to the HTTP request.
31967 31968 31969 31970 31971 31972 31973 31974 31975 31976 31977 31978 31979 31980 31981 31982 31983 31984 31985 31986 31987 31988 31989 31990 31991 31992 31993 31994 31995 31996 31997 31998 31999 32000 32001 32002 32003 32004 32005 32006 32007 32008 32009 32010 32011 32012 32013 32014 32015 32016 32017 32018 32019 32020 32021 32022 32023 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31967 def list_snapshots_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/sites/{name}/snapshots' 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_08_01::Models::SnapshotCollection.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_snapshots_next(next_page_link, custom_headers: nil) ⇒ SnapshotCollection
Returns all Snapshots to the user.
Returns all Snapshots to the user.
to List operation. will be added to the HTTP request.
42422 42423 42424 42425 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42422 def list_snapshots_next(next_page_link, custom_headers:nil) response = list_snapshots_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_snapshots_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Returns all Snapshots to the user.
Returns all Snapshots to the user.
to List operation. to the HTTP request.
42455 42456 42457 42458 42459 42460 42461 42462 42463 42464 42465 42466 42467 42468 42469 42470 42471 42472 42473 42474 42475 42476 42477 42478 42479 42480 42481 42482 42483 42484 42485 42486 42487 42488 42489 42490 42491 42492 42493 42494 42495 42496 42497 42498 42499 42500 42501 42502 42503 42504 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42455 def list_snapshots_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_08_01::Models::SnapshotCollection.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_snapshots_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns all Snapshots to the user.
Returns all Snapshots to the user.
to List operation. will be added to the HTTP request.
42439 42440 42441 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42439 def list_snapshots_next_with_http_info(next_page_link, custom_headers:nil) list_snapshots_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_snapshots_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<Snapshot>
Returns all Snapshots to the user.
Returns all Snapshots to the user.
resource belongs. will be added to the HTTP request.
28737 28738 28739 28740 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28737 def list_snapshots_slot(resource_group_name, name, slot, custom_headers:nil) first_page = list_snapshots_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_snapshots_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ SnapshotCollection
Returns all Snapshots to the user.
Returns all Snapshots to the user.
resource belongs. will be added to the HTTP request.
response.
44128 44129 44130 44131 44132 44133 44134 44135 44136 44137 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 44128 def list_snapshots_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) response = list_snapshots_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_snapshots_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_snapshots_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Returns all Snapshots to the user.
Returns all Snapshots to the user.
resource belongs. to the HTTP request.
28774 28775 28776 28777 28778 28779 28780 28781 28782 28783 28784 28785 28786 28787 28788 28789 28790 28791 28792 28793 28794 28795 28796 28797 28798 28799 28800 28801 28802 28803 28804 28805 28806 28807 28808 28809 28810 28811 28812 28813 28814 28815 28816 28817 28818 28819 28820 28821 28822 28823 28824 28825 28826 28827 28828 28829 28830 28831 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28774 def list_snapshots_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/snapshots' 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,'slot' => slot,'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_08_01::Models::SnapshotCollection.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_snapshots_slot_next(next_page_link, custom_headers: nil) ⇒ SnapshotCollection
Returns all Snapshots to the user.
Returns all Snapshots to the user.
to List operation. will be added to the HTTP request.
41840 41841 41842 41843 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41840 def list_snapshots_slot_next(next_page_link, custom_headers:nil) response = list_snapshots_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_snapshots_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Returns all Snapshots to the user.
Returns all Snapshots to the user.
to List operation. to the HTTP request.
41873 41874 41875 41876 41877 41878 41879 41880 41881 41882 41883 41884 41885 41886 41887 41888 41889 41890 41891 41892 41893 41894 41895 41896 41897 41898 41899 41900 41901 41902 41903 41904 41905 41906 41907 41908 41909 41910 41911 41912 41913 41914 41915 41916 41917 41918 41919 41920 41921 41922 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41873 def list_snapshots_slot_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_08_01::Models::SnapshotCollection.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_snapshots_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns all Snapshots to the user.
Returns all Snapshots to the user.
to List operation. will be added to the HTTP request.
41857 41858 41859 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41857 def list_snapshots_slot_next_with_http_info(next_page_link, custom_headers:nil) list_snapshots_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_snapshots_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns all Snapshots to the user.
Returns all Snapshots to the user.
resource belongs. will be added to the HTTP request.
28756 28757 28758 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28756 def list_snapshots_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_snapshots_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_snapshots_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns all Snapshots to the user.
Returns all Snapshots to the user.
resource belongs. will be added to the HTTP request.
31950 31951 31952 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31950 def list_snapshots_with_http_info(resource_group_name, name, custom_headers:nil) list_snapshots_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_sync_function_triggers(resource_group_name, name, custom_headers: nil) ⇒ FunctionSecrets
This is to allow calling via powershell and ARM template.
This is to allow calling via powershell and ARM template.
resource belongs. will be added to the HTTP request.
10280 10281 10282 10283 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10280 def list_sync_function_triggers(resource_group_name, name, custom_headers:nil) response = list_sync_function_triggers_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_sync_function_triggers_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
This is to allow calling via powershell and ARM template.
This is to allow calling via powershell and ARM template.
resource belongs. to the HTTP request.
10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10315 def list_sync_function_triggers_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/sites/{name}/listsyncfunctiontriggerstatus' 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 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_08_01::Models::FunctionSecrets.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_sync_function_triggers_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ FunctionSecrets
This is to allow calling via powershell and ARM template.
This is to allow calling via powershell and ARM template.
resource belongs. the API will restore a backup of the production slot. will be added to the HTTP request.
24636 24637 24638 24639 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24636 def list_sync_function_triggers_slot(resource_group_name, name, slot, custom_headers:nil) response = list_sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
This is to allow calling via powershell and ARM template.
This is to allow calling via powershell and ARM template.
resource belongs. the API will restore a backup of the production slot. to the HTTP request.
24675 24676 24677 24678 24679 24680 24681 24682 24683 24684 24685 24686 24687 24688 24689 24690 24691 24692 24693 24694 24695 24696 24697 24698 24699 24700 24701 24702 24703 24704 24705 24706 24707 24708 24709 24710 24711 24712 24713 24714 24715 24716 24717 24718 24719 24720 24721 24722 24723 24724 24725 24726 24727 24728 24729 24730 24731 24732 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24675 def list_sync_function_triggers_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/listsyncfunctiontriggerstatus' 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,'slot' => slot,'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 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_08_01::Models::FunctionSecrets.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_sync_function_triggers_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
This is to allow calling via powershell and ARM template.
This is to allow calling via powershell and ARM template.
resource belongs. the API will restore a backup of the production slot. will be added to the HTTP request.
24656 24657 24658 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 24656 def list_sync_function_triggers_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_sync_function_triggers_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
This is to allow calling via powershell and ARM template.
This is to allow calling via powershell and ARM template.
resource belongs. will be added to the HTTP request.
10298 10299 10300 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10298 def list_sync_function_triggers_with_http_info(resource_group_name, name, custom_headers:nil) list_sync_function_triggers_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_triggered_web_job_history(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Array<TriggeredJobHistory>
List a triggered web job’s history for an app, or a deployment slot.
List a triggered web job’s history for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
33135 33136 33137 33138 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33135 def list_triggered_web_job_history(resource_group_name, name, web_job_name, custom_headers:nil) first_page = list_triggered_web_job_history_as_lazy(resource_group_name, name, web_job_name, custom_headers:custom_headers) first_page.get_all_items end |
#list_triggered_web_job_history_as_lazy(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ TriggeredJobHistoryCollection
List a triggered web job’s history for an app, or a deployment slot.
List a triggered web job’s history for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
the response.
44346 44347 44348 44349 44350 44351 44352 44353 44354 44355 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 44346 def list_triggered_web_job_history_as_lazy(resource_group_name, name, web_job_name, custom_headers:nil) response = list_triggered_web_job_history_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_triggered_web_job_history_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_triggered_web_job_history_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
List a triggered web job’s history for an app, or a deployment slot.
List a triggered web job’s history for an app, or a deployment slot.
resource belongs. to the HTTP request.
33172 33173 33174 33175 33176 33177 33178 33179 33180 33181 33182 33183 33184 33185 33186 33187 33188 33189 33190 33191 33192 33193 33194 33195 33196 33197 33198 33199 33200 33201 33202 33203 33204 33205 33206 33207 33208 33209 33210 33211 33212 33213 33214 33215 33216 33217 33218 33219 33220 33221 33222 33223 33224 33225 33226 33227 33228 33229 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33172 def list_triggered_web_job_history_async(resource_group_name, name, web_job_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, 'web_job_name is nil' if web_job_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/sites/{name}/triggeredwebjobs/{webJobName}/history' 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,'webJobName' => web_job_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 || status_code == 404 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_08_01::Models::TriggeredJobHistoryCollection.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_triggered_web_job_history_next(next_page_link, custom_headers: nil) ⇒ TriggeredJobHistoryCollection
List a triggered web job’s history for an app, or a deployment slot.
List a triggered web job’s history for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
42614 42615 42616 42617 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42614 def list_triggered_web_job_history_next(next_page_link, custom_headers:nil) response = list_triggered_web_job_history_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_triggered_web_job_history_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List a triggered web job’s history for an app, or a deployment slot.
List a triggered web job’s history for an app, or a deployment slot.
to List operation. to the HTTP request.
42647 42648 42649 42650 42651 42652 42653 42654 42655 42656 42657 42658 42659 42660 42661 42662 42663 42664 42665 42666 42667 42668 42669 42670 42671 42672 42673 42674 42675 42676 42677 42678 42679 42680 42681 42682 42683 42684 42685 42686 42687 42688 42689 42690 42691 42692 42693 42694 42695 42696 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42647 def list_triggered_web_job_history_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 || status_code == 404 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_08_01::Models::TriggeredJobHistoryCollection.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_triggered_web_job_history_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List a triggered web job’s history for an app, or a deployment slot.
List a triggered web job’s history for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
42631 42632 42633 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42631 def list_triggered_web_job_history_next_with_http_info(next_page_link, custom_headers:nil) list_triggered_web_job_history_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_triggered_web_job_history_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Array<TriggeredJobHistory>
List a triggered web job’s history for an app, or a deployment slot.
List a triggered web job’s history for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
30019 30020 30021 30022 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30019 def list_triggered_web_job_history_slot(resource_group_name, name, web_job_name, slot, custom_headers:nil) first_page = list_triggered_web_job_history_slot_as_lazy(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_triggered_web_job_history_slot_as_lazy(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ TriggeredJobHistoryCollection
List a triggered web job’s history for an app, or a deployment slot.
List a triggered web job’s history for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
the response.
44183 44184 44185 44186 44187 44188 44189 44190 44191 44192 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 44183 def list_triggered_web_job_history_slot_as_lazy(resource_group_name, name, web_job_name, slot, custom_headers:nil) response = list_triggered_web_job_history_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_triggered_web_job_history_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_triggered_web_job_history_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
List a triggered web job’s history for an app, or a deployment slot.
List a triggered web job’s history for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
30060 30061 30062 30063 30064 30065 30066 30067 30068 30069 30070 30071 30072 30073 30074 30075 30076 30077 30078 30079 30080 30081 30082 30083 30084 30085 30086 30087 30088 30089 30090 30091 30092 30093 30094 30095 30096 30097 30098 30099 30100 30101 30102 30103 30104 30105 30106 30107 30108 30109 30110 30111 30112 30113 30114 30115 30116 30117 30118 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30060 def list_triggered_web_job_history_slot_async(resource_group_name, name, web_job_name, slot, 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, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}/history' 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,'webJobName' => web_job_name,'slot' => slot,'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 || status_code == 404 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_08_01::Models::TriggeredJobHistoryCollection.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_triggered_web_job_history_slot_next(next_page_link, custom_headers: nil) ⇒ TriggeredJobHistoryCollection
List a triggered web job’s history for an app, or a deployment slot.
List a triggered web job’s history for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
42032 42033 42034 42035 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42032 def list_triggered_web_job_history_slot_next(next_page_link, custom_headers:nil) response = list_triggered_web_job_history_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_triggered_web_job_history_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List a triggered web job’s history for an app, or a deployment slot.
List a triggered web job’s history for an app, or a deployment slot.
to List operation. to the HTTP request.
42065 42066 42067 42068 42069 42070 42071 42072 42073 42074 42075 42076 42077 42078 42079 42080 42081 42082 42083 42084 42085 42086 42087 42088 42089 42090 42091 42092 42093 42094 42095 42096 42097 42098 42099 42100 42101 42102 42103 42104 42105 42106 42107 42108 42109 42110 42111 42112 42113 42114 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42065 def list_triggered_web_job_history_slot_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 || status_code == 404 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_08_01::Models::TriggeredJobHistoryCollection.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_triggered_web_job_history_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List a triggered web job’s history for an app, or a deployment slot.
List a triggered web job’s history for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
42049 42050 42051 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42049 def list_triggered_web_job_history_slot_next_with_http_info(next_page_link, custom_headers:nil) list_triggered_web_job_history_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_triggered_web_job_history_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List a triggered web job’s history for an app, or a deployment slot.
List a triggered web job’s history for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
30040 30041 30042 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30040 def list_triggered_web_job_history_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers:nil) list_triggered_web_job_history_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! end |
#list_triggered_web_job_history_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List a triggered web job’s history for an app, or a deployment slot.
List a triggered web job’s history for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
33154 33155 33156 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33154 def list_triggered_web_job_history_with_http_info(resource_group_name, name, web_job_name, custom_headers:nil) list_triggered_web_job_history_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! end |
#list_triggered_web_jobs(resource_group_name, name, custom_headers: nil) ⇒ Array<TriggeredWebJob>
List triggered web jobs for an app, or a deployment slot.
List triggered web jobs for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
32819 32820 32821 32822 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32819 def list_triggered_web_jobs(resource_group_name, name, custom_headers:nil) first_page = list_triggered_web_jobs_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_triggered_web_jobs_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ TriggeredWebJobCollection
List triggered web jobs for an app, or a deployment slot.
List triggered web jobs for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
response.
44320 44321 44322 44323 44324 44325 44326 44327 44328 44329 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 44320 def list_triggered_web_jobs_as_lazy(resource_group_name, name, custom_headers:nil) response = list_triggered_web_jobs_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_triggered_web_jobs_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_triggered_web_jobs_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
List triggered web jobs for an app, or a deployment slot.
List triggered web jobs for an app, or a deployment slot.
resource belongs. to the HTTP request.
32854 32855 32856 32857 32858 32859 32860 32861 32862 32863 32864 32865 32866 32867 32868 32869 32870 32871 32872 32873 32874 32875 32876 32877 32878 32879 32880 32881 32882 32883 32884 32885 32886 32887 32888 32889 32890 32891 32892 32893 32894 32895 32896 32897 32898 32899 32900 32901 32902 32903 32904 32905 32906 32907 32908 32909 32910 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32854 def list_triggered_web_jobs_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/sites/{name}/triggeredwebjobs' 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_08_01::Models::TriggeredWebJobCollection.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_triggered_web_jobs_next(next_page_link, custom_headers: nil) ⇒ TriggeredWebJobCollection
List triggered web jobs for an app, or a deployment slot.
List triggered web jobs for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
42518 42519 42520 42521 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42518 def list_triggered_web_jobs_next(next_page_link, custom_headers:nil) response = list_triggered_web_jobs_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_triggered_web_jobs_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List triggered web jobs for an app, or a deployment slot.
List triggered web jobs for an app, or a deployment slot.
to List operation. to the HTTP request.
42551 42552 42553 42554 42555 42556 42557 42558 42559 42560 42561 42562 42563 42564 42565 42566 42567 42568 42569 42570 42571 42572 42573 42574 42575 42576 42577 42578 42579 42580 42581 42582 42583 42584 42585 42586 42587 42588 42589 42590 42591 42592 42593 42594 42595 42596 42597 42598 42599 42600 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42551 def list_triggered_web_jobs_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_08_01::Models::TriggeredWebJobCollection.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_triggered_web_jobs_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List triggered web jobs for an app, or a deployment slot.
List triggered web jobs for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
42535 42536 42537 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42535 def list_triggered_web_jobs_next_with_http_info(next_page_link, custom_headers:nil) list_triggered_web_jobs_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_triggered_web_jobs_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<TriggeredWebJob>
List triggered web jobs for an app, or a deployment slot.
List triggered web jobs for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
29682 29683 29684 29685 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29682 def list_triggered_web_jobs_slot(resource_group_name, name, slot, custom_headers:nil) first_page = list_triggered_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_triggered_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ TriggeredWebJobCollection
List triggered web jobs for an app, or a deployment slot.
List triggered web jobs for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
response.
44155 44156 44157 44158 44159 44160 44161 44162 44163 44164 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 44155 def list_triggered_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) response = list_triggered_web_jobs_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_triggered_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_triggered_web_jobs_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
List triggered web jobs for an app, or a deployment slot.
List triggered web jobs for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
29721 29722 29723 29724 29725 29726 29727 29728 29729 29730 29731 29732 29733 29734 29735 29736 29737 29738 29739 29740 29741 29742 29743 29744 29745 29746 29747 29748 29749 29750 29751 29752 29753 29754 29755 29756 29757 29758 29759 29760 29761 29762 29763 29764 29765 29766 29767 29768 29769 29770 29771 29772 29773 29774 29775 29776 29777 29778 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29721 def list_triggered_web_jobs_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/triggeredwebjobs' 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,'slot' => slot,'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_08_01::Models::TriggeredWebJobCollection.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_triggered_web_jobs_slot_next(next_page_link, custom_headers: nil) ⇒ TriggeredWebJobCollection
List triggered web jobs for an app, or a deployment slot.
List triggered web jobs for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
41936 41937 41938 41939 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41936 def list_triggered_web_jobs_slot_next(next_page_link, custom_headers:nil) response = list_triggered_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_triggered_web_jobs_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List triggered web jobs for an app, or a deployment slot.
List triggered web jobs for an app, or a deployment slot.
to List operation. to the HTTP request.
41969 41970 41971 41972 41973 41974 41975 41976 41977 41978 41979 41980 41981 41982 41983 41984 41985 41986 41987 41988 41989 41990 41991 41992 41993 41994 41995 41996 41997 41998 41999 42000 42001 42002 42003 42004 42005 42006 42007 42008 42009 42010 42011 42012 42013 42014 42015 42016 42017 42018 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41969 def list_triggered_web_jobs_slot_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_08_01::Models::TriggeredWebJobCollection.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_triggered_web_jobs_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List triggered web jobs for an app, or a deployment slot.
List triggered web jobs for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
41953 41954 41955 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 41953 def list_triggered_web_jobs_slot_next_with_http_info(next_page_link, custom_headers:nil) list_triggered_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_triggered_web_jobs_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List triggered web jobs for an app, or a deployment slot.
List triggered web jobs for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
29702 29703 29704 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29702 def list_triggered_web_jobs_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_triggered_web_jobs_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_triggered_web_jobs_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List triggered web jobs for an app, or a deployment slot.
List triggered web jobs for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
32837 32838 32839 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32837 def list_triggered_web_jobs_with_http_info(resource_group_name, name, custom_headers:nil) list_triggered_web_jobs_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_usages(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ Array<CsmUsageQuota>
Gets the quota usage information of an app (or deployment slot, if specified).
Gets the quota usage information of an app (or deployment slot, if specified).
resource belongs. OData syntax). For 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.
33469 33470 33471 33472 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33469 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
Gets the quota usage information of an app (or deployment slot, if specified).
Gets the quota usage information of an app (or deployment slot, if specified).
resource belongs. OData syntax). For 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.
44377 44378 44379 44380 44381 44382 44383 44384 44385 44386 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 44377 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
Gets the quota usage information of an app (or deployment slot, if specified).
Gets the quota usage information of an app (or deployment slot, if specified).
resource belongs. OData syntax). For 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.
33516 33517 33518 33519 33520 33521 33522 33523 33524 33525 33526 33527 33528 33529 33530 33531 33532 33533 33534 33535 33536 33537 33538 33539 33540 33541 33542 33543 33544 33545 33546 33547 33548 33549 33550 33551 33552 33553 33554 33555 33556 33557 33558 33559 33560 33561 33562 33563 33564 33565 33566 33567 33568 33569 33570 33571 33572 33573 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33516 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/sites/{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_08_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
Gets the quota usage information of an app (or deployment slot, if specified).
Gets the quota usage information of an app (or deployment slot, if specified).
to List operation. will be added to the HTTP request.
42712 42713 42714 42715 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42712 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
Gets the quota usage information of an app (or deployment slot, if specified).
Gets the quota usage information of an app (or deployment slot, if specified).
to List operation. to the HTTP request.
42749 42750 42751 42752 42753 42754 42755 42756 42757 42758 42759 42760 42761 42762 42763 42764 42765 42766 42767 42768 42769 42770 42771 42772 42773 42774 42775 42776 42777 42778 42779 42780 42781 42782 42783 42784 42785 42786 42787 42788 42789 42790 42791 42792 42793 42794 42795 42796 42797 42798 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42749 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_08_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
Gets the quota usage information of an app (or deployment slot, if specified).
Gets the quota usage information of an app (or deployment slot, if specified).
to List operation. will be added to the HTTP request.
42731 42732 42733 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42731 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_slot(resource_group_name, name, slot, filter: nil, custom_headers: nil) ⇒ Array<CsmUsageQuota>
Gets the quota usage information of an app (or deployment slot, if specified).
Gets the quota usage information of an app (or deployment slot, if specified).
resource belongs. the API will get quota information of the production slot. OData syntax). For 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.
30374 30375 30376 30377 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30374 def list_usages_slot(resource_group_name, name, slot, filter:nil, custom_headers:nil) first_page = list_usages_slot_as_lazy(resource_group_name, name, slot, filter:filter, custom_headers:custom_headers) first_page.get_all_items end |
#list_usages_slot_as_lazy(resource_group_name, name, slot, filter: nil, custom_headers: nil) ⇒ CsmUsageQuotaCollection
Gets the quota usage information of an app (or deployment slot, if specified).
Gets the quota usage information of an app (or deployment slot, if specified).
resource belongs. the API will get quota information of the production slot. OData syntax). For 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.
44216 44217 44218 44219 44220 44221 44222 44223 44224 44225 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 44216 def list_usages_slot_as_lazy(resource_group_name, name, slot, filter:nil, custom_headers:nil) response = list_usages_slot_async(resource_group_name, name, slot, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_usages_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_usages_slot_async(resource_group_name, name, slot, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets the quota usage information of an app (or deployment slot, if specified).
Gets the quota usage information of an app (or deployment slot, if specified).
resource belongs. the API will get quota information of the production slot. OData syntax). For 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.
30425 30426 30427 30428 30429 30430 30431 30432 30433 30434 30435 30436 30437 30438 30439 30440 30441 30442 30443 30444 30445 30446 30447 30448 30449 30450 30451 30452 30453 30454 30455 30456 30457 30458 30459 30460 30461 30462 30463 30464 30465 30466 30467 30468 30469 30470 30471 30472 30473 30474 30475 30476 30477 30478 30479 30480 30481 30482 30483 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30425 def list_usages_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/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,'slot' => slot,'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_08_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_slot_next(next_page_link, custom_headers: nil) ⇒ CsmUsageQuotaCollection
Gets the quota usage information of an app (or deployment slot, if specified).
Gets the quota usage information of an app (or deployment slot, if specified).
to List operation. will be added to the HTTP request.
42130 42131 42132 42133 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42130 def list_usages_slot_next(next_page_link, custom_headers:nil) response = list_usages_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_usages_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets the quota usage information of an app (or deployment slot, if specified).
Gets the quota usage information of an app (or deployment slot, if specified).
to List operation. to the HTTP request.
42167 42168 42169 42170 42171 42172 42173 42174 42175 42176 42177 42178 42179 42180 42181 42182 42183 42184 42185 42186 42187 42188 42189 42190 42191 42192 42193 42194 42195 42196 42197 42198 42199 42200 42201 42202 42203 42204 42205 42206 42207 42208 42209 42210 42211 42212 42213 42214 42215 42216 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42167 def list_usages_slot_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_08_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_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the quota usage information of an app (or deployment slot, if specified).
Gets the quota usage information of an app (or deployment slot, if specified).
to List operation. will be added to the HTTP request.
42149 42150 42151 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42149 def list_usages_slot_next_with_http_info(next_page_link, custom_headers:nil) list_usages_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_usages_slot_with_http_info(resource_group_name, name, slot, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the quota usage information of an app (or deployment slot, if specified).
Gets the quota usage information of an app (or deployment slot, if specified).
resource belongs. the API will get quota information of the production slot. OData syntax). For 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.
30400 30401 30402 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30400 def list_usages_slot_with_http_info(resource_group_name, name, slot, filter:nil, custom_headers:nil) list_usages_slot_async(resource_group_name, name, slot, filter:filter, custom_headers:custom_headers).value! end |
#list_usages_with_http_info(resource_group_name, name, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the quota usage information of an app (or deployment slot, if specified).
Gets the quota usage information of an app (or deployment slot, if specified).
resource belongs. OData syntax). For 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.
33493 33494 33495 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33493 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_vnet_connections(resource_group_name, name, custom_headers: nil) ⇒ Array
Gets the virtual networks the app (or deployment slot) is connected to.
Gets the virtual networks the app (or deployment slot) is connected to.
resource belongs. will be added to the HTTP request.
33588 33589 33590 33591 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33588 def list_vnet_connections(resource_group_name, name, custom_headers:nil) response = list_vnet_connections_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_vnet_connections_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Gets the virtual networks the app (or deployment slot) is connected to.
Gets the virtual networks the app (or deployment slot) is connected to.
resource belongs. to the HTTP request.
33623 33624 33625 33626 33627 33628 33629 33630 33631 33632 33633 33634 33635 33636 33637 33638 33639 33640 33641 33642 33643 33644 33645 33646 33647 33648 33649 33650 33651 33652 33653 33654 33655 33656 33657 33658 33659 33660 33661 33662 33663 33664 33665 33666 33667 33668 33669 33670 33671 33672 33673 33674 33675 33676 33677 33678 33679 33680 33681 33682 33683 33684 33685 33686 33687 33688 33689 33690 33691 33692 33693 33694 33695 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33623 def list_vnet_connections_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/sites/{name}/virtualNetworkConnections' 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: 'VnetInfoElementType', type: { name: 'Composite', class_name: 'VnetInfo' } } } } 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_vnet_connections_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array
Gets the virtual networks the app (or deployment slot) is connected to.
Gets the virtual networks the app (or deployment slot) is connected to.
resource belongs. the API will get virtual network connections for the production slot. will be added to the HTTP request.
30500 30501 30502 30503 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30500 def list_vnet_connections_slot(resource_group_name, name, slot, custom_headers:nil) response = list_vnet_connections_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_vnet_connections_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Gets the virtual networks the app (or deployment slot) is connected to.
Gets the virtual networks the app (or deployment slot) is connected to.
resource belongs. the API will get virtual network connections for the production slot. to the HTTP request.
30539 30540 30541 30542 30543 30544 30545 30546 30547 30548 30549 30550 30551 30552 30553 30554 30555 30556 30557 30558 30559 30560 30561 30562 30563 30564 30565 30566 30567 30568 30569 30570 30571 30572 30573 30574 30575 30576 30577 30578 30579 30580 30581 30582 30583 30584 30585 30586 30587 30588 30589 30590 30591 30592 30593 30594 30595 30596 30597 30598 30599 30600 30601 30602 30603 30604 30605 30606 30607 30608 30609 30610 30611 30612 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30539 def list_vnet_connections_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/virtualNetworkConnections' 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,'slot' => slot,'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: 'VnetInfoElementType', type: { name: 'Composite', class_name: 'VnetInfo' } } } } 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_vnet_connections_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the virtual networks the app (or deployment slot) is connected to.
Gets the virtual networks the app (or deployment slot) is connected to.
resource belongs. the API will get virtual network connections for the production slot. will be added to the HTTP request.
30520 30521 30522 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30520 def list_vnet_connections_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_vnet_connections_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_vnet_connections_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the virtual networks the app (or deployment slot) is connected to.
Gets the virtual networks the app (or deployment slot) is connected to.
resource belongs. will be added to the HTTP request.
33606 33607 33608 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33606 def list_vnet_connections_with_http_info(resource_group_name, name, custom_headers:nil) list_vnet_connections_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_web_jobs(resource_group_name, name, custom_headers: nil) ⇒ Array<WebJob>
List webjobs for an app, or a deployment slot.
List webjobs for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
34564 34565 34566 34567 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34564 def list_web_jobs(resource_group_name, name, custom_headers:nil) first_page = list_web_jobs_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end |
#list_web_jobs_as_lazy(resource_group_name, name, custom_headers: nil) ⇒ WebJobCollection
List webjobs for an app, or a deployment slot.
List webjobs for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
response.
44402 44403 44404 44405 44406 44407 44408 44409 44410 44411 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 44402 def list_web_jobs_as_lazy(resource_group_name, name, custom_headers:nil) response = list_web_jobs_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_web_jobs_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_web_jobs_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
List webjobs for an app, or a deployment slot.
List webjobs for an app, or a deployment slot.
resource belongs. to the HTTP request.
34599 34600 34601 34602 34603 34604 34605 34606 34607 34608 34609 34610 34611 34612 34613 34614 34615 34616 34617 34618 34619 34620 34621 34622 34623 34624 34625 34626 34627 34628 34629 34630 34631 34632 34633 34634 34635 34636 34637 34638 34639 34640 34641 34642 34643 34644 34645 34646 34647 34648 34649 34650 34651 34652 34653 34654 34655 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34599 def list_web_jobs_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/sites/{name}/webjobs' 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_08_01::Models::WebJobCollection.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_jobs_next(next_page_link, custom_headers: nil) ⇒ WebJobCollection
List webjobs for an app, or a deployment slot.
List webjobs for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
42812 42813 42814 42815 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42812 def list_web_jobs_next(next_page_link, custom_headers:nil) response = list_web_jobs_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_web_jobs_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List webjobs for an app, or a deployment slot.
List webjobs for an app, or a deployment slot.
to List operation. to the HTTP request.
42845 42846 42847 42848 42849 42850 42851 42852 42853 42854 42855 42856 42857 42858 42859 42860 42861 42862 42863 42864 42865 42866 42867 42868 42869 42870 42871 42872 42873 42874 42875 42876 42877 42878 42879 42880 42881 42882 42883 42884 42885 42886 42887 42888 42889 42890 42891 42892 42893 42894 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42845 def list_web_jobs_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_08_01::Models::WebJobCollection.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_jobs_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List webjobs for an app, or a deployment slot.
List webjobs for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
42829 42830 42831 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42829 def list_web_jobs_next_with_http_info(next_page_link, custom_headers:nil) list_web_jobs_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_web_jobs_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Array<WebJob>
List webjobs for an app, or a deployment slot.
List webjobs for an app, or a deployment slot.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
31538 31539 31540 31541 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31538 def list_web_jobs_slot(resource_group_name, name, slot, custom_headers:nil) first_page = list_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end |
#list_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers: nil) ⇒ WebJobCollection
List webjobs for an app, or a deployment slot.
List webjobs for an app, or a deployment slot.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
response.
44243 44244 44245 44246 44247 44248 44249 44250 44251 44252 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 44243 def list_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) response = list_web_jobs_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_web_jobs_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
List webjobs for an app, or a deployment slot.
List webjobs for an app, or a deployment slot.
resource belongs. the API returns deployments for the production slot. to the HTTP request.
31577 31578 31579 31580 31581 31582 31583 31584 31585 31586 31587 31588 31589 31590 31591 31592 31593 31594 31595 31596 31597 31598 31599 31600 31601 31602 31603 31604 31605 31606 31607 31608 31609 31610 31611 31612 31613 31614 31615 31616 31617 31618 31619 31620 31621 31622 31623 31624 31625 31626 31627 31628 31629 31630 31631 31632 31633 31634 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31577 def list_web_jobs_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/webjobs' 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,'slot' => slot,'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_08_01::Models::WebJobCollection.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_jobs_slot_next(next_page_link, custom_headers: nil) ⇒ WebJobCollection
List webjobs for an app, or a deployment slot.
List webjobs for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
42230 42231 42232 42233 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42230 def list_web_jobs_slot_next(next_page_link, custom_headers:nil) response = list_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_web_jobs_slot_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List webjobs for an app, or a deployment slot.
List webjobs for an app, or a deployment slot.
to List operation. to the HTTP request.
42263 42264 42265 42266 42267 42268 42269 42270 42271 42272 42273 42274 42275 42276 42277 42278 42279 42280 42281 42282 42283 42284 42285 42286 42287 42288 42289 42290 42291 42292 42293 42294 42295 42296 42297 42298 42299 42300 42301 42302 42303 42304 42305 42306 42307 42308 42309 42310 42311 42312 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42263 def list_web_jobs_slot_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_08_01::Models::WebJobCollection.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_jobs_slot_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List webjobs for an app, or a deployment slot.
List webjobs for an app, or a deployment slot.
to List operation. will be added to the HTTP request.
42247 42248 42249 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 42247 def list_web_jobs_slot_next_with_http_info(next_page_link, custom_headers:nil) list_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_web_jobs_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List webjobs for an app, or a deployment slot.
List webjobs for an app, or a deployment slot.
resource belongs. the API returns deployments for the production slot. will be added to the HTTP request.
31558 31559 31560 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31558 def list_web_jobs_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) list_web_jobs_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#list_web_jobs_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List webjobs for an app, or a deployment slot.
List webjobs for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
34582 34583 34584 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34582 def list_web_jobs_with_http_info(resource_group_name, name, custom_headers:nil) list_web_jobs_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#list_with_http_info(custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get all apps for a subscription.
Get all apps for a subscription.
will be added to the HTTP request.
49 50 51 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 49 def list_with_http_info(custom_headers:nil) list_async(custom_headers:custom_headers).value! end |
#migrate_my_sql(resource_group_name, name, migration_request_envelope, custom_headers: nil) ⇒ Operation
Migrates a local (in-app) MySql database to a remote MySql database.
Migrates a local (in-app) MySql database to a remote MySql database.
resource belongs. options. will be added to the HTTP request.
10671 10672 10673 10674 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10671 def migrate_my_sql(resource_group_name, name, migration_request_envelope, custom_headers:nil) response = migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. options. will be added to the HTTP request.
response.
10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10688 def migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers:nil) # Send request promise = begin_migrate_my_sql_async(resource_group_name, name, migration_request_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_08_01::Models::Operation.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 |
#migrate_storage(subscription_name, resource_group_name, name, migration_options, custom_headers: nil) ⇒ StorageMigrationResponse
Restores a web app.
Restores a web app.
resource belongs. migrationOptions. will be added to the HTTP request.
10620 10621 10622 10623 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10620 def migrate_storage(subscription_name, resource_group_name, name, , custom_headers:nil) response = migrate_storage_async(subscription_name, resource_group_name, name, , custom_headers:custom_headers).value! response.body unless response.nil? end |
#migrate_storage_async(subscription_name, resource_group_name, name, migration_options, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. migrationOptions. will be added to the HTTP request.
response.
10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10638 def migrate_storage_async(subscription_name, resource_group_name, name, , custom_headers:nil) # Send request promise = begin_migrate_storage_async(subscription_name, 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_08_01::Models::StorageMigrationResponse.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 |
#recover(resource_group_name, name, recovery_entity, custom_headers: nil) ⇒ Object
Recovers a web app to a previous snapshot.
Recovers a web app to a previous snapshot.
resource belongs. app recovery. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. will be added to the HTTP request.
13454 13455 13456 13457 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13454 def recover(resource_group_name, name, recovery_entity, custom_headers:nil) response = recover_async(resource_group_name, name, recovery_entity, custom_headers:custom_headers).value! nil end |
#recover_async(resource_group_name, name, recovery_entity, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. app recovery. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. will be added to the HTTP request.
response.
13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13472 def recover_async(resource_group_name, name, recovery_entity, custom_headers:nil) # Send request promise = begin_recover_async(resource_group_name, name, recovery_entity, 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 |
#recover_site_configuration_snapshot(resource_group_name, name, snapshot_id, custom_headers: nil) ⇒ Object
Reverts the configuration of an app to a previous snapshot.
Reverts the configuration of an app to a previous snapshot.
resource belongs. will be added to the HTTP request.
4252 4253 4254 4255 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4252 def recover_site_configuration_snapshot(resource_group_name, name, snapshot_id, custom_headers:nil) response = recover_site_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers:custom_headers).value! nil end |
#recover_site_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers: nil) ⇒ Concurrent::Promise
Reverts the configuration of an app to a previous snapshot.
Reverts the configuration of an app to a previous snapshot.
resource belongs. to the HTTP request.
4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4289 def recover_site_configuration_snapshot_async(resource_group_name, name, snapshot_id, 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, 'snapshot_id is nil' if snapshot_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} 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/sites/{name}/config/web/snapshots/{snapshotId}/recover' 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,'snapshotId' => snapshot_id,'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 == 204 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 |
#recover_site_configuration_snapshot_slot(resource_group_name, name, snapshot_id, slot, custom_headers: nil) ⇒ Object
Reverts the configuration of an app to a previous snapshot.
Reverts the configuration of an app to a previous snapshot.
resource belongs. the API will return configuration for the production slot. will be added to the HTTP request.
18250 18251 18252 18253 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18250 def recover_site_configuration_snapshot_slot(resource_group_name, name, snapshot_id, slot, custom_headers:nil) response = recover_site_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers:custom_headers).value! nil end |
#recover_site_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers: nil) ⇒ Concurrent::Promise
Reverts the configuration of an app to a previous snapshot.
Reverts the configuration of an app to a previous snapshot.
resource belongs. the API will return configuration for the production slot. to the HTTP request.
18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18291 def recover_site_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, 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, 'snapshot_id is nil' if snapshot_id.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/config/web/snapshots/{snapshotId}/recover' 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,'snapshotId' => snapshot_id,'slot' => slot,'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 == 204 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 |
#recover_site_configuration_snapshot_slot_with_http_info(resource_group_name, name, snapshot_id, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Reverts the configuration of an app to a previous snapshot.
Reverts the configuration of an app to a previous snapshot.
resource belongs. the API will return configuration for the production slot. will be added to the HTTP request.
18271 18272 18273 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18271 def recover_site_configuration_snapshot_slot_with_http_info(resource_group_name, name, snapshot_id, slot, custom_headers:nil) recover_site_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers:custom_headers).value! end |
#recover_site_configuration_snapshot_with_http_info(resource_group_name, name, snapshot_id, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Reverts the configuration of an app to a previous snapshot.
Reverts the configuration of an app to a previous snapshot.
resource belongs. will be added to the HTTP request.
4271 4272 4273 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4271 def recover_site_configuration_snapshot_with_http_info(resource_group_name, name, snapshot_id, custom_headers:nil) recover_site_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers:custom_headers).value! end |
#recover_slot(resource_group_name, name, recovery_entity, slot, custom_headers: nil) ⇒ Object
Recovers a web app to a previous snapshot.
Recovers a web app to a previous snapshot.
resource belongs. app recovery. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. to production slot. will be added to the HTTP request.
27888 27889 27890 27891 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27888 def recover_slot(resource_group_name, name, recovery_entity, slot, custom_headers:nil) response = recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers:custom_headers).value! nil end |
#recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. app recovery. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. to production slot. will be added to the HTTP request.
response.
27908 27909 27910 27911 27912 27913 27914 27915 27916 27917 27918 27919 27920 27921 27922 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27908 def recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers:nil) # Send request promise = begin_recover_slot_async(resource_group_name, name, recovery_entity, slot, 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 |
#reset_production_slot_config(resource_group_name, name, custom_headers: nil) ⇒ Object
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
resource belongs. will be added to the HTTP request.
13502 13503 13504 13505 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13502 def reset_production_slot_config(resource_group_name, name, custom_headers:nil) response = reset_production_slot_config_async(resource_group_name, name, custom_headers:custom_headers).value! nil end |
#reset_production_slot_config_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
resource belongs. to the HTTP request.
13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13541 def reset_production_slot_config_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/sites/{name}/resetSlotConfig' 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 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 |
#reset_production_slot_config_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
resource belongs. will be added to the HTTP request.
13522 13523 13524 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13522 def reset_production_slot_config_with_http_info(resource_group_name, name, custom_headers:nil) reset_production_slot_config_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#reset_slot_configuration_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Object
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
resource belongs. the API resets configuration settings for the production slot. will be added to the HTTP request.
27940 27941 27942 27943 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27940 def reset_slot_configuration_slot(resource_group_name, name, slot, custom_headers:nil) response = reset_slot_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! nil end |
#reset_slot_configuration_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
resource belongs. the API resets configuration settings for the production slot. to the HTTP request.
27983 27984 27985 27986 27987 27988 27989 27990 27991 27992 27993 27994 27995 27996 27997 27998 27999 28000 28001 28002 28003 28004 28005 28006 28007 28008 28009 28010 28011 28012 28013 28014 28015 28016 28017 28018 28019 28020 28021 28022 28023 28024 28025 28026 28027 28028 28029 28030 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27983 def reset_slot_configuration_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/resetSlotConfig' 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,'slot' => slot,'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 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 |
#reset_slot_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
resource belongs. the API resets configuration settings for the production slot. will be added to the HTTP request.
27962 27963 27964 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 27962 def reset_slot_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) reset_slot_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#restart(resource_group_name, name, soft_restart: nil, synchronous: nil, custom_headers: nil) ⇒ Object
Restarts an app (or deployment slot, if specified).
Restarts an app (or deployment slot, if specified).
resource belongs. settings and restarts the app only if necessary. By default, the API always restarts and reprovisions the app. restarted. By default, it is set to false, and the API responds immediately (asynchronous). will be added to the HTTP request.
13607 13608 13609 13610 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13607 def restart(resource_group_name, name, soft_restart:nil, synchronous:nil, custom_headers:nil) response = restart_async(resource_group_name, name, soft_restart:soft_restart, synchronous:synchronous, custom_headers:custom_headers).value! nil end |
#restart_async(resource_group_name, name, soft_restart: nil, synchronous: nil, custom_headers: nil) ⇒ Concurrent::Promise
Restarts an app (or deployment slot, if specified).
Restarts an app (or deployment slot, if specified).
resource belongs. settings and restarts the app only if necessary. By default, the API always restarts and reprovisions the app. restarted. By default, it is set to false, and the API responds immediately (asynchronous). to the HTTP request.
13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13654 def restart_async(resource_group_name, name, soft_restart:nil, synchronous: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/sites/{name}/restart' 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: {'softRestart' => soft_restart,'synchronous' => synchronous,'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 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 |
#restart_slot(resource_group_name, name, slot, soft_restart: nil, synchronous: nil, custom_headers: nil) ⇒ Object
Restarts an app (or deployment slot, if specified).
Restarts an app (or deployment slot, if specified).
resource belongs. the API will restart the production slot. settings and restarts the app only if necessary. By default, the API always restarts and reprovisions the app. restarted. By default, it is set to false, and the API responds immediately (asynchronous). will be added to the HTTP request.
28052 28053 28054 28055 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28052 def restart_slot(resource_group_name, name, slot, soft_restart:nil, synchronous:nil, custom_headers:nil) response = restart_slot_async(resource_group_name, name, slot, soft_restart:soft_restart, synchronous:synchronous, custom_headers:custom_headers).value! nil end |
#restart_slot_async(resource_group_name, name, slot, soft_restart: nil, synchronous: nil, custom_headers: nil) ⇒ Concurrent::Promise
Restarts an app (or deployment slot, if specified).
Restarts an app (or deployment slot, if specified).
resource belongs. the API will restart the production slot. settings and restarts the app only if necessary. By default, the API always restarts and reprovisions the app. restarted. By default, it is set to false, and the API responds immediately (asynchronous). to the HTTP request.
28103 28104 28105 28106 28107 28108 28109 28110 28111 28112 28113 28114 28115 28116 28117 28118 28119 28120 28121 28122 28123 28124 28125 28126 28127 28128 28129 28130 28131 28132 28133 28134 28135 28136 28137 28138 28139 28140 28141 28142 28143 28144 28145 28146 28147 28148 28149 28150 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28103 def restart_slot_async(resource_group_name, name, slot, soft_restart:nil, synchronous: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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/restart' 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,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'softRestart' => soft_restart,'synchronous' => synchronous,'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 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 |
#restart_slot_with_http_info(resource_group_name, name, slot, soft_restart: nil, synchronous: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Restarts an app (or deployment slot, if specified).
Restarts an app (or deployment slot, if specified).
resource belongs. the API will restart the production slot. settings and restarts the app only if necessary. By default, the API always restarts and reprovisions the app. restarted. By default, it is set to false, and the API responds immediately (asynchronous). will be added to the HTTP request.
28078 28079 28080 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28078 def restart_slot_with_http_info(resource_group_name, name, slot, soft_restart:nil, synchronous:nil, custom_headers:nil) restart_slot_async(resource_group_name, name, slot, soft_restart:soft_restart, synchronous:synchronous, custom_headers:custom_headers).value! end |
#restart_with_http_info(resource_group_name, name, soft_restart: nil, synchronous: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Restarts an app (or deployment slot, if specified).
Restarts an app (or deployment slot, if specified).
resource belongs. settings and restarts the app only if necessary. By default, the API always restarts and reprovisions the app. restarted. By default, it is set to false, and the API responds immediately (asynchronous). will be added to the HTTP request.
13631 13632 13633 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 13631 def restart_with_http_info(resource_group_name, name, soft_restart:nil, synchronous:nil, custom_headers:nil) restart_async(resource_group_name, name, soft_restart:soft_restart, synchronous:synchronous, custom_headers:custom_headers).value! end |
#restore(resource_group_name, name, backup_id, request, custom_headers: nil) ⇒ RestoreResponse
Restores a specific backup to another app (or deployment slot, if specified).
Restores a specific backup to another app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
1572 1573 1574 1575 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1572 def restore(resource_group_name, name, backup_id, request, custom_headers:nil) response = restore_async(resource_group_name, name, backup_id, request, custom_headers:custom_headers).value! response.body unless response.nil? end |
#restore_async(resource_group_name, name, backup_id, request, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. will be added to the HTTP request.
response.
1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1589 def restore_async(resource_group_name, name, backup_id, request, custom_headers:nil) # Send request promise = begin_restore_async(resource_group_name, name, backup_id, request, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::RestoreResponse.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 |
#restore_slot(resource_group_name, name, backup_id, request, slot, custom_headers: nil) ⇒ RestoreResponse
Restores a specific backup to another app (or deployment slot, if specified).
Restores a specific backup to another app (or deployment slot, if specified).
resource belongs. the API will restore a backup of the production slot. will be added to the HTTP request.
15653 15654 15655 15656 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15653 def restore_slot(resource_group_name, name, backup_id, request, slot, custom_headers:nil) response = restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. the API will restore a backup of the production slot. will be added to the HTTP request.
response.
15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15672 def restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers:nil) # Send request promise = begin_restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::RestoreResponse.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 |
#run_triggered_web_job(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Object
Run a triggered web job for an app, or a deployment slot.
Run a triggered web job for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
33364 33365 33366 33367 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33364 def run_triggered_web_job(resource_group_name, name, web_job_name, custom_headers:nil) response = run_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! nil end |
#run_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
Run a triggered web job for an app, or a deployment slot.
Run a triggered web job for an app, or a deployment slot.
resource belongs. to the HTTP request.
33401 33402 33403 33404 33405 33406 33407 33408 33409 33410 33411 33412 33413 33414 33415 33416 33417 33418 33419 33420 33421 33422 33423 33424 33425 33426 33427 33428 33429 33430 33431 33432 33433 33434 33435 33436 33437 33438 33439 33440 33441 33442 33443 33444 33445 33446 33447 33448 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33401 def run_triggered_web_job_async(resource_group_name, name, web_job_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, 'web_job_name is nil' if web_job_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/sites/{name}/triggeredwebjobs/{webJobName}/run' 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,'webJobName' => web_job_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 == 404 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 |
#run_triggered_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Object
Run a triggered web job for an app, or a deployment slot.
Run a triggered web job for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
30262 30263 30264 30265 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30262 def run_triggered_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers:nil) response = run_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! nil end |
#run_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Run a triggered web job for an app, or a deployment slot.
Run a triggered web job for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
30303 30304 30305 30306 30307 30308 30309 30310 30311 30312 30313 30314 30315 30316 30317 30318 30319 30320 30321 30322 30323 30324 30325 30326 30327 30328 30329 30330 30331 30332 30333 30334 30335 30336 30337 30338 30339 30340 30341 30342 30343 30344 30345 30346 30347 30348 30349 30350 30351 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30303 def run_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, 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, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}/run' 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,'webJobName' => web_job_name,'slot' => slot,'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 == 404 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 |
#run_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Run a triggered web job for an app, or a deployment slot.
Run a triggered web job for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
30283 30284 30285 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 30283 def run_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers:nil) run_triggered_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! end |
#run_triggered_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Run a triggered web job for an app, or a deployment slot.
Run a triggered web job for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
33383 33384 33385 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 33383 def run_triggered_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers:nil) run_triggered_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! end |
#start(resource_group_name, name, custom_headers: nil) ⇒ Object
Starts an app (or deployment slot, if specified).
Starts an app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
32438 32439 32440 32441 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32438 def start(resource_group_name, name, custom_headers:nil) response = start_async(resource_group_name, name, custom_headers:custom_headers).value! nil end |
#start_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Starts an app (or deployment slot, if specified).
Starts an app (or deployment slot, if specified).
resource belongs. to the HTTP request.
32473 32474 32475 32476 32477 32478 32479 32480 32481 32482 32483 32484 32485 32486 32487 32488 32489 32490 32491 32492 32493 32494 32495 32496 32497 32498 32499 32500 32501 32502 32503 32504 32505 32506 32507 32508 32509 32510 32511 32512 32513 32514 32515 32516 32517 32518 32519 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32473 def start_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/sites/{name}/start' 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 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 |
#start_continuous_web_job(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Object
Start a continuous web job for an app, or a deployment slot.
Start a continuous web job for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
4892 4893 4894 4895 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4892 def start_continuous_web_job(resource_group_name, name, web_job_name, custom_headers:nil) response = start_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! nil end |
#start_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
Start a continuous web job for an app, or a deployment slot.
Start a continuous web job for an app, or a deployment slot.
resource belongs. to the HTTP request.
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 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4929 def start_continuous_web_job_async(resource_group_name, name, web_job_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, 'web_job_name is nil' if web_job_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/sites/{name}/continuouswebjobs/{webJobName}/start' 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,'webJobName' => web_job_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 == 404 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 |
#start_continuous_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Object
Start a continuous web job for an app, or a deployment slot.
Start a continuous web job for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
18932 18933 18934 18935 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18932 def start_continuous_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers:nil) response = start_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! nil end |
#start_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Start a continuous web job for an app, or a deployment slot.
Start a continuous web job for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 19006 19007 19008 19009 19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18973 def start_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, 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, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/continuouswebjobs/{webJobName}/start' 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,'webJobName' => web_job_name,'slot' => slot,'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 == 404 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 |
#start_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Start a continuous web job for an app, or a deployment slot.
Start a continuous web job for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
18953 18954 18955 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 18953 def start_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers:nil) start_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! end |
#start_continuous_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Start a continuous web job for an app, or a deployment slot.
Start a continuous web job for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
4911 4912 4913 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4911 def start_continuous_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers:nil) start_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! end |
#start_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Object
Starts an app (or deployment slot, if specified).
Starts an app (or deployment slot, if specified).
resource belongs. the API will start the production slot. will be added to the HTTP request.
29273 29274 29275 29276 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29273 def start_slot(resource_group_name, name, slot, custom_headers:nil) response = start_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! nil end |
#start_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Starts an app (or deployment slot, if specified).
Starts an app (or deployment slot, if specified).
resource belongs. the API will start the production slot. to the HTTP request.
29312 29313 29314 29315 29316 29317 29318 29319 29320 29321 29322 29323 29324 29325 29326 29327 29328 29329 29330 29331 29332 29333 29334 29335 29336 29337 29338 29339 29340 29341 29342 29343 29344 29345 29346 29347 29348 29349 29350 29351 29352 29353 29354 29355 29356 29357 29358 29359 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29312 def start_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/start' 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,'slot' => slot,'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 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 |
#start_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Starts an app (or deployment slot, if specified).
Starts an app (or deployment slot, if specified).
resource belongs. the API will start the production slot. will be added to the HTTP request.
29293 29294 29295 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29293 def start_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) start_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#start_web_site_network_trace(resource_group_name, name, duration_in_seconds: nil, max_frame_length: nil, sas_url: nil, custom_headers: nil) ⇒ String
Start capturing network packets for the site.
Start capturing network packets for the site.
resource belongs. seconds. (Optional). will be added to the HTTP request.
10949 10950 10951 10952 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10949 def start_web_site_network_trace(resource_group_name, name, duration_in_seconds:nil, max_frame_length:nil, sas_url:nil, custom_headers:nil) response = start_web_site_network_trace_async(resource_group_name, name, duration_in_seconds:duration_in_seconds, max_frame_length:max_frame_length, sas_url:sas_url, custom_headers:custom_headers).value! response.body unless response.nil? end |
#start_web_site_network_trace_async(resource_group_name, name, duration_in_seconds: nil, max_frame_length: nil, sas_url: nil, custom_headers: nil) ⇒ Concurrent::Promise
Start capturing network packets for the site.
Start capturing network packets for the site.
resource belongs. seconds. (Optional). to the HTTP request.
10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10994 def start_web_site_network_trace_async(resource_group_name, name, duration_in_seconds:nil, max_frame_length:nil, sas_url: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/sites/{name}/networkTrace/start' 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: {'durationInSeconds' => duration_in_seconds,'maxFrameLength' => max_frame_length,'sasUrl' => sas_url,'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 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: 'String' } } 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 |
#start_web_site_network_trace_slot(resource_group_name, name, slot, duration_in_seconds: nil, max_frame_length: nil, sas_url: nil, custom_headers: nil) ⇒ String
Start capturing network packets for the site.
Start capturing network packets for the site.
resource belongs. seconds. (Optional). will be added to the HTTP request.
25234 25235 25236 25237 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25234 def start_web_site_network_trace_slot(resource_group_name, name, slot, duration_in_seconds:nil, max_frame_length:nil, sas_url:nil, custom_headers:nil) response = start_web_site_network_trace_slot_async(resource_group_name, name, slot, duration_in_seconds:duration_in_seconds, max_frame_length:max_frame_length, sas_url:sas_url, custom_headers:custom_headers).value! response.body unless response.nil? end |
#start_web_site_network_trace_slot_async(resource_group_name, name, slot, duration_in_seconds: nil, max_frame_length: nil, sas_url: nil, custom_headers: nil) ⇒ Concurrent::Promise
Start capturing network packets for the site.
Start capturing network packets for the site.
resource belongs. seconds. (Optional). to the HTTP request.
25281 25282 25283 25284 25285 25286 25287 25288 25289 25290 25291 25292 25293 25294 25295 25296 25297 25298 25299 25300 25301 25302 25303 25304 25305 25306 25307 25308 25309 25310 25311 25312 25313 25314 25315 25316 25317 25318 25319 25320 25321 25322 25323 25324 25325 25326 25327 25328 25329 25330 25331 25332 25333 25334 25335 25336 25337 25338 25339 25340 25341 25342 25343 25344 25345 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25281 def start_web_site_network_trace_slot_async(resource_group_name, name, slot, duration_in_seconds:nil, max_frame_length:nil, sas_url: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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/networkTrace/start' 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,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'durationInSeconds' => duration_in_seconds,'maxFrameLength' => max_frame_length,'sasUrl' => sas_url,'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 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: 'String' } } 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 |
#start_web_site_network_trace_slot_with_http_info(resource_group_name, name, slot, duration_in_seconds: nil, max_frame_length: nil, sas_url: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Start capturing network packets for the site.
Start capturing network packets for the site.
resource belongs. seconds. (Optional). will be added to the HTTP request.
25258 25259 25260 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25258 def start_web_site_network_trace_slot_with_http_info(resource_group_name, name, slot, duration_in_seconds:nil, max_frame_length:nil, sas_url:nil, custom_headers:nil) start_web_site_network_trace_slot_async(resource_group_name, name, slot, duration_in_seconds:duration_in_seconds, max_frame_length:max_frame_length, sas_url:sas_url, custom_headers:custom_headers).value! end |
#start_web_site_network_trace_with_http_info(resource_group_name, name, duration_in_seconds: nil, max_frame_length: nil, sas_url: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Start capturing network packets for the site.
Start capturing network packets for the site.
resource belongs. seconds. (Optional). will be added to the HTTP request.
10972 10973 10974 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 10972 def start_web_site_network_trace_with_http_info(resource_group_name, name, duration_in_seconds:nil, max_frame_length:nil, sas_url:nil, custom_headers:nil) start_web_site_network_trace_async(resource_group_name, name, duration_in_seconds:duration_in_seconds, max_frame_length:max_frame_length, sas_url:sas_url, custom_headers:custom_headers).value! end |
#start_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Starts an app (or deployment slot, if specified).
Starts an app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
32456 32457 32458 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32456 def start_with_http_info(resource_group_name, name, custom_headers:nil) start_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#stop(resource_group_name, name, custom_headers: nil) ⇒ Object
Stops an app (or deployment slot, if specified).
Stops an app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
32533 32534 32535 32536 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32533 def stop(resource_group_name, name, custom_headers:nil) response = stop_async(resource_group_name, name, custom_headers:custom_headers).value! nil end |
#stop_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Stops an app (or deployment slot, if specified).
Stops an app (or deployment slot, if specified).
resource belongs. to the HTTP request.
32568 32569 32570 32571 32572 32573 32574 32575 32576 32577 32578 32579 32580 32581 32582 32583 32584 32585 32586 32587 32588 32589 32590 32591 32592 32593 32594 32595 32596 32597 32598 32599 32600 32601 32602 32603 32604 32605 32606 32607 32608 32609 32610 32611 32612 32613 32614 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32568 def stop_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/sites/{name}/stop' 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 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 |
#stop_continuous_web_job(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Object
Stop a continuous web job for an app, or a deployment slot.
Stop a continuous web job for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
4991 4992 4993 4994 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 4991 def stop_continuous_web_job(resource_group_name, name, web_job_name, custom_headers:nil) response = stop_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! nil end |
#stop_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ Concurrent::Promise
Stop a continuous web job for an app, or a deployment slot.
Stop a continuous web job for an app, or a deployment slot.
resource belongs. to the HTTP request.
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 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5028 def stop_continuous_web_job_async(resource_group_name, name, web_job_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, 'web_job_name is nil' if web_job_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/sites/{name}/continuouswebjobs/{webJobName}/stop' 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,'webJobName' => web_job_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 == 404 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 |
#stop_continuous_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Object
Stop a continuous web job for an app, or a deployment slot.
Stop a continuous web job for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
19038 19039 19040 19041 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19038 def stop_continuous_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers:nil) response = stop_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! nil end |
#stop_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Stop a continuous web job for an app, or a deployment slot.
Stop a continuous web job for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. to the HTTP request.
19079 19080 19081 19082 19083 19084 19085 19086 19087 19088 19089 19090 19091 19092 19093 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103 19104 19105 19106 19107 19108 19109 19110 19111 19112 19113 19114 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19079 def stop_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, 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, 'web_job_name is nil' if web_job_name.nil? fail ArgumentError, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/continuouswebjobs/{webJobName}/stop' 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,'webJobName' => web_job_name,'slot' => slot,'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 == 404 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 |
#stop_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Stop a continuous web job for an app, or a deployment slot.
Stop a continuous web job for an app, or a deployment slot.
resource belongs. the API deletes a deployment for the production slot. will be added to the HTTP request.
19059 19060 19061 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 19059 def stop_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers:nil) stop_continuous_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! end |
#stop_continuous_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Stop a continuous web job for an app, or a deployment slot.
Stop a continuous web job for an app, or a deployment slot.
resource belongs. will be added to the HTTP request.
5010 5011 5012 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 5010 def stop_continuous_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers:nil) stop_continuous_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! end |
#stop_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Object
Stops an app (or deployment slot, if specified).
Stops an app (or deployment slot, if specified).
resource belongs. the API will stop the production slot. will be added to the HTTP request.
29375 29376 29377 29378 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29375 def stop_slot(resource_group_name, name, slot, custom_headers:nil) response = stop_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! nil end |
#stop_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Stops an app (or deployment slot, if specified).
Stops an app (or deployment slot, if specified).
resource belongs. the API will stop the production slot. to the HTTP request.
29414 29415 29416 29417 29418 29419 29420 29421 29422 29423 29424 29425 29426 29427 29428 29429 29430 29431 29432 29433 29434 29435 29436 29437 29438 29439 29440 29441 29442 29443 29444 29445 29446 29447 29448 29449 29450 29451 29452 29453 29454 29455 29456 29457 29458 29459 29460 29461 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29414 def stop_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/stop' 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,'slot' => slot,'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 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 |
#stop_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Stops an app (or deployment slot, if specified).
Stops an app (or deployment slot, if specified).
resource belongs. the API will stop the production slot. will be added to the HTTP request.
29395 29396 29397 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29395 def stop_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) stop_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#stop_web_site_network_trace(resource_group_name, name, custom_headers: nil) ⇒ String
Stop ongoing capturing network packets for the site.
Stop ongoing capturing network packets for the site.
resource belongs. will be added to the HTTP request.
11072 11073 11074 11075 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11072 def stop_web_site_network_trace(resource_group_name, name, custom_headers:nil) response = stop_web_site_network_trace_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#stop_web_site_network_trace_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Stop ongoing capturing network packets for the site.
Stop ongoing capturing network packets for the site.
resource belongs. to the HTTP request.
11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11107 def stop_web_site_network_trace_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/sites/{name}/networkTrace/stop' 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 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: 'String' } } 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 |
#stop_web_site_network_trace_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ String
Stop ongoing capturing network packets for the site.
Stop ongoing capturing network packets for the site.
resource belongs. will be added to the HTTP request.
25361 25362 25363 25364 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25361 def stop_web_site_network_trace_slot(resource_group_name, name, slot, custom_headers:nil) response = stop_web_site_network_trace_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#stop_web_site_network_trace_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Stop ongoing capturing network packets for the site.
Stop ongoing capturing network packets for the site.
resource belongs. to the HTTP request.
25398 25399 25400 25401 25402 25403 25404 25405 25406 25407 25408 25409 25410 25411 25412 25413 25414 25415 25416 25417 25418 25419 25420 25421 25422 25423 25424 25425 25426 25427 25428 25429 25430 25431 25432 25433 25434 25435 25436 25437 25438 25439 25440 25441 25442 25443 25444 25445 25446 25447 25448 25449 25450 25451 25452 25453 25454 25455 25456 25457 25458 25459 25460 25461 25462 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25398 def stop_web_site_network_trace_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/networkTrace/stop' 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,'slot' => slot,'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 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: 'String' } } 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 |
#stop_web_site_network_trace_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Stop ongoing capturing network packets for the site.
Stop ongoing capturing network packets for the site.
resource belongs. will be added to the HTTP request.
25380 25381 25382 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 25380 def stop_web_site_network_trace_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) stop_web_site_network_trace_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#stop_web_site_network_trace_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Stop ongoing capturing network packets for the site.
Stop ongoing capturing network packets for the site.
resource belongs. will be added to the HTTP request.
11090 11091 11092 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 11090 def stop_web_site_network_trace_with_http_info(resource_group_name, name, custom_headers:nil) stop_web_site_network_trace_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#stop_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Stops an app (or deployment slot, if specified).
Stops an app (or deployment slot, if specified).
resource belongs. will be added to the HTTP request.
32551 32552 32553 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32551 def stop_with_http_info(resource_group_name, name, custom_headers:nil) stop_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#swap_slot_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ Object
Swaps two deployment slots of an app.
Swaps two deployment slots of an app.
resource belongs. slot name. See example. production slot is used as the source slot. will be added to the HTTP request.
28688 28689 28690 28691 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28688 def swap_slot_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) response = swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:custom_headers).value! nil end |
#swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. slot name. See example. production slot is used as the source slot. will be added to the HTTP request.
response.
28707 28708 28709 28710 28711 28712 28713 28714 28715 28716 28717 28718 28719 28720 28721 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 28707 def swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) # Send request promise = begin_swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, 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 |
#swap_slot_with_production(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ Object
Swaps two deployment slots of an app.
Swaps two deployment slots of an app.
resource belongs. slot name. See example. will be added to the HTTP request.
31886 31887 31888 31889 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31886 def swap_slot_with_production(resource_group_name, name, slot_swap_entity, custom_headers:nil) response = swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers:custom_headers).value! nil end |
#swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. slot name. See example. will be added to the HTTP request.
response.
31903 31904 31905 31906 31907 31908 31909 31910 31911 31912 31913 31914 31915 31916 31917 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31903 def swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers:nil) # Send request promise = begin_swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, 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 |
#sync_function_triggers(resource_group_name, name, custom_headers: nil) ⇒ Object
Syncs function trigger metadata to the scale controller
Syncs function trigger metadata to the scale controller
resource belongs. will be added to the HTTP request.
32723 32724 32725 32726 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32723 def sync_function_triggers(resource_group_name, name, custom_headers:nil) response = sync_function_triggers_async(resource_group_name, name, custom_headers:custom_headers).value! nil end |
#sync_function_triggers_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Syncs function trigger metadata to the scale controller
Syncs function trigger metadata to the scale controller
resource belongs. to the HTTP request.
32758 32759 32760 32761 32762 32763 32764 32765 32766 32767 32768 32769 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779 32780 32781 32782 32783 32784 32785 32786 32787 32788 32789 32790 32791 32792 32793 32794 32795 32796 32797 32798 32799 32800 32801 32802 32803 32804 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32758 def sync_function_triggers_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/sites/{name}/syncfunctiontriggers' 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 == 204 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 |
#sync_function_triggers_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Object
Syncs function trigger metadata to the scale controller
Syncs function trigger metadata to the scale controller
resource belongs. the API will restore a backup of the production slot. will be added to the HTTP request.
29579 29580 29581 29582 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29579 def sync_function_triggers_slot(resource_group_name, name, slot, custom_headers:nil) response = sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! nil end |
#sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Syncs function trigger metadata to the scale controller
Syncs function trigger metadata to the scale controller
resource belongs. the API will restore a backup of the production slot. to the HTTP request.
29618 29619 29620 29621 29622 29623 29624 29625 29626 29627 29628 29629 29630 29631 29632 29633 29634 29635 29636 29637 29638 29639 29640 29641 29642 29643 29644 29645 29646 29647 29648 29649 29650 29651 29652 29653 29654 29655 29656 29657 29658 29659 29660 29661 29662 29663 29664 29665 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29618 def sync_function_triggers_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/syncfunctiontriggers' 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,'slot' => slot,'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 == 204 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 |
#sync_function_triggers_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Syncs function trigger metadata to the scale controller
Syncs function trigger metadata to the scale controller
resource belongs. the API will restore a backup of the production slot. will be added to the HTTP request.
29599 29600 29601 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29599 def sync_function_triggers_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#sync_function_triggers_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Syncs function trigger metadata to the scale controller
Syncs function trigger metadata to the scale controller
resource belongs. will be added to the HTTP request.
32741 32742 32743 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32741 def sync_function_triggers_with_http_info(resource_group_name, name, custom_headers:nil) sync_function_triggers_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#sync_repository(resource_group_name, name, custom_headers: nil) ⇒ Object
Sync web app repository.
Sync web app repository.
resource belongs. will be added to the HTTP request.
32628 32629 32630 32631 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32628 def sync_repository(resource_group_name, name, custom_headers:nil) response = sync_repository_async(resource_group_name, name, custom_headers:custom_headers).value! nil end |
#sync_repository_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Sync web app repository.
Sync web app repository.
resource belongs. to the HTTP request.
32663 32664 32665 32666 32667 32668 32669 32670 32671 32672 32673 32674 32675 32676 32677 32678 32679 32680 32681 32682 32683 32684 32685 32686 32687 32688 32689 32690 32691 32692 32693 32694 32695 32696 32697 32698 32699 32700 32701 32702 32703 32704 32705 32706 32707 32708 32709 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32663 def sync_repository_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/sites/{name}/sync' 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 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 |
#sync_repository_slot(resource_group_name, name, slot, custom_headers: nil) ⇒ Object
Sync web app repository.
Sync web app repository.
resource belongs. to production slot. will be added to the HTTP request.
29477 29478 29479 29480 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29477 def sync_repository_slot(resource_group_name, name, slot, custom_headers:nil) response = sync_repository_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! nil end |
#sync_repository_slot_async(resource_group_name, name, slot, custom_headers: nil) ⇒ Concurrent::Promise
Sync web app repository.
Sync web app repository.
resource belongs. to production slot. to the HTTP request.
29516 29517 29518 29519 29520 29521 29522 29523 29524 29525 29526 29527 29528 29529 29530 29531 29532 29533 29534 29535 29536 29537 29538 29539 29540 29541 29542 29543 29544 29545 29546 29547 29548 29549 29550 29551 29552 29553 29554 29555 29556 29557 29558 29559 29560 29561 29562 29563 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29516 def sync_repository_slot_async(resource_group_name, name, slot, 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, 'slot is nil' if slot.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/sites/{name}/slots/{slot}/sync' 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,'slot' => slot,'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 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 |
#sync_repository_slot_with_http_info(resource_group_name, name, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Sync web app repository.
Sync web app repository.
resource belongs. to production slot. will be added to the HTTP request.
29497 29498 29499 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29497 def sync_repository_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) sync_repository_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end |
#sync_repository_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Sync web app repository.
Sync web app repository.
resource belongs. will be added to the HTTP request.
32646 32647 32648 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32646 def sync_repository_with_http_info(resource_group_name, name, custom_headers:nil) sync_repository_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#update(resource_group_name, name, site_envelope, custom_headers: nil) ⇒ Site
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
resource belongs. update a deployment slot, use the slot parameter. properties. See example. will be added to the HTTP request.
512 513 514 515 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 512 def update(resource_group_name, name, site_envelope, custom_headers:nil) response = update_async(resource_group_name, name, site_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_application_settings(resource_group_name, name, app_settings, custom_headers: nil) ⇒ StringDictionary
Replaces the application settings of an app.
Replaces the application settings of an app.
resource belongs. will be added to the HTTP request.
1727 1728 1729 1730 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1727 def update_application_settings(resource_group_name, name, app_settings, custom_headers:nil) response = update_application_settings_async(resource_group_name, name, app_settings, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_application_settings_async(resource_group_name, name, app_settings, custom_headers: nil) ⇒ Concurrent::Promise
Replaces the application settings of an app.
Replaces the application settings of an app.
resource belongs. to the HTTP request.
1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1764 def update_application_settings_async(resource_group_name, name, app_settings, 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, 'app_settings is nil' if app_settings.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_08_01::Models::StringDictionary.mapper() request_content = @client.serialize(request_mapper, app_settings) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/appsettings' 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 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_08_01::Models::StringDictionary.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_application_settings_slot(resource_group_name, name, app_settings, slot, custom_headers: nil) ⇒ StringDictionary
Replaces the application settings of an app.
Replaces the application settings of an app.
resource belongs. the API will update the application settings for the production slot. will be added to the HTTP request.
15819 15820 15821 15822 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15819 def update_application_settings_slot(resource_group_name, name, app_settings, slot, custom_headers:nil) response = update_application_settings_slot_async(resource_group_name, name, app_settings, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_application_settings_slot_async(resource_group_name, name, app_settings, slot, custom_headers: nil) ⇒ Concurrent::Promise
Replaces the application settings of an app.
Replaces the application settings of an app.
resource belongs. the API will update the application settings for the production slot. to the HTTP request.
15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15860 def update_application_settings_slot_async(resource_group_name, name, app_settings, slot, 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, 'app_settings is nil' if app_settings.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::StringDictionary.mapper() request_content = @client.serialize(request_mapper, app_settings) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/appsettings' 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,'slot' => slot,'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 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_08_01::Models::StringDictionary.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_application_settings_slot_with_http_info(resource_group_name, name, app_settings, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Replaces the application settings of an app.
Replaces the application settings of an app.
resource belongs. the API will update the application settings for the production slot. will be added to the HTTP request.
15840 15841 15842 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 15840 def update_application_settings_slot_with_http_info(resource_group_name, name, app_settings, slot, custom_headers:nil) update_application_settings_slot_async(resource_group_name, name, app_settings, slot, custom_headers:custom_headers).value! end |
#update_application_settings_with_http_info(resource_group_name, name, app_settings, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Replaces the application settings of an app.
Replaces the application settings of an app.
resource belongs. will be added to the HTTP request.
1746 1747 1748 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1746 def update_application_settings_with_http_info(resource_group_name, name, app_settings, custom_headers:nil) update_application_settings_async(resource_group_name, name, app_settings, custom_headers:custom_headers).value! end |
#update_async(resource_group_name, name, site_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
resource belongs. update a deployment slot, use the slot parameter. properties. See example. to the HTTP request.
557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 557 def update_async(resource_group_name, name, site_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, 'site_envelope is nil' if site_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_08_01::Models::SitePatchResource.mapper() request_content = @client.serialize(request_mapper, site_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{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 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_08_01::Models::Site.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_08_01::Models::Site.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_auth_settings(resource_group_name, name, site_auth_settings, custom_headers: nil) ⇒ SiteAuthSettings
Updates the Authentication / Authorization settings associated with web app.
Updates the Authentication / Authorization settings associated with web app.
resource belongs. web app. will be added to the HTTP request.
1951 1952 1953 1954 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1951 def update_auth_settings(resource_group_name, name, site_auth_settings, custom_headers:nil) response = update_auth_settings_async(resource_group_name, name, site_auth_settings, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_auth_settings_async(resource_group_name, name, site_auth_settings, custom_headers: nil) ⇒ Concurrent::Promise
Updates the Authentication / Authorization settings associated with web app.
Updates the Authentication / Authorization settings associated with web app.
resource belongs. web app. to the HTTP request.
1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1990 def update_auth_settings_async(resource_group_name, name, site_auth_settings, 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, 'site_auth_settings is nil' if site_auth_settings.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_08_01::Models::SiteAuthSettings.mapper() request_content = @client.serialize(request_mapper, site_auth_settings) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettings' 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 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_08_01::Models::SiteAuthSettings.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_auth_settings_slot(resource_group_name, name, site_auth_settings, slot, custom_headers: nil) ⇒ SiteAuthSettings
Updates the Authentication / Authorization settings associated with web app.
Updates the Authentication / Authorization settings associated with web app.
resource belongs. web app. to production slot. will be added to the HTTP request.
16057 16058 16059 16060 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16057 def update_auth_settings_slot(resource_group_name, name, site_auth_settings, slot, custom_headers:nil) response = update_auth_settings_slot_async(resource_group_name, name, site_auth_settings, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_auth_settings_slot_async(resource_group_name, name, site_auth_settings, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates the Authentication / Authorization settings associated with web app.
Updates the Authentication / Authorization settings associated with web app.
resource belongs. web app. to production slot. to the HTTP request.
16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16100 def update_auth_settings_slot_async(resource_group_name, name, site_auth_settings, slot, 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, 'site_auth_settings is nil' if site_auth_settings.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::SiteAuthSettings.mapper() request_content = @client.serialize(request_mapper, site_auth_settings) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings' 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,'slot' => slot,'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 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_08_01::Models::SiteAuthSettings.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_auth_settings_slot_with_http_info(resource_group_name, name, site_auth_settings, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the Authentication / Authorization settings associated with web app.
Updates the Authentication / Authorization settings associated with web app.
resource belongs. web app. to production slot. will be added to the HTTP request.
16079 16080 16081 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16079 def update_auth_settings_slot_with_http_info(resource_group_name, name, site_auth_settings, slot, custom_headers:nil) update_auth_settings_slot_async(resource_group_name, name, site_auth_settings, slot, custom_headers:custom_headers).value! end |
#update_auth_settings_with_http_info(resource_group_name, name, site_auth_settings, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the Authentication / Authorization settings associated with web app.
Updates the Authentication / Authorization settings associated with web app.
resource belongs. web app. will be added to the HTTP request.
1971 1972 1973 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 1971 def update_auth_settings_with_http_info(resource_group_name, name, site_auth_settings, custom_headers:nil) update_auth_settings_async(resource_group_name, name, site_auth_settings, custom_headers:custom_headers).value! end |
#update_backup_configuration(resource_group_name, name, request, custom_headers: nil) ⇒ BackupRequest
Updates the backup configuration of an app.
Updates the backup configuration of an app.
resource belongs. will be added to the HTTP request.
2176 2177 2178 2179 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2176 def update_backup_configuration(resource_group_name, name, request, custom_headers:nil) response = update_backup_configuration_async(resource_group_name, name, request, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_backup_configuration_async(resource_group_name, name, request, custom_headers: nil) ⇒ Concurrent::Promise
Updates the backup configuration of an app.
Updates the backup configuration of an app.
resource belongs. to the HTTP request.
2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2213 def update_backup_configuration_async(resource_group_name, name, request, 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, 'request is nil' if request.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_08_01::Models::BackupRequest.mapper() request_content = @client.serialize(request_mapper, request) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup' 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 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_08_01::Models::BackupRequest.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_backup_configuration_slot(resource_group_name, name, request, slot, custom_headers: nil) ⇒ BackupRequest
Updates the backup configuration of an app.
Updates the backup configuration of an app.
resource belongs. the API will update the backup configuration for the production slot. will be added to the HTTP request.
16296 16297 16298 16299 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16296 def update_backup_configuration_slot(resource_group_name, name, request, slot, custom_headers:nil) response = update_backup_configuration_slot_async(resource_group_name, name, request, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_backup_configuration_slot_async(resource_group_name, name, request, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates the backup configuration of an app.
Updates the backup configuration of an app.
resource belongs. the API will update the backup configuration for the production slot. to the HTTP request.
16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16337 def update_backup_configuration_slot_async(resource_group_name, name, request, slot, 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, 'request is nil' if request.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::BackupRequest.mapper() request_content = @client.serialize(request_mapper, request) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/backup' 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,'slot' => slot,'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 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_08_01::Models::BackupRequest.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_backup_configuration_slot_with_http_info(resource_group_name, name, request, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the backup configuration of an app.
Updates the backup configuration of an app.
resource belongs. the API will update the backup configuration for the production slot. will be added to the HTTP request.
16317 16318 16319 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16317 def update_backup_configuration_slot_with_http_info(resource_group_name, name, request, slot, custom_headers:nil) update_backup_configuration_slot_async(resource_group_name, name, request, slot, custom_headers:custom_headers).value! end |
#update_backup_configuration_with_http_info(resource_group_name, name, request, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the backup configuration of an app.
Updates the backup configuration of an app.
resource belongs. will be added to the HTTP request.
2195 2196 2197 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2195 def update_backup_configuration_with_http_info(resource_group_name, name, request, custom_headers:nil) update_backup_configuration_async(resource_group_name, name, request, custom_headers:custom_headers).value! end |
#update_configuration(resource_group_name, name, site_config, custom_headers: nil) ⇒ SiteConfigResource
Updates the configuration of an app.
Updates the configuration of an app.
resource belongs. object. See example. will be added to the HTTP request.
3912 3913 3914 3915 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3912 def update_configuration(resource_group_name, name, site_config, custom_headers:nil) response = update_configuration_async(resource_group_name, name, site_config, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_configuration_async(resource_group_name, name, site_config, custom_headers: nil) ⇒ Concurrent::Promise
Updates the configuration of an app.
Updates the configuration of an app.
resource belongs. object. See example. to the HTTP request.
3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3951 def update_configuration_async(resource_group_name, name, site_config, 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, 'site_config is nil' if site_config.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_08_01::Models::SiteConfigResource.mapper() request_content = @client.serialize(request_mapper, site_config) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web' 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 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_08_01::Models::SiteConfigResource.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_configuration_slot(resource_group_name, name, site_config, slot, custom_headers: nil) ⇒ SiteConfigResource
Updates the configuration of an app.
Updates the configuration of an app.
resource belongs. object. See example. the API will update configuration for the production slot. will be added to the HTTP request.
17889 17890 17891 17892 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17889 def update_configuration_slot(resource_group_name, name, site_config, slot, custom_headers:nil) response = update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates the configuration of an app.
Updates the configuration of an app.
resource belongs. object. See example. the API will update configuration for the production slot. to the HTTP request.
17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17932 def update_configuration_slot_async(resource_group_name, name, site_config, slot, 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, 'site_config is nil' if site_config.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::SiteConfigResource.mapper() request_content = @client.serialize(request_mapper, site_config) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web' 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,'slot' => slot,'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 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_08_01::Models::SiteConfigResource.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_configuration_slot_with_http_info(resource_group_name, name, site_config, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the configuration of an app.
Updates the configuration of an app.
resource belongs. object. See example. the API will update configuration for the production slot. will be added to the HTTP request.
17911 17912 17913 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17911 def update_configuration_slot_with_http_info(resource_group_name, name, site_config, slot, custom_headers:nil) update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers:custom_headers).value! end |
#update_configuration_with_http_info(resource_group_name, name, site_config, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the configuration of an app.
Updates the configuration of an app.
resource belongs. object. See example. will be added to the HTTP request.
3932 3933 3934 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3932 def update_configuration_with_http_info(resource_group_name, name, site_config, custom_headers:nil) update_configuration_async(resource_group_name, name, site_config, custom_headers:custom_headers).value! end |
#update_connection_strings(resource_group_name, name, connection_strings, custom_headers: nil) ⇒ ConnectionStringDictionary
Replaces the connection strings of an app.
Replaces the connection strings of an app.
resource belongs. the app or deployment slot. See example. will be added to the HTTP request.
2495 2496 2497 2498 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2495 def update_connection_strings(resource_group_name, name, connection_strings, custom_headers:nil) response = update_connection_strings_async(resource_group_name, name, connection_strings, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_connection_strings_async(resource_group_name, name, connection_strings, custom_headers: nil) ⇒ Concurrent::Promise
Replaces the connection strings of an app.
Replaces the connection strings of an app.
resource belongs. the app or deployment slot. See example. to the HTTP request.
2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2534 def update_connection_strings_async(resource_group_name, name, connection_strings, 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, 'connection_strings is nil' if connection_strings.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_08_01::Models::ConnectionStringDictionary.mapper() request_content = @client.serialize(request_mapper, connection_strings) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/connectionstrings' 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 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_08_01::Models::ConnectionStringDictionary.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_connection_strings_slot(resource_group_name, name, connection_strings, slot, custom_headers: nil) ⇒ ConnectionStringDictionary
Replaces the connection strings of an app.
Replaces the connection strings of an app.
resource belongs. the app or deployment slot. See example. the API will update the connection settings for the production slot. will be added to the HTTP request.
16636 16637 16638 16639 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16636 def update_connection_strings_slot(resource_group_name, name, connection_strings, slot, custom_headers:nil) response = update_connection_strings_slot_async(resource_group_name, name, connection_strings, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_connection_strings_slot_async(resource_group_name, name, connection_strings, slot, custom_headers: nil) ⇒ Concurrent::Promise
Replaces the connection strings of an app.
Replaces the connection strings of an app.
resource belongs. the app or deployment slot. See example. the API will update the connection settings for the production slot. to the HTTP request.
16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16679 def update_connection_strings_slot_async(resource_group_name, name, connection_strings, slot, 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, 'connection_strings is nil' if connection_strings.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::ConnectionStringDictionary.mapper() request_content = @client.serialize(request_mapper, connection_strings) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/connectionstrings' 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,'slot' => slot,'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 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_08_01::Models::ConnectionStringDictionary.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_connection_strings_slot_with_http_info(resource_group_name, name, connection_strings, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Replaces the connection strings of an app.
Replaces the connection strings of an app.
resource belongs. the app or deployment slot. See example. the API will update the connection settings for the production slot. will be added to the HTTP request.
16658 16659 16660 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16658 def update_connection_strings_slot_with_http_info(resource_group_name, name, connection_strings, slot, custom_headers:nil) update_connection_strings_slot_async(resource_group_name, name, connection_strings, slot, custom_headers:custom_headers).value! end |
#update_connection_strings_with_http_info(resource_group_name, name, connection_strings, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Replaces the connection strings of an app.
Replaces the connection strings of an app.
resource belongs. the app or deployment slot. See example. will be added to the HTTP request.
2515 2516 2517 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2515 def update_connection_strings_with_http_info(resource_group_name, name, connection_strings, custom_headers:nil) update_connection_strings_async(resource_group_name, name, connection_strings, custom_headers:custom_headers).value! end |
#update_diagnostic_logs_config(resource_group_name, name, site_logs_config, custom_headers: nil) ⇒ SiteLogsConfig
Updates the logging configuration of an app.
Updates the logging configuration of an app.
resource belongs. contains the logging configuration to change in the “properties” property. will be added to the HTTP request.
2827 2828 2829 2830 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2827 def update_diagnostic_logs_config(resource_group_name, name, site_logs_config, custom_headers:nil) response = update_diagnostic_logs_config_async(resource_group_name, name, site_logs_config, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_diagnostic_logs_config_async(resource_group_name, name, site_logs_config, custom_headers: nil) ⇒ Concurrent::Promise
Updates the logging configuration of an app.
Updates the logging configuration of an app.
resource belongs. contains the logging configuration to change in the “properties” property. to the HTTP request.
2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2866 def update_diagnostic_logs_config_async(resource_group_name, name, site_logs_config, 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, 'site_logs_config is nil' if site_logs_config.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_08_01::Models::SiteLogsConfig.mapper() request_content = @client.serialize(request_mapper, site_logs_config) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/logs' 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 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_08_01::Models::SiteLogsConfig.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_diagnostic_logs_config_slot(resource_group_name, name, site_logs_config, slot, custom_headers: nil) ⇒ SiteLogsConfig
Updates the logging configuration of an app.
Updates the logging configuration of an app.
resource belongs. contains the logging configuration to change in the “properties” property. the API will update the logging configuration for the production slot. will be added to the HTTP request.
16989 16990 16991 16992 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 16989 def update_diagnostic_logs_config_slot(resource_group_name, name, site_logs_config, slot, custom_headers:nil) response = update_diagnostic_logs_config_slot_async(resource_group_name, name, site_logs_config, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_diagnostic_logs_config_slot_async(resource_group_name, name, site_logs_config, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates the logging configuration of an app.
Updates the logging configuration of an app.
resource belongs. contains the logging configuration to change in the “properties” property. the API will update the logging configuration for the production slot. to the HTTP request.
17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17032 def update_diagnostic_logs_config_slot_async(resource_group_name, name, site_logs_config, slot, 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, 'site_logs_config is nil' if site_logs_config.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::SiteLogsConfig.mapper() request_content = @client.serialize(request_mapper, site_logs_config) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/logs' 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,'slot' => slot,'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 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_08_01::Models::SiteLogsConfig.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_diagnostic_logs_config_slot_with_http_info(resource_group_name, name, site_logs_config, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the logging configuration of an app.
Updates the logging configuration of an app.
resource belongs. contains the logging configuration to change in the “properties” property. the API will update the logging configuration for the production slot. will be added to the HTTP request.
17011 17012 17013 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17011 def update_diagnostic_logs_config_slot_with_http_info(resource_group_name, name, site_logs_config, slot, custom_headers:nil) update_diagnostic_logs_config_slot_async(resource_group_name, name, site_logs_config, slot, custom_headers:custom_headers).value! end |
#update_diagnostic_logs_config_with_http_info(resource_group_name, name, site_logs_config, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the logging configuration of an app.
Updates the logging configuration of an app.
resource belongs. contains the logging configuration to change in the “properties” property. will be added to the HTTP request.
2847 2848 2849 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2847 def update_diagnostic_logs_config_with_http_info(resource_group_name, name, site_logs_config, custom_headers:nil) update_diagnostic_logs_config_async(resource_group_name, name, site_logs_config, custom_headers:custom_headers).value! end |
#update_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers: nil) ⇒ Identifier
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
resource belongs. identifier. domain ownership properties. will be added to the HTTP request.
6102 6103 6104 6105 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6102 def update_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:nil) response = update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers: nil) ⇒ Concurrent::Promise
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
resource belongs. identifier. domain ownership properties. to the HTTP request.
6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6149 def update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, 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, 'domain_ownership_identifier_name is nil' if domain_ownership_identifier_name.nil? fail ArgumentError, 'domain_ownership_identifier is nil' if domain_ownership_identifier.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_08_01::Models::Identifier.mapper() request_content = @client.serialize(request_mapper, domain_ownership_identifier) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}' 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,'domainOwnershipIdentifierName' => domain_ownership_identifier_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 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_08_01::Models::Identifier.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_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers: nil) ⇒ Identifier
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
resource belongs. identifier. domain ownership properties. the API will delete the binding for the production slot. will be added to the HTTP request.
20219 20220 20221 20222 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20219 def update_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:nil) response = update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
resource belongs. identifier. domain ownership properties. the API will delete the binding for the production slot. to the HTTP request.
20270 20271 20272 20273 20274 20275 20276 20277 20278 20279 20280 20281 20282 20283 20284 20285 20286 20287 20288 20289 20290 20291 20292 20293 20294 20295 20296 20297 20298 20299 20300 20301 20302 20303 20304 20305 20306 20307 20308 20309 20310 20311 20312 20313 20314 20315 20316 20317 20318 20319 20320 20321 20322 20323 20324 20325 20326 20327 20328 20329 20330 20331 20332 20333 20334 20335 20336 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20270 def update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, 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, 'domain_ownership_identifier_name is nil' if domain_ownership_identifier_name.nil? fail ArgumentError, 'domain_ownership_identifier is nil' if domain_ownership_identifier.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::Identifier.mapper() request_content = @client.serialize(request_mapper, domain_ownership_identifier) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}' 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,'domainOwnershipIdentifierName' => domain_ownership_identifier_name,'slot' => slot,'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 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_08_01::Models::Identifier.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_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
resource belongs. identifier. domain ownership properties. the API will delete the binding for the production slot. will be added to the HTTP request.
20245 20246 20247 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 20245 def update_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:nil) update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:custom_headers).value! end |
#update_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
Creates a domain ownership identifier for web app, or updates an existing ownership identifier.
resource belongs. identifier. domain ownership properties. will be added to the HTTP request.
6126 6127 6128 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 6126 def update_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:nil) update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:custom_headers).value! end |
#update_hybrid_connection(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers: nil) ⇒ HybridConnection
Creates a new Hybrid Connection using a Service Bus relay.
Creates a new Hybrid Connection using a Service Bus relay.
resource belongs. connection. will be added to the HTTP request.
7865 7866 7867 7868 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7865 def update_hybrid_connection(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:nil) response = update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new Hybrid Connection using a Service Bus relay.
Creates a new Hybrid Connection using a Service Bus relay.
resource belongs. connection. to the HTTP request.
7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7908 def update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_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, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'relay_name is nil' if relay_name.nil? fail ArgumentError, 'connection_envelope is nil' if connection_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_08_01::Models::HybridConnection.mapper() request_content = @client.serialize(request_mapper, connection_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' 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,'namespaceName' => namespace_name,'relayName' => relay_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 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_08_01::Models::HybridConnection.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_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers: nil) ⇒ HybridConnection
Creates a new Hybrid Connection using a Service Bus relay.
Creates a new Hybrid Connection using a Service Bus relay.
resource belongs. connection. will be added to the HTTP request.
22085 22086 22087 22088 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22085 def update_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:nil) response = update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new Hybrid Connection using a Service Bus relay.
Creates a new Hybrid Connection using a Service Bus relay.
resource belongs. connection. to the HTTP request.
22130 22131 22132 22133 22134 22135 22136 22137 22138 22139 22140 22141 22142 22143 22144 22145 22146 22147 22148 22149 22150 22151 22152 22153 22154 22155 22156 22157 22158 22159 22160 22161 22162 22163 22164 22165 22166 22167 22168 22169 22170 22171 22172 22173 22174 22175 22176 22177 22178 22179 22180 22181 22182 22183 22184 22185 22186 22187 22188 22189 22190 22191 22192 22193 22194 22195 22196 22197 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22130 def update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, 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, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'relay_name is nil' if relay_name.nil? fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::HybridConnection.mapper() request_content = @client.serialize(request_mapper, connection_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}' 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,'namespaceName' => namespace_name,'relayName' => relay_name,'slot' => slot,'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 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_08_01::Models::HybridConnection.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_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new Hybrid Connection using a Service Bus relay.
Creates a new Hybrid Connection using a Service Bus relay.
resource belongs. connection. will be added to the HTTP request.
22108 22109 22110 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22108 def update_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:nil) update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:custom_headers).value! end |
#update_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new Hybrid Connection using a Service Bus relay.
Creates a new Hybrid Connection using a Service Bus relay.
resource belongs. connection. will be added to the HTTP request.
7887 7888 7889 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 7887 def update_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:nil) update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:custom_headers).value! end |
#update_metadata(resource_group_name, name, metadata, custom_headers: nil) ⇒ StringDictionary
Replaces the metadata of an app.
Replaces the metadata of an app.
resource belongs. slot. See example. will be added to the HTTP request.
2947 2948 2949 2950 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2947 def (resource_group_name, name, , custom_headers:nil) response = (resource_group_name, name, , custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_metadata_async(resource_group_name, name, metadata, custom_headers: nil) ⇒ Concurrent::Promise
Replaces the metadata of an app.
Replaces the metadata of an app.
resource belongs. slot. See example. to the HTTP request.
2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2986 def (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, 'metadata is nil' if .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_08_01::Models::StringDictionary.mapper() request_content = @client.serialize(request_mapper, ) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/metadata' 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 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_08_01::Models::StringDictionary.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_metadata_slot(resource_group_name, name, metadata, slot, custom_headers: nil) ⇒ StringDictionary
Replaces the metadata of an app.
Replaces the metadata of an app.
resource belongs. slot. See example. the API will update the metadata for the production slot. will be added to the HTTP request.
17116 17117 17118 17119 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17116 def (resource_group_name, name, , slot, custom_headers:nil) response = (resource_group_name, name, , slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_metadata_slot_async(resource_group_name, name, metadata, slot, custom_headers: nil) ⇒ Concurrent::Promise
Replaces the metadata of an app.
Replaces the metadata of an app.
resource belongs. slot. See example. the API will update the metadata for the production slot. to the HTTP request.
17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222 17223 17224 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17159 def (resource_group_name, name, , slot, 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, 'metadata is nil' if .nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::StringDictionary.mapper() request_content = @client.serialize(request_mapper, ) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/metadata' 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,'slot' => slot,'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 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_08_01::Models::StringDictionary.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_metadata_slot_with_http_info(resource_group_name, name, metadata, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Replaces the metadata of an app.
Replaces the metadata of an app.
resource belongs. slot. See example. the API will update the metadata for the production slot. will be added to the HTTP request.
17138 17139 17140 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17138 def (resource_group_name, name, , slot, custom_headers:nil) (resource_group_name, name, , slot, custom_headers:custom_headers).value! end |
#update_metadata_with_http_info(resource_group_name, name, metadata, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Replaces the metadata of an app.
Replaces the metadata of an app.
resource belongs. slot. See example. will be added to the HTTP request.
2967 2968 2969 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 2967 def (resource_group_name, name, , custom_headers:nil) (resource_group_name, name, , custom_headers:custom_headers).value! end |
#update_relay_service_connection(resource_group_name, name, entity_name, connection_envelope, custom_headers: nil) ⇒ RelayServiceConnectionEntity
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
resource belongs. hybrid connection configuration. will be added to the HTTP request.
8665 8666 8667 8668 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8665 def update_relay_service_connection(resource_group_name, name, entity_name, connection_envelope, custom_headers:nil) response = update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
resource belongs. hybrid connection configuration. to the HTTP request.
8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8710 def update_relay_service_connection_async(resource_group_name, name, entity_name, connection_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, 'entity_name is nil' if entity_name.nil? fail ArgumentError, 'connection_envelope is nil' if connection_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_08_01::Models::RelayServiceConnectionEntity.mapper() request_content = @client.serialize(request_mapper, connection_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}' 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,'entityName' => entity_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 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_08_01::Models::RelayServiceConnectionEntity.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_relay_service_connection_slot(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers: nil) ⇒ RelayServiceConnectionEntity
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
resource belongs. hybrid connection configuration. the API will create or update a hybrid connection for the production slot. will be added to the HTTP request.
22926 22927 22928 22929 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22926 def update_relay_service_connection_slot(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:nil) response = update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
resource belongs. hybrid connection configuration. the API will create or update a hybrid connection for the production slot. to the HTTP request.
22975 22976 22977 22978 22979 22980 22981 22982 22983 22984 22985 22986 22987 22988 22989 22990 22991 22992 22993 22994 22995 22996 22997 22998 22999 23000 23001 23002 23003 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 23022 23023 23024 23025 23026 23027 23028 23029 23030 23031 23032 23033 23034 23035 23036 23037 23038 23039 23040 23041 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22975 def update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, 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, 'entity_name is nil' if entity_name.nil? fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::RelayServiceConnectionEntity.mapper() request_content = @client.serialize(request_mapper, connection_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}' 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,'entityName' => entity_name,'slot' => slot,'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 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_08_01::Models::RelayServiceConnectionEntity.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_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
resource belongs. hybrid connection configuration. the API will create or update a hybrid connection for the production slot. will be added to the HTTP request.
22951 22952 22953 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 22951 def update_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:nil) update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:custom_headers).value! end |
#update_relay_service_connection_with_http_info(resource_group_name, name, entity_name, connection_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH).
resource belongs. hybrid connection configuration. will be added to the HTTP request.
8688 8689 8690 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 8688 def update_relay_service_connection_with_http_info(resource_group_name, name, entity_name, connection_envelope, custom_headers:nil) update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers:custom_headers).value! end |
#update_site_push_settings(resource_group_name, name, push_settings, custom_headers: nil) ⇒ PushSettings
Updates the Push settings associated with web app.
Updates the Push settings associated with web app.
resource belongs. will be added to the HTTP request.
3218 3219 3220 3221 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3218 def update_site_push_settings(resource_group_name, name, push_settings, custom_headers:nil) response = update_site_push_settings_async(resource_group_name, name, push_settings, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_site_push_settings_async(resource_group_name, name, push_settings, custom_headers: nil) ⇒ Concurrent::Promise
Updates the Push settings associated with web app.
Updates the Push settings associated with web app.
resource belongs. to the HTTP request.
3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3255 def update_site_push_settings_async(resource_group_name, name, push_settings, 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, 'push_settings is nil' if push_settings.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_08_01::Models::PushSettings.mapper() request_content = @client.serialize(request_mapper, push_settings) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/pushsettings' 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 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_08_01::Models::PushSettings.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_site_push_settings_slot(resource_group_name, name, push_settings, slot, custom_headers: nil) ⇒ PushSettings
Updates the Push settings associated with web app.
Updates the Push settings associated with web app.
resource belongs. to production slot. will be added to the HTTP request.
17405 17406 17407 17408 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17405 def update_site_push_settings_slot(resource_group_name, name, push_settings, slot, custom_headers:nil) response = update_site_push_settings_slot_async(resource_group_name, name, push_settings, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_site_push_settings_slot_async(resource_group_name, name, push_settings, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates the Push settings associated with web app.
Updates the Push settings associated with web app.
resource belongs. to production slot. to the HTTP request.
17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17446 def update_site_push_settings_slot_async(resource_group_name, name, push_settings, slot, 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, 'push_settings is nil' if push_settings.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::PushSettings.mapper() request_content = @client.serialize(request_mapper, push_settings) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/pushsettings' 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,'slot' => slot,'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 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_08_01::Models::PushSettings.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_site_push_settings_slot_with_http_info(resource_group_name, name, push_settings, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the Push settings associated with web app.
Updates the Push settings associated with web app.
resource belongs. to production slot. will be added to the HTTP request.
17426 17427 17428 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 17426 def update_site_push_settings_slot_with_http_info(resource_group_name, name, push_settings, slot, custom_headers:nil) update_site_push_settings_slot_async(resource_group_name, name, push_settings, slot, custom_headers:custom_headers).value! end |
#update_site_push_settings_with_http_info(resource_group_name, name, push_settings, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the Push settings associated with web app.
Updates the Push settings associated with web app.
resource belongs. will be added to the HTTP request.
3237 3238 3239 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3237 def update_site_push_settings_with_http_info(resource_group_name, name, push_settings, custom_headers:nil) update_site_push_settings_async(resource_group_name, name, push_settings, custom_headers:custom_headers).value! end |
#update_slot(resource_group_name, name, site_envelope, slot, skip_dns_registration: nil, skip_custom_domain_verification: nil, force_dns_registration: nil, ttl_in_seconds: nil, custom_headers: nil) ⇒ Site
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
resource belongs. update a deployment slot, use the slot parameter. properties. See example. default, this API attempts to create or modify the production slot. registered with DNS on creation. This parameter is only used for app creation. *.azurewebsites.net) domains associated with web app are not verified. registered with DNS. domain name. will be added to the HTTP request.
14512 14513 14514 14515 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14512 def update_slot(resource_group_name, name, site_envelope, slot, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds:nil, custom_headers:nil) response = update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration:skip_dns_registration, skip_custom_domain_verification:skip_custom_domain_verification, force_dns_registration:force_dns_registration, ttl_in_seconds:ttl_in_seconds, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration: nil, skip_custom_domain_verification: nil, force_dns_registration: nil, ttl_in_seconds: nil, custom_headers: nil) ⇒ Concurrent::Promise
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
resource belongs. update a deployment slot, use the slot parameter. properties. See example. default, this API attempts to create or modify the production slot. registered with DNS on creation. This parameter is only used for app creation. *.azurewebsites.net) domains associated with web app are not verified. registered with DNS. domain name. to the HTTP request.
14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14579 def update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds: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, 'site_envelope is nil' if site_envelope.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::SitePatchResource.mapper() request_content = @client.serialize(request_mapper, site_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}' 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,'slot' => slot,'subscriptionId' => @client.subscription_id}, query_params: {'skipDnsRegistration' => skip_dns_registration,'skipCustomDomainVerification' => skip_custom_domain_verification,'forceDnsRegistration' => force_dns_registration,'ttlInSeconds' => ttl_in_seconds,'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 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_08_01::Models::Site.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_08_01::Models::Site.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_slot_configuration_names(resource_group_name, name, slot_config_names, custom_headers: nil) ⇒ SlotConfigNamesResource
Updates the names of application settings and connection string that remain with the slot during swap operation.
Updates the names of application settings and connection string that remain with the slot during swap operation.
resource belongs. settings and connection strings. See example. will be added to the HTTP request.
3556 3557 3558 3559 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3556 def update_slot_configuration_names(resource_group_name, name, slot_config_names, custom_headers:nil) response = update_slot_configuration_names_async(resource_group_name, name, slot_config_names, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_slot_configuration_names_async(resource_group_name, name, slot_config_names, custom_headers: nil) ⇒ Concurrent::Promise
Updates the names of application settings and connection string that remain with the slot during swap operation.
Updates the names of application settings and connection string that remain with the slot during swap operation.
resource belongs. settings and connection strings. See example. to the HTTP request.
3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 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 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3599 def update_slot_configuration_names_async(resource_group_name, name, slot_config_names, 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, 'slot_config_names is nil' if slot_config_names.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_08_01::Models::SlotConfigNamesResource.mapper() request_content = @client.serialize(request_mapper, slot_config_names) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/slotConfigNames' 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 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_08_01::Models::SlotConfigNamesResource.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_slot_configuration_names_with_http_info(resource_group_name, name, slot_config_names, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the names of application settings and connection string that remain with the slot during swap operation.
Updates the names of application settings and connection string that remain with the slot during swap operation.
resource belongs. settings and connection strings. See example. will be added to the HTTP request.
3578 3579 3580 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 3578 def update_slot_configuration_names_with_http_info(resource_group_name, name, slot_config_names, custom_headers:nil) update_slot_configuration_names_async(resource_group_name, name, slot_config_names, custom_headers:custom_headers).value! end |
#update_slot_with_http_info(resource_group_name, name, site_envelope, slot, skip_dns_registration: nil, skip_custom_domain_verification: nil, force_dns_registration: nil, ttl_in_seconds: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
resource belongs. update a deployment slot, use the slot parameter. properties. See example. default, this API attempts to create or modify the production slot. registered with DNS on creation. This parameter is only used for app creation. *.azurewebsites.net) domains associated with web app are not verified. registered with DNS. domain name. will be added to the HTTP request.
14546 14547 14548 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 14546 def update_slot_with_http_info(resource_group_name, name, site_envelope, slot, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds:nil, custom_headers:nil) update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration:skip_dns_registration, skip_custom_domain_verification:skip_custom_domain_verification, force_dns_registration:force_dns_registration, ttl_in_seconds:ttl_in_seconds, custom_headers:custom_headers).value! end |
#update_source_control(resource_group_name, name, site_source_control, custom_headers: nil) ⇒ SiteSourceControl
Updates the source control configuration of an app.
Updates the source control configuration of an app.
resource belongs. SiteSourceControl object. See example. will be added to the HTTP request.
32311 32312 32313 32314 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32311 def update_source_control(resource_group_name, name, site_source_control, custom_headers:nil) response = update_source_control_async(resource_group_name, name, site_source_control, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_source_control_async(resource_group_name, name, site_source_control, custom_headers: nil) ⇒ Concurrent::Promise
Updates the source control configuration of an app.
Updates the source control configuration of an app.
resource belongs. SiteSourceControl object. See example. to the HTTP request.
32350 32351 32352 32353 32354 32355 32356 32357 32358 32359 32360 32361 32362 32363 32364 32365 32366 32367 32368 32369 32370 32371 32372 32373 32374 32375 32376 32377 32378 32379 32380 32381 32382 32383 32384 32385 32386 32387 32388 32389 32390 32391 32392 32393 32394 32395 32396 32397 32398 32399 32400 32401 32402 32403 32404 32405 32406 32407 32408 32409 32410 32411 32412 32413 32414 32415 32416 32417 32418 32419 32420 32421 32422 32423 32424 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32350 def update_source_control_async(resource_group_name, name, site_source_control, 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, 'site_source_control is nil' if site_source_control.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_08_01::Models::SiteSourceControl.mapper() request_content = @client.serialize(request_mapper, site_source_control) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web' 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 == 201 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_08_01::Models::SiteSourceControl.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 == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.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_source_control_slot(resource_group_name, name, site_source_control, slot, custom_headers: nil) ⇒ SiteSourceControl
Updates the source control configuration of an app.
Updates the source control configuration of an app.
resource belongs. SiteSourceControl object. See example. the API will update the source control configuration for the production slot. will be added to the HTTP request.
29139 29140 29141 29142 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29139 def update_source_control_slot(resource_group_name, name, site_source_control, slot, custom_headers:nil) response = update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers: nil) ⇒ Concurrent::Promise
Updates the source control configuration of an app.
Updates the source control configuration of an app.
resource belongs. SiteSourceControl object. See example. the API will update the source control configuration for the production slot. to the HTTP request.
29182 29183 29184 29185 29186 29187 29188 29189 29190 29191 29192 29193 29194 29195 29196 29197 29198 29199 29200 29201 29202 29203 29204 29205 29206 29207 29208 29209 29210 29211 29212 29213 29214 29215 29216 29217 29218 29219 29220 29221 29222 29223 29224 29225 29226 29227 29228 29229 29230 29231 29232 29233 29234 29235 29236 29237 29238 29239 29240 29241 29242 29243 29244 29245 29246 29247 29248 29249 29250 29251 29252 29253 29254 29255 29256 29257 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29182 def update_source_control_slot_async(resource_group_name, name, site_source_control, slot, 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, 'site_source_control is nil' if site_source_control.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::SiteSourceControl.mapper() request_content = @client.serialize(request_mapper, site_source_control) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sourcecontrols/web' 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,'slot' => slot,'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 == 201 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_08_01::Models::SiteSourceControl.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 == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl.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_source_control_slot_with_http_info(resource_group_name, name, site_source_control, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the source control configuration of an app.
Updates the source control configuration of an app.
resource belongs. SiteSourceControl object. See example. the API will update the source control configuration for the production slot. will be added to the HTTP request.
29161 29162 29163 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 29161 def update_source_control_slot_with_http_info(resource_group_name, name, site_source_control, slot, custom_headers:nil) update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers:custom_headers).value! end |
#update_source_control_with_http_info(resource_group_name, name, site_source_control, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates the source control configuration of an app.
Updates the source control configuration of an app.
resource belongs. SiteSourceControl object. See example. will be added to the HTTP request.
32331 32332 32333 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 32331 def update_source_control_with_http_info(resource_group_name, name, site_source_control, custom_headers:nil) update_source_control_async(resource_group_name, name, site_source_control, custom_headers:custom_headers).value! end |
#update_vnet_connection(resource_group_name, name, vnet_name, connection_envelope, custom_headers: nil) ⇒ VnetInfo
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
resource belongs. connection. See example. will be added to the HTTP request.
34060 34061 34062 34063 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34060 def update_vnet_connection(resource_group_name, name, vnet_name, connection_envelope, custom_headers:nil) response = update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
resource belongs. connection. See example. to the HTTP request.
34105 34106 34107 34108 34109 34110 34111 34112 34113 34114 34115 34116 34117 34118 34119 34120 34121 34122 34123 34124 34125 34126 34127 34128 34129 34130 34131 34132 34133 34134 34135 34136 34137 34138 34139 34140 34141 34142 34143 34144 34145 34146 34147 34148 34149 34150 34151 34152 34153 34154 34155 34156 34157 34158 34159 34160 34161 34162 34163 34164 34165 34166 34167 34168 34169 34170 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34105 def update_vnet_connection_async(resource_group_name, name, vnet_name, connection_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, 'vnet_name is nil' if vnet_name.nil? fail ArgumentError, 'connection_envelope is nil' if connection_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_08_01::Models::VnetInfo.mapper() request_content = @client.serialize(request_mapper, connection_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}' 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,'vnetName' => vnet_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 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_08_01::Models::VnetInfo.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_vnet_connection_gateway(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers: nil) ⇒ VnetGateway
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
resource belongs. supported string is “primary”. gateway with. will be added to the HTTP request.
34438 34439 34440 34441 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34438 def update_vnet_connection_gateway(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:nil) response = update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers: nil) ⇒ Concurrent::Promise
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
resource belongs. supported string is “primary”. gateway with. to the HTTP request.
34483 34484 34485 34486 34487 34488 34489 34490 34491 34492 34493 34494 34495 34496 34497 34498 34499 34500 34501 34502 34503 34504 34505 34506 34507 34508 34509 34510 34511 34512 34513 34514 34515 34516 34517 34518 34519 34520 34521 34522 34523 34524 34525 34526 34527 34528 34529 34530 34531 34532 34533 34534 34535 34536 34537 34538 34539 34540 34541 34542 34543 34544 34545 34546 34547 34548 34549 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34483 def update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_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, 'vnet_name is nil' if vnet_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? fail ArgumentError, 'connection_envelope is nil' if connection_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_08_01::Models::VnetGateway.mapper() request_content = @client.serialize(request_mapper, connection_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}' 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,'vnetName' => vnet_name,'gatewayName' => gateway_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 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_08_01::Models::VnetGateway.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_vnet_connection_gateway_slot(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers: nil) ⇒ VnetGateway
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
resource belongs. supported string is “primary”. gateway with. the API will add or update a gateway for the production slot’s Virtual Network. will be added to the HTTP request.
31403 31404 31405 31406 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31403 def update_vnet_connection_gateway_slot(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:nil) response = update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers: nil) ⇒ Concurrent::Promise
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
resource belongs. supported string is “primary”. gateway with. the API will add or update a gateway for the production slot’s Virtual Network. to the HTTP request.
31454 31455 31456 31457 31458 31459 31460 31461 31462 31463 31464 31465 31466 31467 31468 31469 31470 31471 31472 31473 31474 31475 31476 31477 31478 31479 31480 31481 31482 31483 31484 31485 31486 31487 31488 31489 31490 31491 31492 31493 31494 31495 31496 31497 31498 31499 31500 31501 31502 31503 31504 31505 31506 31507 31508 31509 31510 31511 31512 31513 31514 31515 31516 31517 31518 31519 31520 31521 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31454 def update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, 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, 'vnet_name is nil' if vnet_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::VnetGateway.mapper() request_content = @client.serialize(request_mapper, connection_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}' 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,'vnetName' => vnet_name,'gatewayName' => gateway_name,'slot' => slot,'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 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_08_01::Models::VnetGateway.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_vnet_connection_gateway_slot_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
resource belongs. supported string is “primary”. gateway with. the API will add or update a gateway for the production slot’s Virtual Network. will be added to the HTTP request.
31429 31430 31431 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31429 def update_vnet_connection_gateway_slot_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:nil) update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:custom_headers).value! end |
#update_vnet_connection_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH).
resource belongs. supported string is “primary”. gateway with. will be added to the HTTP request.
34461 34462 34463 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34461 def update_vnet_connection_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:nil) update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:custom_headers).value! end |
#update_vnet_connection_slot(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers: nil) ⇒ VnetInfo
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
resource belongs. connection. See example. the API will add or update connections for the production slot. will be added to the HTTP request.
31000 31001 31002 31003 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31000 def update_vnet_connection_slot(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:nil) response = update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers: nil) ⇒ Concurrent::Promise
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
resource belongs. connection. See example. the API will add or update connections for the production slot. to the HTTP request.
31049 31050 31051 31052 31053 31054 31055 31056 31057 31058 31059 31060 31061 31062 31063 31064 31065 31066 31067 31068 31069 31070 31071 31072 31073 31074 31075 31076 31077 31078 31079 31080 31081 31082 31083 31084 31085 31086 31087 31088 31089 31090 31091 31092 31093 31094 31095 31096 31097 31098 31099 31100 31101 31102 31103 31104 31105 31106 31107 31108 31109 31110 31111 31112 31113 31114 31115 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31049 def update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, 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, 'vnet_name is nil' if vnet_name.nil? fail ArgumentError, 'connection_envelope is nil' if connection_envelope.nil? fail ArgumentError, 'slot is nil' if slot.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_08_01::Models::VnetInfo.mapper() request_content = @client.serialize(request_mapper, connection_envelope) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}' 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,'vnetName' => vnet_name,'slot' => slot,'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 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_08_01::Models::VnetInfo.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_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
resource belongs. connection. See example. the API will add or update connections for the production slot. will be added to the HTTP request.
31025 31026 31027 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 31025 def update_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:nil) update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:custom_headers).value! end |
#update_vnet_connection_with_http_info(resource_group_name, name, vnet_name, connection_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
resource belongs. connection. See example. will be added to the HTTP request.
34083 34084 34085 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 34083 def update_vnet_connection_with_http_info(resource_group_name, name, vnet_name, connection_envelope, custom_headers:nil) update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers:custom_headers).value! end |
#update_with_http_info(resource_group_name, name, site_envelope, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
resource belongs. update a deployment slot, use the slot parameter. properties. See example. will be added to the HTTP request.
535 536 537 |
# File 'lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb', line 535 def update_with_http_info(resource_group_name, name, site_envelope, custom_headers:nil) update_async(resource_group_name, name, site_envelope, custom_headers:custom_headers).value! end |