azure_mgmt_web 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-04-01/generated/azure_mgmt_web.rb +41 -39
- data/lib/2015-04-01/generated/azure_mgmt_web/domain_registration_provider.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_web/domains.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_web/models/managed_service_identity.rb +3 -2
- data/lib/2015-04-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +15 -0
- data/lib/2015-04-01/generated/azure_mgmt_web/models/site_config.rb +26 -0
- data/lib/2015-04-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
- data/lib/2015-04-01/generated/azure_mgmt_web/top_level_domains.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_web/web_site_management_client.rb +11 -10
- data/lib/2015-08-01/generated/azure_mgmt_web.rb +2 -0
- data/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_web/certificate_registration_provider.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_web/models/managed_service_identity.rb +3 -2
- data/lib/2015-08-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +15 -0
- data/lib/2015-08-01/generated/azure_mgmt_web/models/site_config.rb +26 -0
- data/lib/2015-08-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
- data/lib/2015-08-01/generated/azure_mgmt_web/web_site_management_client.rb +7 -6
- data/lib/2016-03-01/generated/azure_mgmt_web.rb +76 -52
- data/lib/2016-03-01/generated/azure_mgmt_web/billing_meters.rb +235 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/certificates.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/deleted_web_apps.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/diagnostics.rb +1143 -111
- data/lib/2016-03-01/generated/azure_mgmt_web/models/application_stack.rb +109 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/application_stack_collection.rb +99 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/billing_meter.rb +126 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/billing_meter_collection.rb +99 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/data_table_response_column.rb +68 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/data_table_response_object.rb +94 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/default_error_response.rb +48 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/default_error_response_error.rb +104 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/default_error_response_error_details_item.rb +72 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/detector_info.rb +83 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/detector_response.rb +102 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/detector_response_collection.rb +99 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_data.rb +60 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/managed_service_identity.rb +3 -2
- data/lib/2016-03-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +15 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/recommendation.rb +57 -22
- data/lib/2016-03-01/generated/azure_mgmt_web/models/recommendation_collection.rb +99 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/recommendation_rule.rb +49 -14
- data/lib/2016-03-01/generated/azure_mgmt_web/models/rendering.rb +71 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/rendering_type.rb +18 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/resource_health_metadata.rb +93 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/resource_health_metadata_collection.rb +99 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/site_config.rb +26 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/stack_major_version.rb +90 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/stack_minor_version.rb +69 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/provider.rb +277 -17
- data/lib/2016-03-01/generated/azure_mgmt_web/recommendations.rb +582 -67
- data/lib/2016-03-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +1161 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb +16 -6
- data/lib/2016-08-01/generated/azure_mgmt_web.rb +2 -0
- data/lib/2016-08-01/generated/azure_mgmt_web/models/managed_service_identity.rb +3 -2
- data/lib/2016-08-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +15 -0
- data/lib/2016-08-01/generated/azure_mgmt_web/models/site_config.rb +26 -0
- data/lib/2016-08-01/generated/azure_mgmt_web/models/site_config_resource.rb +26 -0
- data/lib/2016-08-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
- data/lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb +87 -102
- data/lib/2016-08-01/generated/azure_mgmt_web/web_site_management_client.rb +7 -6
- data/lib/2016-09-01/generated/azure_mgmt_web.rb +2 -0
- data/lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb +3 -3
- data/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_web/models/managed_service_identity.rb +3 -2
- data/lib/2016-09-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +15 -0
- data/lib/2016-09-01/generated/azure_mgmt_web/models/site_config.rb +26 -0
- data/lib/2016-09-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
- data/lib/2016-09-01/generated/azure_mgmt_web/web_site_management_client.rb +7 -6
- data/lib/2018-02-01/generated/azure_mgmt_web.rb +369 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +2651 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb +8089 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/app_service_plans.rb +4314 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/certificate_registration_provider.rb +243 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/certificates.rb +882 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/deleted_web_apps.rb +231 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb +3845 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/domain_registration_provider.rb +243 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/domains.rb +2145 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/abnormal_time_period.rb +98 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/access_control_entry_action.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/address.rb +101 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/address_response.rb +97 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/analysis_data.rb +118 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/analysis_definition.rb +82 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/api_definition_info.rb +46 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate.rb +76 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_order.rb +359 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_order_patch_resource.rb +335 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_patch_resource.rb +112 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_resource.rb +136 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_environment.rb +570 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_environment_patch_resource.rb +605 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_environment_resource.rb +629 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan.rb +329 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan_patch_resource.rb +293 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan_restrictions.rb +20 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/application_logs_config.rb +74 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/application_stack.rb +109 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/application_stack_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_action_type.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_actions.rb +72 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_custom_action.rb +58 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_rules.rb +61 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_triggers.rb +91 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb +73 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb +72 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_resource_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb +60 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_item.rb +257 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_item_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_item_status.rb +24 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_request.rb +128 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_restore_operation_type.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_schedule.rb +116 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/billing_meter.rb +137 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/billing_meter_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/built_in_authentication_provider.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/capability.rb +68 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate.rb +335 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_details.rb +143 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_email.rb +92 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_order_action.rb +101 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_order_action_type.rb +28 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_order_status.rb +24 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_patch_resource.rb +311 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_product_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/channels.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/check_name_resource_types.rb +22 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/clone_ability_result.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/cloning_info.rb +170 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/compute_mode_options.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/conn_string_info.rb +71 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb +60 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/connection_string_dictionary.rb +90 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/connection_string_type.rb +25 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/contact.rb +138 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/continuous_web_job.rb +192 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/continuous_web_job_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/continuous_web_job_status.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/cors_settings.rb +56 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_move_resource_envelope.rb +71 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_operation_description.rb +82 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_operation_description_properties.rb +47 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_operation_display.rb +79 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb +49 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_slot_entity.rb +58 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_usage_quota.rb +91 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/custom_host_name_dns_record_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/custom_hostname_analysis_result.rb +249 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/data_source.rb +74 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/data_table_response_column.rb +68 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/data_table_response_object.rb +94 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/database_backup_setting.rb +84 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/database_type.rb +18 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/default_error_response.rb +48 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/default_error_response_error.rb +104 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/default_error_response_error_details_item.rb +72 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/deleted_app_restore_request.rb +107 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/deleted_site.rb +107 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/deployment.rb +170 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/deployment_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/deployment_locations.rb +98 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_abnormal_time_period.rb +153 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_definition.rb +118 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_info.rb +83 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_response.rb +102 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_response_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_analysis.rb +153 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_analysis_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_category.rb +82 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_category_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_data.rb +60 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_detector_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_detector_response.rb +197 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_metric_sample.rb +109 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_metric_set.rb +113 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/dimension.rb +81 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/dns_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/dns_verification_test_result.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain.rb +372 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_availablility_check_result.rb +73 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_control_center_sso_request.rb +72 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_ownership_identifier.rb +81 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_patch_resource.rb +348 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_purchase_consent.rb +79 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb +58 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_status.rb +35 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/enabled_config.rb +47 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/error_entity.rb +118 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/experiments.rb +55 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/file_system_application_logs_config.rb +49 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/file_system_http_logs_config.rb +78 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/frequency_unit.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/ftps_state.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/function_envelope.rb +177 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/function_envelope_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/function_secrets.rb +92 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/geo_region.rb +94 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/geo_region_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/global_csm_sku_description.rb +131 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/handler_mapping.rb +73 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name.rb +119 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name_binding.rb +179 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name_binding_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name_ssl_state.rb +106 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/host_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/hosting_environment_deployment_info.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/hosting_environment_diagnostics.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/hosting_environment_profile.rb +70 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/hosting_environment_status.rb +18 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/http_logs_config.rb +61 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/hybrid_connection.rb +163 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/hybrid_connection_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/hybrid_connection_key.rb +95 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/hybrid_connection_limits.rb +95 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/identifier.rb +81 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/identifier_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/in_availability_reason_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/internal_load_balancing_mode.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/ip_filter_tag.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/ip_security_restriction.rb +120 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/issue_type.rb +22 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/key_vault_secret_status.rb +25 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/localizable_string.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/log_level.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/log_specification.rb +68 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/managed_pipeline_mode.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/managed_service_identity.rb +91 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/managed_service_identity_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/metric_availabilily.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/metric_availability.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/metric_definition.rb +128 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/metric_specification.rb +218 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/migrate_my_sql_request.rb +94 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/migrate_my_sql_status.rb +108 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy.rb +165 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy_log.rb +91 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy_log_entry.rb +73 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy_log_entry_type.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy_provisioning_state.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/msdeploy_status.rb +132 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/my_sql_migration_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/name_identifier.rb +46 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/name_identifier_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/name_value_pair.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/network_access_control_entry.rb +81 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/network_features.rb +140 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/notification_level.rb +18 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/operation.rb +135 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/operation_status.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/perf_mon_response.rb +69 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/perf_mon_sample.rb +68 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/perf_mon_set.rb +100 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/premier_add_on.rb +149 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/premier_add_on_offer.rb +184 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/premier_add_on_patch_resource.rb +125 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/private_access.rb +102 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/private_access_subnet.rb +58 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/private_access_virtual_network.rb +91 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/process_info.rb +509 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/process_info_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/process_module_info.rb +192 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/process_module_info_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/process_thread_info.rb +214 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/process_thread_info_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/provisioning_state.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/proxy_only_resource.rb +83 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/public_certificate.rb +106 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/public_certificate_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/public_certificate_location.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/publishing_profile_format.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/push_settings.rb +123 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/ramp_up_rule.rb +141 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/recommendation.rb +360 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/recommendation_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/recommendation_rule.rb +237 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb +116 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/relay_service_connection_entity.rb +147 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/rendering.rb +71 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/rendering_type.rb +18 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/renew_certificate_order_request.rb +104 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/requests_based_trigger.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource.rb +112 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_collection.rb +98 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric.rb +163 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_availability.rb +59 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_definition.rb +148 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_name.rb +59 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_property.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_value.rb +129 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_name_availability.rb +78 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_name_availability_request.rb +71 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_scope_type.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/response_meta_data.rb +48 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/restore_request.rb +217 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/route_type.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/scm_type.rb +27 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/service_specification.rb +76 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site.rb +554 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb +477 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_availability_state.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_cloneability.rb +113 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_cloneability_criterion.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config.rb +676 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config_resource.rb +711 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config_resource_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info.rb +94 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info_collection.rb +101 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_extension_info.rb +301 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_extension_info_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_extension_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_instance.rb +82 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_limits.rb +68 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_load_balancing.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_logs_config.rb +118 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_machine_key.rb +79 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_patch_resource.rb +518 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_php_error_log_flag.rb +114 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_seal.rb +46 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_seal_request.rb +58 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_source_control.rb +129 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_capacity.rb +83 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_description.rb +142 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_info.rb +70 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_info_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_infos.rb +67 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_name.rb +22 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_config_names_resource.rb +108 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_difference.rb +157 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_difference_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_swap_status.rb +71 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb +68 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/snapshot.rb +82 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_collection.rb +100 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_recovery_source.rb +62 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_restore_request.rb +133 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/solution.rb +148 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/solution_type.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/source_control.rb +114 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/source_control_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/ssl_state.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/stack_major_version.rb +90 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/stack_minor_version.rb +69 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/stamp_capacity.rb +167 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/status_codes_based_trigger.rb +90 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/status_options.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/storage_migration_options.rb +119 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/storage_migration_response.rb +83 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/string_dictionary.rb +89 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/supported_tls_versions.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/swift_virtual_network.rb +96 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/tld_legal_agreement.rb +79 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/top_level_domain.rb +82 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb +61 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/top_level_domain_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_job_history.rb +91 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_job_history_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_job_run.rb +193 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_web_job.rb +191 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_web_job_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_web_job_status.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/unauthenticated_client_action.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/usage.rb +168 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/usage_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/usage_state.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/user.rb +125 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/validate_request.rb +155 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/validate_resource_types.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/validate_response.rb +59 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/validate_response_error.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/virtual_application.rb +90 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/virtual_directory.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/virtual_ipmapping.rb +79 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/virtual_network_profile.rb +81 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_gateway.rb +93 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_info.rb +153 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_parameters.rb +103 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_route.rb +115 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_validation_failure_details.rb +102 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/vnet_validation_test_failure.rb +93 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/web_app_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/web_app_instance_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/web_job.rb +157 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/web_job_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/web_job_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/worker_pool.rb +102 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/worker_pool_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/worker_pool_resource.rb +149 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/worker_size_options.rb +21 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/module_definition.rb +9 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/provider.rb +661 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/recommendations.rb +1331 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/top_level_domains.rb +566 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/web_apps.rb +45908 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/web_site_management_client.rb +2701 -0
- data/lib/azure_mgmt_web.rb +3 -2
- data/lib/profiles/latest/modules/web_profile_module.rb +1045 -969
- data/lib/version.rb +1 -1
- metadata +382 -5
@@ -0,0 +1,2701 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Web::Mgmt::V2018_02_01
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class WebSiteManagementClient < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] Your Azure subscription ID. This is a GUID-formatted
|
21
|
+
# string (e.g. 00000000-0000-0000-0000-000000000000).
|
22
|
+
attr_accessor :subscription_id
|
23
|
+
|
24
|
+
# @return [String] API Version
|
25
|
+
attr_reader :api_version
|
26
|
+
|
27
|
+
# @return [String] The preferred language for the response.
|
28
|
+
attr_accessor :accept_language
|
29
|
+
|
30
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
31
|
+
# Operations. Default value is 30.
|
32
|
+
attr_accessor :long_running_operation_retry_timeout
|
33
|
+
|
34
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
35
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
36
|
+
# generated and included in each request. Default is true.
|
37
|
+
attr_accessor :generate_client_request_id
|
38
|
+
|
39
|
+
# @return [AppServiceCertificateOrders] app_service_certificate_orders
|
40
|
+
attr_reader :app_service_certificate_orders
|
41
|
+
|
42
|
+
# @return [CertificateRegistrationProvider]
|
43
|
+
# certificate_registration_provider
|
44
|
+
attr_reader :certificate_registration_provider
|
45
|
+
|
46
|
+
# @return [Domains] domains
|
47
|
+
attr_reader :domains
|
48
|
+
|
49
|
+
# @return [TopLevelDomains] top_level_domains
|
50
|
+
attr_reader :top_level_domains
|
51
|
+
|
52
|
+
# @return [DomainRegistrationProvider] domain_registration_provider
|
53
|
+
attr_reader :domain_registration_provider
|
54
|
+
|
55
|
+
# @return [Certificates] certificates
|
56
|
+
attr_reader :certificates
|
57
|
+
|
58
|
+
# @return [DeletedWebApps] deleted_web_apps
|
59
|
+
attr_reader :deleted_web_apps
|
60
|
+
|
61
|
+
# @return [Diagnostics] diagnostics
|
62
|
+
attr_reader :diagnostics
|
63
|
+
|
64
|
+
# @return [Provider] provider
|
65
|
+
attr_reader :provider
|
66
|
+
|
67
|
+
# @return [Recommendations] recommendations
|
68
|
+
attr_reader :recommendations
|
69
|
+
|
70
|
+
# @return [WebApps] web_apps
|
71
|
+
attr_reader :web_apps
|
72
|
+
|
73
|
+
# @return [AppServiceEnvironments] app_service_environments
|
74
|
+
attr_reader :app_service_environments
|
75
|
+
|
76
|
+
# @return [AppServicePlans] app_service_plans
|
77
|
+
attr_reader :app_service_plans
|
78
|
+
|
79
|
+
#
|
80
|
+
# Creates initializes a new instance of the WebSiteManagementClient class.
|
81
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
82
|
+
# @param base_url [String] the base URI of the service.
|
83
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
84
|
+
#
|
85
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
86
|
+
super(credentials, options)
|
87
|
+
@base_url = base_url || 'https://management.azure.com'
|
88
|
+
|
89
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
90
|
+
@credentials = credentials
|
91
|
+
|
92
|
+
@app_service_certificate_orders = AppServiceCertificateOrders.new(self)
|
93
|
+
@certificate_registration_provider = CertificateRegistrationProvider.new(self)
|
94
|
+
@domains = Domains.new(self)
|
95
|
+
@top_level_domains = TopLevelDomains.new(self)
|
96
|
+
@domain_registration_provider = DomainRegistrationProvider.new(self)
|
97
|
+
@certificates = Certificates.new(self)
|
98
|
+
@deleted_web_apps = DeletedWebApps.new(self)
|
99
|
+
@diagnostics = Diagnostics.new(self)
|
100
|
+
@provider = Provider.new(self)
|
101
|
+
@recommendations = Recommendations.new(self)
|
102
|
+
@web_apps = WebApps.new(self)
|
103
|
+
@app_service_environments = AppServiceEnvironments.new(self)
|
104
|
+
@app_service_plans = AppServicePlans.new(self)
|
105
|
+
@api_version = '2018-02-01'
|
106
|
+
@accept_language = 'en-US'
|
107
|
+
@long_running_operation_retry_timeout = 30
|
108
|
+
@generate_client_request_id = true
|
109
|
+
add_telemetry
|
110
|
+
end
|
111
|
+
|
112
|
+
#
|
113
|
+
# Makes a request and returns the body of the response.
|
114
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
115
|
+
# @param path [String] the path, relative to {base_url}.
|
116
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
117
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
118
|
+
# Example:
|
119
|
+
#
|
120
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
121
|
+
# path = "/path"
|
122
|
+
# options = {
|
123
|
+
# body: request_content,
|
124
|
+
# query_params: {'api-version' => '2016-02-01'}
|
125
|
+
# }
|
126
|
+
# result = @client.make_request(:put, path, options)
|
127
|
+
#
|
128
|
+
def make_request(method, path, options = {})
|
129
|
+
result = make_request_with_http_info(method, path, options)
|
130
|
+
result.body unless result.nil?
|
131
|
+
end
|
132
|
+
|
133
|
+
#
|
134
|
+
# Makes a request and returns the operation response.
|
135
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
136
|
+
# @param path [String] the path, relative to {base_url}.
|
137
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
138
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
139
|
+
#
|
140
|
+
def make_request_with_http_info(method, path, options = {})
|
141
|
+
result = make_request_async(method, path, options).value!
|
142
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
143
|
+
result
|
144
|
+
end
|
145
|
+
|
146
|
+
#
|
147
|
+
# Makes a request asynchronously.
|
148
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
149
|
+
# @param path [String] the path, relative to {base_url}.
|
150
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
151
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
152
|
+
#
|
153
|
+
def make_request_async(method, path, options = {})
|
154
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
155
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
156
|
+
|
157
|
+
request_url = options[:base_url] || @base_url
|
158
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
159
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
160
|
+
end
|
161
|
+
|
162
|
+
request_headers = @request_headers
|
163
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
164
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
165
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
166
|
+
|
167
|
+
super(request_url, method, path, options)
|
168
|
+
end
|
169
|
+
|
170
|
+
#
|
171
|
+
# Gets publishing user
|
172
|
+
#
|
173
|
+
# Gets publishing user
|
174
|
+
#
|
175
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
176
|
+
# will be added to the HTTP request.
|
177
|
+
#
|
178
|
+
# @return [User] operation results.
|
179
|
+
#
|
180
|
+
def get_publishing_user(custom_headers:nil)
|
181
|
+
response = get_publishing_user_async(custom_headers:custom_headers).value!
|
182
|
+
response.body unless response.nil?
|
183
|
+
end
|
184
|
+
|
185
|
+
#
|
186
|
+
# Gets publishing user
|
187
|
+
#
|
188
|
+
# Gets publishing user
|
189
|
+
#
|
190
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
191
|
+
# will be added to the HTTP request.
|
192
|
+
#
|
193
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
194
|
+
#
|
195
|
+
def get_publishing_user_with_http_info(custom_headers:nil)
|
196
|
+
get_publishing_user_async(custom_headers:custom_headers).value!
|
197
|
+
end
|
198
|
+
|
199
|
+
#
|
200
|
+
# Gets publishing user
|
201
|
+
#
|
202
|
+
# Gets publishing user
|
203
|
+
#
|
204
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
205
|
+
# to the HTTP request.
|
206
|
+
#
|
207
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
208
|
+
#
|
209
|
+
def get_publishing_user_async(custom_headers:nil)
|
210
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
211
|
+
|
212
|
+
|
213
|
+
request_headers = {}
|
214
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
215
|
+
|
216
|
+
# Set Headers
|
217
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
218
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
219
|
+
path_template = 'providers/Microsoft.Web/publishingUsers/web'
|
220
|
+
|
221
|
+
request_url = @base_url || self.base_url
|
222
|
+
|
223
|
+
options = {
|
224
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
225
|
+
query_params: {'api-version' => api_version},
|
226
|
+
headers: request_headers.merge(custom_headers || {}),
|
227
|
+
base_url: request_url
|
228
|
+
}
|
229
|
+
promise = self.make_request_async(:get, path_template, options)
|
230
|
+
|
231
|
+
promise = promise.then do |result|
|
232
|
+
http_response = result.response
|
233
|
+
status_code = http_response.status
|
234
|
+
response_content = http_response.body
|
235
|
+
unless status_code == 200
|
236
|
+
error_model = JSON.load(response_content)
|
237
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
238
|
+
end
|
239
|
+
|
240
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
241
|
+
# Deserialize Response
|
242
|
+
if status_code == 200
|
243
|
+
begin
|
244
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
245
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::User.mapper()
|
246
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
247
|
+
rescue Exception => e
|
248
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
result
|
253
|
+
end
|
254
|
+
|
255
|
+
promise.execute
|
256
|
+
end
|
257
|
+
|
258
|
+
#
|
259
|
+
# Updates publishing user
|
260
|
+
#
|
261
|
+
# Updates publishing user
|
262
|
+
#
|
263
|
+
# @param user_details [User] Details of publishing user
|
264
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
265
|
+
# will be added to the HTTP request.
|
266
|
+
#
|
267
|
+
# @return [User] operation results.
|
268
|
+
#
|
269
|
+
def update_publishing_user(user_details, custom_headers:nil)
|
270
|
+
response = update_publishing_user_async(user_details, custom_headers:custom_headers).value!
|
271
|
+
response.body unless response.nil?
|
272
|
+
end
|
273
|
+
|
274
|
+
#
|
275
|
+
# Updates publishing user
|
276
|
+
#
|
277
|
+
# Updates publishing user
|
278
|
+
#
|
279
|
+
# @param user_details [User] Details of publishing user
|
280
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
281
|
+
# will be added to the HTTP request.
|
282
|
+
#
|
283
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
284
|
+
#
|
285
|
+
def update_publishing_user_with_http_info(user_details, custom_headers:nil)
|
286
|
+
update_publishing_user_async(user_details, custom_headers:custom_headers).value!
|
287
|
+
end
|
288
|
+
|
289
|
+
#
|
290
|
+
# Updates publishing user
|
291
|
+
#
|
292
|
+
# Updates publishing user
|
293
|
+
#
|
294
|
+
# @param user_details [User] Details of publishing user
|
295
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
296
|
+
# to the HTTP request.
|
297
|
+
#
|
298
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
299
|
+
#
|
300
|
+
def update_publishing_user_async(user_details, custom_headers:nil)
|
301
|
+
fail ArgumentError, 'user_details is nil' if user_details.nil?
|
302
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
303
|
+
|
304
|
+
|
305
|
+
request_headers = {}
|
306
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
307
|
+
|
308
|
+
# Set Headers
|
309
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
310
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
311
|
+
|
312
|
+
# Serialize Request
|
313
|
+
request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::User.mapper()
|
314
|
+
request_content = self.serialize(request_mapper, user_details)
|
315
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
316
|
+
|
317
|
+
path_template = 'providers/Microsoft.Web/publishingUsers/web'
|
318
|
+
|
319
|
+
request_url = @base_url || self.base_url
|
320
|
+
|
321
|
+
options = {
|
322
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
323
|
+
query_params: {'api-version' => api_version},
|
324
|
+
body: request_content,
|
325
|
+
headers: request_headers.merge(custom_headers || {}),
|
326
|
+
base_url: request_url
|
327
|
+
}
|
328
|
+
promise = self.make_request_async(:put, path_template, options)
|
329
|
+
|
330
|
+
promise = promise.then do |result|
|
331
|
+
http_response = result.response
|
332
|
+
status_code = http_response.status
|
333
|
+
response_content = http_response.body
|
334
|
+
unless status_code == 200
|
335
|
+
error_model = JSON.load(response_content)
|
336
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
337
|
+
end
|
338
|
+
|
339
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
340
|
+
# Deserialize Response
|
341
|
+
if status_code == 200
|
342
|
+
begin
|
343
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
344
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::User.mapper()
|
345
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
346
|
+
rescue Exception => e
|
347
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
348
|
+
end
|
349
|
+
end
|
350
|
+
|
351
|
+
result
|
352
|
+
end
|
353
|
+
|
354
|
+
promise.execute
|
355
|
+
end
|
356
|
+
|
357
|
+
#
|
358
|
+
# Gets the source controls available for Azure websites.
|
359
|
+
#
|
360
|
+
# Gets the source controls available for Azure websites.
|
361
|
+
#
|
362
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
363
|
+
# will be added to the HTTP request.
|
364
|
+
#
|
365
|
+
# @return [Array<SourceControl>] operation results.
|
366
|
+
#
|
367
|
+
def list_source_controls(custom_headers:nil)
|
368
|
+
first_page = list_source_controls_as_lazy(custom_headers:custom_headers)
|
369
|
+
first_page.get_all_items
|
370
|
+
end
|
371
|
+
|
372
|
+
#
|
373
|
+
# Gets the source controls available for Azure websites.
|
374
|
+
#
|
375
|
+
# Gets the source controls available for Azure websites.
|
376
|
+
#
|
377
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
378
|
+
# will be added to the HTTP request.
|
379
|
+
#
|
380
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
381
|
+
#
|
382
|
+
def list_source_controls_with_http_info(custom_headers:nil)
|
383
|
+
list_source_controls_async(custom_headers:custom_headers).value!
|
384
|
+
end
|
385
|
+
|
386
|
+
#
|
387
|
+
# Gets the source controls available for Azure websites.
|
388
|
+
#
|
389
|
+
# Gets the source controls available for Azure websites.
|
390
|
+
#
|
391
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
392
|
+
# to the HTTP request.
|
393
|
+
#
|
394
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
395
|
+
#
|
396
|
+
def list_source_controls_async(custom_headers:nil)
|
397
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
398
|
+
|
399
|
+
|
400
|
+
request_headers = {}
|
401
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
402
|
+
|
403
|
+
# Set Headers
|
404
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
405
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
406
|
+
path_template = 'providers/Microsoft.Web/sourcecontrols'
|
407
|
+
|
408
|
+
request_url = @base_url || self.base_url
|
409
|
+
|
410
|
+
options = {
|
411
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
412
|
+
query_params: {'api-version' => api_version},
|
413
|
+
headers: request_headers.merge(custom_headers || {}),
|
414
|
+
base_url: request_url
|
415
|
+
}
|
416
|
+
promise = self.make_request_async(:get, path_template, options)
|
417
|
+
|
418
|
+
promise = promise.then do |result|
|
419
|
+
http_response = result.response
|
420
|
+
status_code = http_response.status
|
421
|
+
response_content = http_response.body
|
422
|
+
unless status_code == 200
|
423
|
+
error_model = JSON.load(response_content)
|
424
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
425
|
+
end
|
426
|
+
|
427
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
428
|
+
# Deserialize Response
|
429
|
+
if status_code == 200
|
430
|
+
begin
|
431
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
432
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::SourceControlCollection.mapper()
|
433
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
434
|
+
rescue Exception => e
|
435
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
436
|
+
end
|
437
|
+
end
|
438
|
+
|
439
|
+
result
|
440
|
+
end
|
441
|
+
|
442
|
+
promise.execute
|
443
|
+
end
|
444
|
+
|
445
|
+
#
|
446
|
+
# Gets source control token
|
447
|
+
#
|
448
|
+
# Gets source control token
|
449
|
+
#
|
450
|
+
# @param source_control_type [String] Type of source control
|
451
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
452
|
+
# will be added to the HTTP request.
|
453
|
+
#
|
454
|
+
# @return [SourceControl] operation results.
|
455
|
+
#
|
456
|
+
def get_source_control(source_control_type, custom_headers:nil)
|
457
|
+
response = get_source_control_async(source_control_type, custom_headers:custom_headers).value!
|
458
|
+
response.body unless response.nil?
|
459
|
+
end
|
460
|
+
|
461
|
+
#
|
462
|
+
# Gets source control token
|
463
|
+
#
|
464
|
+
# Gets source control token
|
465
|
+
#
|
466
|
+
# @param source_control_type [String] Type of source control
|
467
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
468
|
+
# will be added to the HTTP request.
|
469
|
+
#
|
470
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
471
|
+
#
|
472
|
+
def get_source_control_with_http_info(source_control_type, custom_headers:nil)
|
473
|
+
get_source_control_async(source_control_type, custom_headers:custom_headers).value!
|
474
|
+
end
|
475
|
+
|
476
|
+
#
|
477
|
+
# Gets source control token
|
478
|
+
#
|
479
|
+
# Gets source control token
|
480
|
+
#
|
481
|
+
# @param source_control_type [String] Type of source control
|
482
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
483
|
+
# to the HTTP request.
|
484
|
+
#
|
485
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
486
|
+
#
|
487
|
+
def get_source_control_async(source_control_type, custom_headers:nil)
|
488
|
+
fail ArgumentError, 'source_control_type is nil' if source_control_type.nil?
|
489
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
490
|
+
|
491
|
+
|
492
|
+
request_headers = {}
|
493
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
494
|
+
|
495
|
+
# Set Headers
|
496
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
497
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
498
|
+
path_template = 'providers/Microsoft.Web/sourcecontrols/{sourceControlType}'
|
499
|
+
|
500
|
+
request_url = @base_url || self.base_url
|
501
|
+
|
502
|
+
options = {
|
503
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
504
|
+
path_params: {'sourceControlType' => source_control_type},
|
505
|
+
query_params: {'api-version' => api_version},
|
506
|
+
headers: request_headers.merge(custom_headers || {}),
|
507
|
+
base_url: request_url
|
508
|
+
}
|
509
|
+
promise = self.make_request_async(:get, path_template, options)
|
510
|
+
|
511
|
+
promise = promise.then do |result|
|
512
|
+
http_response = result.response
|
513
|
+
status_code = http_response.status
|
514
|
+
response_content = http_response.body
|
515
|
+
unless status_code == 200
|
516
|
+
error_model = JSON.load(response_content)
|
517
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
518
|
+
end
|
519
|
+
|
520
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
521
|
+
# Deserialize Response
|
522
|
+
if status_code == 200
|
523
|
+
begin
|
524
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
525
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::SourceControl.mapper()
|
526
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
527
|
+
rescue Exception => e
|
528
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
529
|
+
end
|
530
|
+
end
|
531
|
+
|
532
|
+
result
|
533
|
+
end
|
534
|
+
|
535
|
+
promise.execute
|
536
|
+
end
|
537
|
+
|
538
|
+
#
|
539
|
+
# Updates source control token
|
540
|
+
#
|
541
|
+
# Updates source control token
|
542
|
+
#
|
543
|
+
# @param source_control_type [String] Type of source control
|
544
|
+
# @param request_message [SourceControl] Source control token information
|
545
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
546
|
+
# will be added to the HTTP request.
|
547
|
+
#
|
548
|
+
# @return [SourceControl] operation results.
|
549
|
+
#
|
550
|
+
def update_source_control(source_control_type, request_message, custom_headers:nil)
|
551
|
+
response = update_source_control_async(source_control_type, request_message, custom_headers:custom_headers).value!
|
552
|
+
response.body unless response.nil?
|
553
|
+
end
|
554
|
+
|
555
|
+
#
|
556
|
+
# Updates source control token
|
557
|
+
#
|
558
|
+
# Updates source control token
|
559
|
+
#
|
560
|
+
# @param source_control_type [String] Type of source control
|
561
|
+
# @param request_message [SourceControl] Source control token information
|
562
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
563
|
+
# will be added to the HTTP request.
|
564
|
+
#
|
565
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
566
|
+
#
|
567
|
+
def update_source_control_with_http_info(source_control_type, request_message, custom_headers:nil)
|
568
|
+
update_source_control_async(source_control_type, request_message, custom_headers:custom_headers).value!
|
569
|
+
end
|
570
|
+
|
571
|
+
#
|
572
|
+
# Updates source control token
|
573
|
+
#
|
574
|
+
# Updates source control token
|
575
|
+
#
|
576
|
+
# @param source_control_type [String] Type of source control
|
577
|
+
# @param request_message [SourceControl] Source control token information
|
578
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
579
|
+
# to the HTTP request.
|
580
|
+
#
|
581
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
582
|
+
#
|
583
|
+
def update_source_control_async(source_control_type, request_message, custom_headers:nil)
|
584
|
+
fail ArgumentError, 'source_control_type is nil' if source_control_type.nil?
|
585
|
+
fail ArgumentError, 'request_message is nil' if request_message.nil?
|
586
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
587
|
+
|
588
|
+
|
589
|
+
request_headers = {}
|
590
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
591
|
+
|
592
|
+
# Set Headers
|
593
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
594
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
595
|
+
|
596
|
+
# Serialize Request
|
597
|
+
request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::SourceControl.mapper()
|
598
|
+
request_content = self.serialize(request_mapper, request_message)
|
599
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
600
|
+
|
601
|
+
path_template = 'providers/Microsoft.Web/sourcecontrols/{sourceControlType}'
|
602
|
+
|
603
|
+
request_url = @base_url || self.base_url
|
604
|
+
|
605
|
+
options = {
|
606
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
607
|
+
path_params: {'sourceControlType' => source_control_type},
|
608
|
+
query_params: {'api-version' => api_version},
|
609
|
+
body: request_content,
|
610
|
+
headers: request_headers.merge(custom_headers || {}),
|
611
|
+
base_url: request_url
|
612
|
+
}
|
613
|
+
promise = self.make_request_async(:put, path_template, options)
|
614
|
+
|
615
|
+
promise = promise.then do |result|
|
616
|
+
http_response = result.response
|
617
|
+
status_code = http_response.status
|
618
|
+
response_content = http_response.body
|
619
|
+
unless status_code == 200
|
620
|
+
error_model = JSON.load(response_content)
|
621
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
622
|
+
end
|
623
|
+
|
624
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
625
|
+
# Deserialize Response
|
626
|
+
if status_code == 200
|
627
|
+
begin
|
628
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
629
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::SourceControl.mapper()
|
630
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
631
|
+
rescue Exception => e
|
632
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
633
|
+
end
|
634
|
+
end
|
635
|
+
|
636
|
+
result
|
637
|
+
end
|
638
|
+
|
639
|
+
promise.execute
|
640
|
+
end
|
641
|
+
|
642
|
+
#
|
643
|
+
# Gets a list of meters for a given location.
|
644
|
+
#
|
645
|
+
# Gets a list of meters for a given location.
|
646
|
+
#
|
647
|
+
# @param billing_location [String] Azure Location of billable resource
|
648
|
+
# @param os_type [String] App Service OS type meters used for
|
649
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
650
|
+
# will be added to the HTTP request.
|
651
|
+
#
|
652
|
+
# @return [Array<BillingMeter>] operation results.
|
653
|
+
#
|
654
|
+
def list_billing_meters(billing_location:nil, os_type:nil, custom_headers:nil)
|
655
|
+
first_page = list_billing_meters_as_lazy(billing_location:billing_location, os_type:os_type, custom_headers:custom_headers)
|
656
|
+
first_page.get_all_items
|
657
|
+
end
|
658
|
+
|
659
|
+
#
|
660
|
+
# Gets a list of meters for a given location.
|
661
|
+
#
|
662
|
+
# Gets a list of meters for a given location.
|
663
|
+
#
|
664
|
+
# @param billing_location [String] Azure Location of billable resource
|
665
|
+
# @param os_type [String] App Service OS type meters used for
|
666
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
667
|
+
# will be added to the HTTP request.
|
668
|
+
#
|
669
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
670
|
+
#
|
671
|
+
def list_billing_meters_with_http_info(billing_location:nil, os_type:nil, custom_headers:nil)
|
672
|
+
list_billing_meters_async(billing_location:billing_location, os_type:os_type, custom_headers:custom_headers).value!
|
673
|
+
end
|
674
|
+
|
675
|
+
#
|
676
|
+
# Gets a list of meters for a given location.
|
677
|
+
#
|
678
|
+
# Gets a list of meters for a given location.
|
679
|
+
#
|
680
|
+
# @param billing_location [String] Azure Location of billable resource
|
681
|
+
# @param os_type [String] App Service OS type meters used for
|
682
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
683
|
+
# to the HTTP request.
|
684
|
+
#
|
685
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
686
|
+
#
|
687
|
+
def list_billing_meters_async(billing_location:nil, os_type:nil, custom_headers:nil)
|
688
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
689
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
690
|
+
|
691
|
+
|
692
|
+
request_headers = {}
|
693
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
694
|
+
|
695
|
+
# Set Headers
|
696
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
697
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
698
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/billingMeters'
|
699
|
+
|
700
|
+
request_url = @base_url || self.base_url
|
701
|
+
|
702
|
+
options = {
|
703
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
704
|
+
path_params: {'subscriptionId' => subscription_id},
|
705
|
+
query_params: {'billingLocation' => billing_location,'osType' => os_type,'api-version' => api_version},
|
706
|
+
headers: request_headers.merge(custom_headers || {}),
|
707
|
+
base_url: request_url
|
708
|
+
}
|
709
|
+
promise = self.make_request_async(:get, path_template, options)
|
710
|
+
|
711
|
+
promise = promise.then do |result|
|
712
|
+
http_response = result.response
|
713
|
+
status_code = http_response.status
|
714
|
+
response_content = http_response.body
|
715
|
+
unless status_code == 200
|
716
|
+
error_model = JSON.load(response_content)
|
717
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
718
|
+
end
|
719
|
+
|
720
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
721
|
+
# Deserialize Response
|
722
|
+
if status_code == 200
|
723
|
+
begin
|
724
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
725
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::BillingMeterCollection.mapper()
|
726
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
727
|
+
rescue Exception => e
|
728
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
729
|
+
end
|
730
|
+
end
|
731
|
+
|
732
|
+
result
|
733
|
+
end
|
734
|
+
|
735
|
+
promise.execute
|
736
|
+
end
|
737
|
+
|
738
|
+
#
|
739
|
+
# Check if a resource name is available.
|
740
|
+
#
|
741
|
+
# Check if a resource name is available.
|
742
|
+
#
|
743
|
+
# @param name [String] Resource name to verify.
|
744
|
+
# @param type [CheckNameResourceTypes] Resource type used for verification.
|
745
|
+
# Possible values include: 'Site', 'Slot', 'HostingEnvironment',
|
746
|
+
# 'PublishingUser', 'Microsoft.Web/sites', 'Microsoft.Web/sites/slots',
|
747
|
+
# 'Microsoft.Web/hostingEnvironments', 'Microsoft.Web/publishingUsers'
|
748
|
+
# @param is_fqdn [Boolean] Is fully qualified domain name.
|
749
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
750
|
+
# will be added to the HTTP request.
|
751
|
+
#
|
752
|
+
# @return [ResourceNameAvailability] operation results.
|
753
|
+
#
|
754
|
+
def check_name_availability(name, type, is_fqdn:nil, custom_headers:nil)
|
755
|
+
response = check_name_availability_async(name, type, is_fqdn:is_fqdn, custom_headers:custom_headers).value!
|
756
|
+
response.body unless response.nil?
|
757
|
+
end
|
758
|
+
|
759
|
+
#
|
760
|
+
# Check if a resource name is available.
|
761
|
+
#
|
762
|
+
# Check if a resource name is available.
|
763
|
+
#
|
764
|
+
# @param name [String] Resource name to verify.
|
765
|
+
# @param type [CheckNameResourceTypes] Resource type used for verification.
|
766
|
+
# Possible values include: 'Site', 'Slot', 'HostingEnvironment',
|
767
|
+
# 'PublishingUser', 'Microsoft.Web/sites', 'Microsoft.Web/sites/slots',
|
768
|
+
# 'Microsoft.Web/hostingEnvironments', 'Microsoft.Web/publishingUsers'
|
769
|
+
# @param is_fqdn [Boolean] Is fully qualified domain name.
|
770
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
771
|
+
# will be added to the HTTP request.
|
772
|
+
#
|
773
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
774
|
+
#
|
775
|
+
def check_name_availability_with_http_info(name, type, is_fqdn:nil, custom_headers:nil)
|
776
|
+
check_name_availability_async(name, type, is_fqdn:is_fqdn, custom_headers:custom_headers).value!
|
777
|
+
end
|
778
|
+
|
779
|
+
#
|
780
|
+
# Check if a resource name is available.
|
781
|
+
#
|
782
|
+
# Check if a resource name is available.
|
783
|
+
#
|
784
|
+
# @param name [String] Resource name to verify.
|
785
|
+
# @param type [CheckNameResourceTypes] Resource type used for verification.
|
786
|
+
# Possible values include: 'Site', 'Slot', 'HostingEnvironment',
|
787
|
+
# 'PublishingUser', 'Microsoft.Web/sites', 'Microsoft.Web/sites/slots',
|
788
|
+
# 'Microsoft.Web/hostingEnvironments', 'Microsoft.Web/publishingUsers'
|
789
|
+
# @param is_fqdn [Boolean] Is fully qualified domain name.
|
790
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
791
|
+
# to the HTTP request.
|
792
|
+
#
|
793
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
794
|
+
#
|
795
|
+
def check_name_availability_async(name, type, is_fqdn:nil, custom_headers:nil)
|
796
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
797
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
798
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
799
|
+
fail ArgumentError, 'type is nil' if type.nil?
|
800
|
+
|
801
|
+
request = ResourceNameAvailabilityRequest.new
|
802
|
+
unless name.nil? && type.nil? && is_fqdn.nil?
|
803
|
+
request.name = name
|
804
|
+
request.type = type
|
805
|
+
request.is_fqdn = is_fqdn
|
806
|
+
end
|
807
|
+
|
808
|
+
request_headers = {}
|
809
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
810
|
+
|
811
|
+
# Set Headers
|
812
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
813
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
814
|
+
|
815
|
+
# Serialize Request
|
816
|
+
request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailabilityRequest.mapper()
|
817
|
+
request_content = self.serialize(request_mapper, request)
|
818
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
819
|
+
|
820
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/checknameavailability'
|
821
|
+
|
822
|
+
request_url = @base_url || self.base_url
|
823
|
+
|
824
|
+
options = {
|
825
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
826
|
+
path_params: {'subscriptionId' => subscription_id},
|
827
|
+
query_params: {'api-version' => api_version},
|
828
|
+
body: request_content,
|
829
|
+
headers: request_headers.merge(custom_headers || {}),
|
830
|
+
base_url: request_url
|
831
|
+
}
|
832
|
+
promise = self.make_request_async(:post, path_template, options)
|
833
|
+
|
834
|
+
promise = promise.then do |result|
|
835
|
+
http_response = result.response
|
836
|
+
status_code = http_response.status
|
837
|
+
response_content = http_response.body
|
838
|
+
unless status_code == 200
|
839
|
+
error_model = JSON.load(response_content)
|
840
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
841
|
+
end
|
842
|
+
|
843
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
844
|
+
# Deserialize Response
|
845
|
+
if status_code == 200
|
846
|
+
begin
|
847
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
848
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailability.mapper()
|
849
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
850
|
+
rescue Exception => e
|
851
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
852
|
+
end
|
853
|
+
end
|
854
|
+
|
855
|
+
result
|
856
|
+
end
|
857
|
+
|
858
|
+
promise.execute
|
859
|
+
end
|
860
|
+
|
861
|
+
#
|
862
|
+
# Gets list of available geo regions plus ministamps
|
863
|
+
#
|
864
|
+
# Gets list of available geo regions plus ministamps
|
865
|
+
#
|
866
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
867
|
+
# will be added to the HTTP request.
|
868
|
+
#
|
869
|
+
# @return [DeploymentLocations] operation results.
|
870
|
+
#
|
871
|
+
def get_subscription_deployment_locations(custom_headers:nil)
|
872
|
+
response = get_subscription_deployment_locations_async(custom_headers:custom_headers).value!
|
873
|
+
response.body unless response.nil?
|
874
|
+
end
|
875
|
+
|
876
|
+
#
|
877
|
+
# Gets list of available geo regions plus ministamps
|
878
|
+
#
|
879
|
+
# Gets list of available geo regions plus ministamps
|
880
|
+
#
|
881
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
882
|
+
# will be added to the HTTP request.
|
883
|
+
#
|
884
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
885
|
+
#
|
886
|
+
def get_subscription_deployment_locations_with_http_info(custom_headers:nil)
|
887
|
+
get_subscription_deployment_locations_async(custom_headers:custom_headers).value!
|
888
|
+
end
|
889
|
+
|
890
|
+
#
|
891
|
+
# Gets list of available geo regions plus ministamps
|
892
|
+
#
|
893
|
+
# Gets list of available geo regions plus ministamps
|
894
|
+
#
|
895
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
896
|
+
# to the HTTP request.
|
897
|
+
#
|
898
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
899
|
+
#
|
900
|
+
def get_subscription_deployment_locations_async(custom_headers:nil)
|
901
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
902
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
903
|
+
|
904
|
+
|
905
|
+
request_headers = {}
|
906
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
907
|
+
|
908
|
+
# Set Headers
|
909
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
910
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
911
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/deploymentLocations'
|
912
|
+
|
913
|
+
request_url = @base_url || self.base_url
|
914
|
+
|
915
|
+
options = {
|
916
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
917
|
+
path_params: {'subscriptionId' => subscription_id},
|
918
|
+
query_params: {'api-version' => api_version},
|
919
|
+
headers: request_headers.merge(custom_headers || {}),
|
920
|
+
base_url: request_url
|
921
|
+
}
|
922
|
+
promise = self.make_request_async(:get, path_template, options)
|
923
|
+
|
924
|
+
promise = promise.then do |result|
|
925
|
+
http_response = result.response
|
926
|
+
status_code = http_response.status
|
927
|
+
response_content = http_response.body
|
928
|
+
unless status_code == 200
|
929
|
+
error_model = JSON.load(response_content)
|
930
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
931
|
+
end
|
932
|
+
|
933
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
934
|
+
# Deserialize Response
|
935
|
+
if status_code == 200
|
936
|
+
begin
|
937
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
938
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::DeploymentLocations.mapper()
|
939
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
940
|
+
rescue Exception => e
|
941
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
942
|
+
end
|
943
|
+
end
|
944
|
+
|
945
|
+
result
|
946
|
+
end
|
947
|
+
|
948
|
+
promise.execute
|
949
|
+
end
|
950
|
+
|
951
|
+
#
|
952
|
+
# Get a list of available geographical regions.
|
953
|
+
#
|
954
|
+
# Get a list of available geographical regions.
|
955
|
+
#
|
956
|
+
# @param sku [SkuName] Name of SKU used to filter the regions. Possible values
|
957
|
+
# include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic',
|
958
|
+
# 'Isolated', 'PremiumV2'
|
959
|
+
# @param linux_workers_enabled [Boolean] Specify <code>true</code> if you want
|
960
|
+
# to filter to only regions that support Linux workers.
|
961
|
+
# @param xenon_workers_enabled [Boolean] Specify <code>true</code> if you want
|
962
|
+
# to filter to only regions that support Xenon workers.
|
963
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
964
|
+
# will be added to the HTTP request.
|
965
|
+
#
|
966
|
+
# @return [Array<GeoRegion>] operation results.
|
967
|
+
#
|
968
|
+
def list_geo_regions(sku:nil, linux_workers_enabled:nil, xenon_workers_enabled:nil, custom_headers:nil)
|
969
|
+
first_page = list_geo_regions_as_lazy(sku:sku, linux_workers_enabled:linux_workers_enabled, xenon_workers_enabled:xenon_workers_enabled, custom_headers:custom_headers)
|
970
|
+
first_page.get_all_items
|
971
|
+
end
|
972
|
+
|
973
|
+
#
|
974
|
+
# Get a list of available geographical regions.
|
975
|
+
#
|
976
|
+
# Get a list of available geographical regions.
|
977
|
+
#
|
978
|
+
# @param sku [SkuName] Name of SKU used to filter the regions. Possible values
|
979
|
+
# include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic',
|
980
|
+
# 'Isolated', 'PremiumV2'
|
981
|
+
# @param linux_workers_enabled [Boolean] Specify <code>true</code> if you want
|
982
|
+
# to filter to only regions that support Linux workers.
|
983
|
+
# @param xenon_workers_enabled [Boolean] Specify <code>true</code> if you want
|
984
|
+
# to filter to only regions that support Xenon workers.
|
985
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
986
|
+
# will be added to the HTTP request.
|
987
|
+
#
|
988
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
989
|
+
#
|
990
|
+
def list_geo_regions_with_http_info(sku:nil, linux_workers_enabled:nil, xenon_workers_enabled:nil, custom_headers:nil)
|
991
|
+
list_geo_regions_async(sku:sku, linux_workers_enabled:linux_workers_enabled, xenon_workers_enabled:xenon_workers_enabled, custom_headers:custom_headers).value!
|
992
|
+
end
|
993
|
+
|
994
|
+
#
|
995
|
+
# Get a list of available geographical regions.
|
996
|
+
#
|
997
|
+
# Get a list of available geographical regions.
|
998
|
+
#
|
999
|
+
# @param sku [SkuName] Name of SKU used to filter the regions. Possible values
|
1000
|
+
# include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic',
|
1001
|
+
# 'Isolated', 'PremiumV2'
|
1002
|
+
# @param linux_workers_enabled [Boolean] Specify <code>true</code> if you want
|
1003
|
+
# to filter to only regions that support Linux workers.
|
1004
|
+
# @param xenon_workers_enabled [Boolean] Specify <code>true</code> if you want
|
1005
|
+
# to filter to only regions that support Xenon workers.
|
1006
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1007
|
+
# to the HTTP request.
|
1008
|
+
#
|
1009
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1010
|
+
#
|
1011
|
+
def list_geo_regions_async(sku:nil, linux_workers_enabled:nil, xenon_workers_enabled:nil, custom_headers:nil)
|
1012
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
1013
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
1014
|
+
|
1015
|
+
|
1016
|
+
request_headers = {}
|
1017
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1018
|
+
|
1019
|
+
# Set Headers
|
1020
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1021
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
1022
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions'
|
1023
|
+
|
1024
|
+
request_url = @base_url || self.base_url
|
1025
|
+
|
1026
|
+
options = {
|
1027
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1028
|
+
path_params: {'subscriptionId' => subscription_id},
|
1029
|
+
query_params: {'sku' => sku,'linuxWorkersEnabled' => linux_workers_enabled,'xenonWorkersEnabled' => xenon_workers_enabled,'api-version' => api_version},
|
1030
|
+
headers: request_headers.merge(custom_headers || {}),
|
1031
|
+
base_url: request_url
|
1032
|
+
}
|
1033
|
+
promise = self.make_request_async(:get, path_template, options)
|
1034
|
+
|
1035
|
+
promise = promise.then do |result|
|
1036
|
+
http_response = result.response
|
1037
|
+
status_code = http_response.status
|
1038
|
+
response_content = http_response.body
|
1039
|
+
unless status_code == 200
|
1040
|
+
error_model = JSON.load(response_content)
|
1041
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1045
|
+
# Deserialize Response
|
1046
|
+
if status_code == 200
|
1047
|
+
begin
|
1048
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1049
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::GeoRegionCollection.mapper()
|
1050
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
1051
|
+
rescue Exception => e
|
1052
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1053
|
+
end
|
1054
|
+
end
|
1055
|
+
|
1056
|
+
result
|
1057
|
+
end
|
1058
|
+
|
1059
|
+
promise.execute
|
1060
|
+
end
|
1061
|
+
|
1062
|
+
#
|
1063
|
+
# List all apps that are assigned to a hostname.
|
1064
|
+
#
|
1065
|
+
# List all apps that are assigned to a hostname.
|
1066
|
+
#
|
1067
|
+
# @param name_identifier [NameIdentifier] Hostname information.
|
1068
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1069
|
+
# will be added to the HTTP request.
|
1070
|
+
#
|
1071
|
+
# @return [Array<Identifier>] operation results.
|
1072
|
+
#
|
1073
|
+
def list_site_identifiers_assigned_to_host_name(name_identifier, custom_headers:nil)
|
1074
|
+
first_page = list_site_identifiers_assigned_to_host_name_as_lazy(name_identifier, custom_headers:custom_headers)
|
1075
|
+
first_page.get_all_items
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
#
|
1079
|
+
# List all apps that are assigned to a hostname.
|
1080
|
+
#
|
1081
|
+
# List all apps that are assigned to a hostname.
|
1082
|
+
#
|
1083
|
+
# @param name_identifier [NameIdentifier] Hostname information.
|
1084
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1085
|
+
# will be added to the HTTP request.
|
1086
|
+
#
|
1087
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1088
|
+
#
|
1089
|
+
def list_site_identifiers_assigned_to_host_name_with_http_info(name_identifier, custom_headers:nil)
|
1090
|
+
list_site_identifiers_assigned_to_host_name_async(name_identifier, custom_headers:custom_headers).value!
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
#
|
1094
|
+
# List all apps that are assigned to a hostname.
|
1095
|
+
#
|
1096
|
+
# List all apps that are assigned to a hostname.
|
1097
|
+
#
|
1098
|
+
# @param name_identifier [NameIdentifier] Hostname information.
|
1099
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1100
|
+
# to the HTTP request.
|
1101
|
+
#
|
1102
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1103
|
+
#
|
1104
|
+
def list_site_identifiers_assigned_to_host_name_async(name_identifier, custom_headers:nil)
|
1105
|
+
fail ArgumentError, 'name_identifier is nil' if name_identifier.nil?
|
1106
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
1107
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
1108
|
+
|
1109
|
+
|
1110
|
+
request_headers = {}
|
1111
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1112
|
+
|
1113
|
+
# Set Headers
|
1114
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1115
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
1116
|
+
|
1117
|
+
# Serialize Request
|
1118
|
+
request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifier.mapper()
|
1119
|
+
request_content = self.serialize(request_mapper, name_identifier)
|
1120
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1121
|
+
|
1122
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/listSitesAssignedToHostName'
|
1123
|
+
|
1124
|
+
request_url = @base_url || self.base_url
|
1125
|
+
|
1126
|
+
options = {
|
1127
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1128
|
+
path_params: {'subscriptionId' => subscription_id},
|
1129
|
+
query_params: {'api-version' => api_version},
|
1130
|
+
body: request_content,
|
1131
|
+
headers: request_headers.merge(custom_headers || {}),
|
1132
|
+
base_url: request_url
|
1133
|
+
}
|
1134
|
+
promise = self.make_request_async(:post, path_template, options)
|
1135
|
+
|
1136
|
+
promise = promise.then do |result|
|
1137
|
+
http_response = result.response
|
1138
|
+
status_code = http_response.status
|
1139
|
+
response_content = http_response.body
|
1140
|
+
unless status_code == 200
|
1141
|
+
error_model = JSON.load(response_content)
|
1142
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1146
|
+
# Deserialize Response
|
1147
|
+
if status_code == 200
|
1148
|
+
begin
|
1149
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1150
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::IdentifierCollection.mapper()
|
1151
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
1152
|
+
rescue Exception => e
|
1153
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1154
|
+
end
|
1155
|
+
end
|
1156
|
+
|
1157
|
+
result
|
1158
|
+
end
|
1159
|
+
|
1160
|
+
promise.execute
|
1161
|
+
end
|
1162
|
+
|
1163
|
+
#
|
1164
|
+
# List all premier add-on offers.
|
1165
|
+
#
|
1166
|
+
# List all premier add-on offers.
|
1167
|
+
#
|
1168
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1169
|
+
# will be added to the HTTP request.
|
1170
|
+
#
|
1171
|
+
# @return [Array<PremierAddOnOffer>] operation results.
|
1172
|
+
#
|
1173
|
+
def list_premier_add_on_offers(custom_headers:nil)
|
1174
|
+
first_page = list_premier_add_on_offers_as_lazy(custom_headers:custom_headers)
|
1175
|
+
first_page.get_all_items
|
1176
|
+
end
|
1177
|
+
|
1178
|
+
#
|
1179
|
+
# List all premier add-on offers.
|
1180
|
+
#
|
1181
|
+
# List all premier add-on offers.
|
1182
|
+
#
|
1183
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1184
|
+
# will be added to the HTTP request.
|
1185
|
+
#
|
1186
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1187
|
+
#
|
1188
|
+
def list_premier_add_on_offers_with_http_info(custom_headers:nil)
|
1189
|
+
list_premier_add_on_offers_async(custom_headers:custom_headers).value!
|
1190
|
+
end
|
1191
|
+
|
1192
|
+
#
|
1193
|
+
# List all premier add-on offers.
|
1194
|
+
#
|
1195
|
+
# List all premier add-on offers.
|
1196
|
+
#
|
1197
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1198
|
+
# to the HTTP request.
|
1199
|
+
#
|
1200
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1201
|
+
#
|
1202
|
+
def list_premier_add_on_offers_async(custom_headers:nil)
|
1203
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
1204
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
1205
|
+
|
1206
|
+
|
1207
|
+
request_headers = {}
|
1208
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1209
|
+
|
1210
|
+
# Set Headers
|
1211
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1212
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
1213
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/premieraddonoffers'
|
1214
|
+
|
1215
|
+
request_url = @base_url || self.base_url
|
1216
|
+
|
1217
|
+
options = {
|
1218
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1219
|
+
path_params: {'subscriptionId' => subscription_id},
|
1220
|
+
query_params: {'api-version' => api_version},
|
1221
|
+
headers: request_headers.merge(custom_headers || {}),
|
1222
|
+
base_url: request_url
|
1223
|
+
}
|
1224
|
+
promise = self.make_request_async(:get, path_template, options)
|
1225
|
+
|
1226
|
+
promise = promise.then do |result|
|
1227
|
+
http_response = result.response
|
1228
|
+
status_code = http_response.status
|
1229
|
+
response_content = http_response.body
|
1230
|
+
unless status_code == 200
|
1231
|
+
error_model = JSON.load(response_content)
|
1232
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1233
|
+
end
|
1234
|
+
|
1235
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1236
|
+
# Deserialize Response
|
1237
|
+
if status_code == 200
|
1238
|
+
begin
|
1239
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1240
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnOfferCollection.mapper()
|
1241
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
1242
|
+
rescue Exception => e
|
1243
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1244
|
+
end
|
1245
|
+
end
|
1246
|
+
|
1247
|
+
result
|
1248
|
+
end
|
1249
|
+
|
1250
|
+
promise.execute
|
1251
|
+
end
|
1252
|
+
|
1253
|
+
#
|
1254
|
+
# List all SKUs.
|
1255
|
+
#
|
1256
|
+
# List all SKUs.
|
1257
|
+
#
|
1258
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1259
|
+
# will be added to the HTTP request.
|
1260
|
+
#
|
1261
|
+
# @return [SkuInfos] operation results.
|
1262
|
+
#
|
1263
|
+
def list_skus(custom_headers:nil)
|
1264
|
+
response = list_skus_async(custom_headers:custom_headers).value!
|
1265
|
+
response.body unless response.nil?
|
1266
|
+
end
|
1267
|
+
|
1268
|
+
#
|
1269
|
+
# List all SKUs.
|
1270
|
+
#
|
1271
|
+
# List all SKUs.
|
1272
|
+
#
|
1273
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1274
|
+
# will be added to the HTTP request.
|
1275
|
+
#
|
1276
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1277
|
+
#
|
1278
|
+
def list_skus_with_http_info(custom_headers:nil)
|
1279
|
+
list_skus_async(custom_headers:custom_headers).value!
|
1280
|
+
end
|
1281
|
+
|
1282
|
+
#
|
1283
|
+
# List all SKUs.
|
1284
|
+
#
|
1285
|
+
# List all SKUs.
|
1286
|
+
#
|
1287
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1288
|
+
# to the HTTP request.
|
1289
|
+
#
|
1290
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1291
|
+
#
|
1292
|
+
def list_skus_async(custom_headers:nil)
|
1293
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
1294
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
1295
|
+
|
1296
|
+
|
1297
|
+
request_headers = {}
|
1298
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1299
|
+
|
1300
|
+
# Set Headers
|
1301
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1302
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
1303
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/skus'
|
1304
|
+
|
1305
|
+
request_url = @base_url || self.base_url
|
1306
|
+
|
1307
|
+
options = {
|
1308
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1309
|
+
path_params: {'subscriptionId' => subscription_id},
|
1310
|
+
query_params: {'api-version' => api_version},
|
1311
|
+
headers: request_headers.merge(custom_headers || {}),
|
1312
|
+
base_url: request_url
|
1313
|
+
}
|
1314
|
+
promise = self.make_request_async(:get, path_template, options)
|
1315
|
+
|
1316
|
+
promise = promise.then do |result|
|
1317
|
+
http_response = result.response
|
1318
|
+
status_code = http_response.status
|
1319
|
+
response_content = http_response.body
|
1320
|
+
unless status_code == 200
|
1321
|
+
error_model = JSON.load(response_content)
|
1322
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1323
|
+
end
|
1324
|
+
|
1325
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1326
|
+
# Deserialize Response
|
1327
|
+
if status_code == 200
|
1328
|
+
begin
|
1329
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1330
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::SkuInfos.mapper()
|
1331
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
1332
|
+
rescue Exception => e
|
1333
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1334
|
+
end
|
1335
|
+
end
|
1336
|
+
|
1337
|
+
result
|
1338
|
+
end
|
1339
|
+
|
1340
|
+
promise.execute
|
1341
|
+
end
|
1342
|
+
|
1343
|
+
#
|
1344
|
+
# Verifies if this VNET is compatible with an App Service Environment by
|
1345
|
+
# analyzing the Network Security Group rules.
|
1346
|
+
#
|
1347
|
+
# Verifies if this VNET is compatible with an App Service Environment by
|
1348
|
+
# analyzing the Network Security Group rules.
|
1349
|
+
#
|
1350
|
+
# @param parameters [VnetParameters] VNET information
|
1351
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1352
|
+
# will be added to the HTTP request.
|
1353
|
+
#
|
1354
|
+
# @return [VnetValidationFailureDetails] operation results.
|
1355
|
+
#
|
1356
|
+
def verify_hosting_environment_vnet(parameters, custom_headers:nil)
|
1357
|
+
response = verify_hosting_environment_vnet_async(parameters, custom_headers:custom_headers).value!
|
1358
|
+
response.body unless response.nil?
|
1359
|
+
end
|
1360
|
+
|
1361
|
+
#
|
1362
|
+
# Verifies if this VNET is compatible with an App Service Environment by
|
1363
|
+
# analyzing the Network Security Group rules.
|
1364
|
+
#
|
1365
|
+
# Verifies if this VNET is compatible with an App Service Environment by
|
1366
|
+
# analyzing the Network Security Group rules.
|
1367
|
+
#
|
1368
|
+
# @param parameters [VnetParameters] VNET information
|
1369
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1370
|
+
# will be added to the HTTP request.
|
1371
|
+
#
|
1372
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1373
|
+
#
|
1374
|
+
def verify_hosting_environment_vnet_with_http_info(parameters, custom_headers:nil)
|
1375
|
+
verify_hosting_environment_vnet_async(parameters, custom_headers:custom_headers).value!
|
1376
|
+
end
|
1377
|
+
|
1378
|
+
#
|
1379
|
+
# Verifies if this VNET is compatible with an App Service Environment by
|
1380
|
+
# analyzing the Network Security Group rules.
|
1381
|
+
#
|
1382
|
+
# Verifies if this VNET is compatible with an App Service Environment by
|
1383
|
+
# analyzing the Network Security Group rules.
|
1384
|
+
#
|
1385
|
+
# @param parameters [VnetParameters] VNET information
|
1386
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1387
|
+
# to the HTTP request.
|
1388
|
+
#
|
1389
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1390
|
+
#
|
1391
|
+
def verify_hosting_environment_vnet_async(parameters, custom_headers:nil)
|
1392
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
1393
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
1394
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
1395
|
+
|
1396
|
+
|
1397
|
+
request_headers = {}
|
1398
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1399
|
+
|
1400
|
+
# Set Headers
|
1401
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1402
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
1403
|
+
|
1404
|
+
# Serialize Request
|
1405
|
+
request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::VnetParameters.mapper()
|
1406
|
+
request_content = self.serialize(request_mapper, parameters)
|
1407
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1408
|
+
|
1409
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/verifyHostingEnvironmentVnet'
|
1410
|
+
|
1411
|
+
request_url = @base_url || self.base_url
|
1412
|
+
|
1413
|
+
options = {
|
1414
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1415
|
+
path_params: {'subscriptionId' => subscription_id},
|
1416
|
+
query_params: {'api-version' => api_version},
|
1417
|
+
body: request_content,
|
1418
|
+
headers: request_headers.merge(custom_headers || {}),
|
1419
|
+
base_url: request_url
|
1420
|
+
}
|
1421
|
+
promise = self.make_request_async(:post, path_template, options)
|
1422
|
+
|
1423
|
+
promise = promise.then do |result|
|
1424
|
+
http_response = result.response
|
1425
|
+
status_code = http_response.status
|
1426
|
+
response_content = http_response.body
|
1427
|
+
unless status_code == 200
|
1428
|
+
error_model = JSON.load(response_content)
|
1429
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1430
|
+
end
|
1431
|
+
|
1432
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1433
|
+
# Deserialize Response
|
1434
|
+
if status_code == 200
|
1435
|
+
begin
|
1436
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1437
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::VnetValidationFailureDetails.mapper()
|
1438
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
1439
|
+
rescue Exception => e
|
1440
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1441
|
+
end
|
1442
|
+
end
|
1443
|
+
|
1444
|
+
result
|
1445
|
+
end
|
1446
|
+
|
1447
|
+
promise.execute
|
1448
|
+
end
|
1449
|
+
|
1450
|
+
#
|
1451
|
+
# Move resources between resource groups.
|
1452
|
+
#
|
1453
|
+
# Move resources between resource groups.
|
1454
|
+
#
|
1455
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1456
|
+
# resource belongs.
|
1457
|
+
# @param move_resource_envelope [CsmMoveResourceEnvelope] Object that
|
1458
|
+
# represents the resource to move.
|
1459
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1460
|
+
# will be added to the HTTP request.
|
1461
|
+
#
|
1462
|
+
#
|
1463
|
+
def move(resource_group_name, move_resource_envelope, custom_headers:nil)
|
1464
|
+
response = move_async(resource_group_name, move_resource_envelope, custom_headers:custom_headers).value!
|
1465
|
+
nil
|
1466
|
+
end
|
1467
|
+
|
1468
|
+
#
|
1469
|
+
# Move resources between resource groups.
|
1470
|
+
#
|
1471
|
+
# Move resources between resource groups.
|
1472
|
+
#
|
1473
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1474
|
+
# resource belongs.
|
1475
|
+
# @param move_resource_envelope [CsmMoveResourceEnvelope] Object that
|
1476
|
+
# represents the resource to move.
|
1477
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1478
|
+
# will be added to the HTTP request.
|
1479
|
+
#
|
1480
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1481
|
+
#
|
1482
|
+
def move_with_http_info(resource_group_name, move_resource_envelope, custom_headers:nil)
|
1483
|
+
move_async(resource_group_name, move_resource_envelope, custom_headers:custom_headers).value!
|
1484
|
+
end
|
1485
|
+
|
1486
|
+
#
|
1487
|
+
# Move resources between resource groups.
|
1488
|
+
#
|
1489
|
+
# Move resources between resource groups.
|
1490
|
+
#
|
1491
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1492
|
+
# resource belongs.
|
1493
|
+
# @param move_resource_envelope [CsmMoveResourceEnvelope] Object that
|
1494
|
+
# represents the resource to move.
|
1495
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1496
|
+
# to the HTTP request.
|
1497
|
+
#
|
1498
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1499
|
+
#
|
1500
|
+
def move_async(resource_group_name, move_resource_envelope, custom_headers:nil)
|
1501
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1502
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1503
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1504
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
|
1505
|
+
fail ArgumentError, 'move_resource_envelope is nil' if move_resource_envelope.nil?
|
1506
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
1507
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
1508
|
+
|
1509
|
+
|
1510
|
+
request_headers = {}
|
1511
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1512
|
+
|
1513
|
+
# Set Headers
|
1514
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1515
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
1516
|
+
|
1517
|
+
# Serialize Request
|
1518
|
+
request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::CsmMoveResourceEnvelope.mapper()
|
1519
|
+
request_content = self.serialize(request_mapper, move_resource_envelope)
|
1520
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1521
|
+
|
1522
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources'
|
1523
|
+
|
1524
|
+
request_url = @base_url || self.base_url
|
1525
|
+
|
1526
|
+
options = {
|
1527
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1528
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => subscription_id},
|
1529
|
+
query_params: {'api-version' => api_version},
|
1530
|
+
body: request_content,
|
1531
|
+
headers: request_headers.merge(custom_headers || {}),
|
1532
|
+
base_url: request_url
|
1533
|
+
}
|
1534
|
+
promise = self.make_request_async(:post, path_template, options)
|
1535
|
+
|
1536
|
+
promise = promise.then do |result|
|
1537
|
+
http_response = result.response
|
1538
|
+
status_code = http_response.status
|
1539
|
+
response_content = http_response.body
|
1540
|
+
unless status_code == 204
|
1541
|
+
error_model = JSON.load(response_content)
|
1542
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1543
|
+
end
|
1544
|
+
|
1545
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1546
|
+
|
1547
|
+
result
|
1548
|
+
end
|
1549
|
+
|
1550
|
+
promise.execute
|
1551
|
+
end
|
1552
|
+
|
1553
|
+
#
|
1554
|
+
# Validate if a resource can be created.
|
1555
|
+
#
|
1556
|
+
# Validate if a resource can be created.
|
1557
|
+
#
|
1558
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1559
|
+
# resource belongs.
|
1560
|
+
# @param validate_request [ValidateRequest] Request with the resources to
|
1561
|
+
# validate.
|
1562
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1563
|
+
# will be added to the HTTP request.
|
1564
|
+
#
|
1565
|
+
# @return [ValidateResponse] operation results.
|
1566
|
+
#
|
1567
|
+
def validate(resource_group_name, validate_request, custom_headers:nil)
|
1568
|
+
response = validate_async(resource_group_name, validate_request, custom_headers:custom_headers).value!
|
1569
|
+
response.body unless response.nil?
|
1570
|
+
end
|
1571
|
+
|
1572
|
+
#
|
1573
|
+
# Validate if a resource can be created.
|
1574
|
+
#
|
1575
|
+
# Validate if a resource can be created.
|
1576
|
+
#
|
1577
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1578
|
+
# resource belongs.
|
1579
|
+
# @param validate_request [ValidateRequest] Request with the resources to
|
1580
|
+
# validate.
|
1581
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1582
|
+
# will be added to the HTTP request.
|
1583
|
+
#
|
1584
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1585
|
+
#
|
1586
|
+
def validate_with_http_info(resource_group_name, validate_request, custom_headers:nil)
|
1587
|
+
validate_async(resource_group_name, validate_request, custom_headers:custom_headers).value!
|
1588
|
+
end
|
1589
|
+
|
1590
|
+
#
|
1591
|
+
# Validate if a resource can be created.
|
1592
|
+
#
|
1593
|
+
# Validate if a resource can be created.
|
1594
|
+
#
|
1595
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1596
|
+
# resource belongs.
|
1597
|
+
# @param validate_request [ValidateRequest] Request with the resources to
|
1598
|
+
# validate.
|
1599
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1600
|
+
# to the HTTP request.
|
1601
|
+
#
|
1602
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1603
|
+
#
|
1604
|
+
def validate_async(resource_group_name, validate_request, custom_headers:nil)
|
1605
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1606
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1607
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1608
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
|
1609
|
+
fail ArgumentError, 'validate_request is nil' if validate_request.nil?
|
1610
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
1611
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
1612
|
+
|
1613
|
+
|
1614
|
+
request_headers = {}
|
1615
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1616
|
+
|
1617
|
+
# Set Headers
|
1618
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1619
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
1620
|
+
|
1621
|
+
# Serialize Request
|
1622
|
+
request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::ValidateRequest.mapper()
|
1623
|
+
request_content = self.serialize(request_mapper, validate_request)
|
1624
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1625
|
+
|
1626
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/validate'
|
1627
|
+
|
1628
|
+
request_url = @base_url || self.base_url
|
1629
|
+
|
1630
|
+
options = {
|
1631
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1632
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => subscription_id},
|
1633
|
+
query_params: {'api-version' => api_version},
|
1634
|
+
body: request_content,
|
1635
|
+
headers: request_headers.merge(custom_headers || {}),
|
1636
|
+
base_url: request_url
|
1637
|
+
}
|
1638
|
+
promise = self.make_request_async(:post, path_template, options)
|
1639
|
+
|
1640
|
+
promise = promise.then do |result|
|
1641
|
+
http_response = result.response
|
1642
|
+
status_code = http_response.status
|
1643
|
+
response_content = http_response.body
|
1644
|
+
unless status_code == 200
|
1645
|
+
error_model = JSON.load(response_content)
|
1646
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1647
|
+
end
|
1648
|
+
|
1649
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1650
|
+
# Deserialize Response
|
1651
|
+
if status_code == 200
|
1652
|
+
begin
|
1653
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1654
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::ValidateResponse.mapper()
|
1655
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
1656
|
+
rescue Exception => e
|
1657
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1658
|
+
end
|
1659
|
+
end
|
1660
|
+
|
1661
|
+
result
|
1662
|
+
end
|
1663
|
+
|
1664
|
+
promise.execute
|
1665
|
+
end
|
1666
|
+
|
1667
|
+
#
|
1668
|
+
# Validate whether a resource can be moved.
|
1669
|
+
#
|
1670
|
+
# Validate whether a resource can be moved.
|
1671
|
+
#
|
1672
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1673
|
+
# resource belongs.
|
1674
|
+
# @param move_resource_envelope [CsmMoveResourceEnvelope] Object that
|
1675
|
+
# represents the resource to move.
|
1676
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1677
|
+
# will be added to the HTTP request.
|
1678
|
+
#
|
1679
|
+
#
|
1680
|
+
def validate_move(resource_group_name, move_resource_envelope, custom_headers:nil)
|
1681
|
+
response = validate_move_async(resource_group_name, move_resource_envelope, custom_headers:custom_headers).value!
|
1682
|
+
nil
|
1683
|
+
end
|
1684
|
+
|
1685
|
+
#
|
1686
|
+
# Validate whether a resource can be moved.
|
1687
|
+
#
|
1688
|
+
# Validate whether a resource can be moved.
|
1689
|
+
#
|
1690
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1691
|
+
# resource belongs.
|
1692
|
+
# @param move_resource_envelope [CsmMoveResourceEnvelope] Object that
|
1693
|
+
# represents the resource to move.
|
1694
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1695
|
+
# will be added to the HTTP request.
|
1696
|
+
#
|
1697
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1698
|
+
#
|
1699
|
+
def validate_move_with_http_info(resource_group_name, move_resource_envelope, custom_headers:nil)
|
1700
|
+
validate_move_async(resource_group_name, move_resource_envelope, custom_headers:custom_headers).value!
|
1701
|
+
end
|
1702
|
+
|
1703
|
+
#
|
1704
|
+
# Validate whether a resource can be moved.
|
1705
|
+
#
|
1706
|
+
# Validate whether a resource can be moved.
|
1707
|
+
#
|
1708
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1709
|
+
# resource belongs.
|
1710
|
+
# @param move_resource_envelope [CsmMoveResourceEnvelope] Object that
|
1711
|
+
# represents the resource to move.
|
1712
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1713
|
+
# to the HTTP request.
|
1714
|
+
#
|
1715
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1716
|
+
#
|
1717
|
+
def validate_move_async(resource_group_name, move_resource_envelope, custom_headers:nil)
|
1718
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1719
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1720
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1721
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+[^\.]$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+[^\.]$$')).nil?
|
1722
|
+
fail ArgumentError, 'move_resource_envelope is nil' if move_resource_envelope.nil?
|
1723
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
1724
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
1725
|
+
|
1726
|
+
|
1727
|
+
request_headers = {}
|
1728
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1729
|
+
|
1730
|
+
# Set Headers
|
1731
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1732
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
1733
|
+
|
1734
|
+
# Serialize Request
|
1735
|
+
request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::CsmMoveResourceEnvelope.mapper()
|
1736
|
+
request_content = self.serialize(request_mapper, move_resource_envelope)
|
1737
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1738
|
+
|
1739
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/validateMoveResources'
|
1740
|
+
|
1741
|
+
request_url = @base_url || self.base_url
|
1742
|
+
|
1743
|
+
options = {
|
1744
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1745
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => subscription_id},
|
1746
|
+
query_params: {'api-version' => api_version},
|
1747
|
+
body: request_content,
|
1748
|
+
headers: request_headers.merge(custom_headers || {}),
|
1749
|
+
base_url: request_url
|
1750
|
+
}
|
1751
|
+
promise = self.make_request_async(:post, path_template, options)
|
1752
|
+
|
1753
|
+
promise = promise.then do |result|
|
1754
|
+
http_response = result.response
|
1755
|
+
status_code = http_response.status
|
1756
|
+
response_content = http_response.body
|
1757
|
+
unless status_code == 204
|
1758
|
+
error_model = JSON.load(response_content)
|
1759
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1760
|
+
end
|
1761
|
+
|
1762
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1763
|
+
|
1764
|
+
result
|
1765
|
+
end
|
1766
|
+
|
1767
|
+
promise.execute
|
1768
|
+
end
|
1769
|
+
|
1770
|
+
#
|
1771
|
+
# Gets the source controls available for Azure websites.
|
1772
|
+
#
|
1773
|
+
# Gets the source controls available for Azure websites.
|
1774
|
+
#
|
1775
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1776
|
+
# to List operation.
|
1777
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1778
|
+
# will be added to the HTTP request.
|
1779
|
+
#
|
1780
|
+
# @return [SourceControlCollection] operation results.
|
1781
|
+
#
|
1782
|
+
def list_source_controls_next(next_page_link, custom_headers:nil)
|
1783
|
+
response = list_source_controls_next_async(next_page_link, custom_headers:custom_headers).value!
|
1784
|
+
response.body unless response.nil?
|
1785
|
+
end
|
1786
|
+
|
1787
|
+
#
|
1788
|
+
# Gets the source controls available for Azure websites.
|
1789
|
+
#
|
1790
|
+
# Gets the source controls available for Azure websites.
|
1791
|
+
#
|
1792
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1793
|
+
# to List operation.
|
1794
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1795
|
+
# will be added to the HTTP request.
|
1796
|
+
#
|
1797
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1798
|
+
#
|
1799
|
+
def list_source_controls_next_with_http_info(next_page_link, custom_headers:nil)
|
1800
|
+
list_source_controls_next_async(next_page_link, custom_headers:custom_headers).value!
|
1801
|
+
end
|
1802
|
+
|
1803
|
+
#
|
1804
|
+
# Gets the source controls available for Azure websites.
|
1805
|
+
#
|
1806
|
+
# Gets the source controls available for Azure websites.
|
1807
|
+
#
|
1808
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1809
|
+
# to List operation.
|
1810
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1811
|
+
# to the HTTP request.
|
1812
|
+
#
|
1813
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1814
|
+
#
|
1815
|
+
def list_source_controls_next_async(next_page_link, custom_headers:nil)
|
1816
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1817
|
+
|
1818
|
+
|
1819
|
+
request_headers = {}
|
1820
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1821
|
+
|
1822
|
+
# Set Headers
|
1823
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1824
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
1825
|
+
path_template = '{nextLink}'
|
1826
|
+
|
1827
|
+
request_url = @base_url || self.base_url
|
1828
|
+
|
1829
|
+
options = {
|
1830
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1831
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1832
|
+
headers: request_headers.merge(custom_headers || {}),
|
1833
|
+
base_url: request_url
|
1834
|
+
}
|
1835
|
+
promise = self.make_request_async(:get, path_template, options)
|
1836
|
+
|
1837
|
+
promise = promise.then do |result|
|
1838
|
+
http_response = result.response
|
1839
|
+
status_code = http_response.status
|
1840
|
+
response_content = http_response.body
|
1841
|
+
unless status_code == 200
|
1842
|
+
error_model = JSON.load(response_content)
|
1843
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1844
|
+
end
|
1845
|
+
|
1846
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1847
|
+
# Deserialize Response
|
1848
|
+
if status_code == 200
|
1849
|
+
begin
|
1850
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1851
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::SourceControlCollection.mapper()
|
1852
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
1853
|
+
rescue Exception => e
|
1854
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1855
|
+
end
|
1856
|
+
end
|
1857
|
+
|
1858
|
+
result
|
1859
|
+
end
|
1860
|
+
|
1861
|
+
promise.execute
|
1862
|
+
end
|
1863
|
+
|
1864
|
+
#
|
1865
|
+
# Gets a list of meters for a given location.
|
1866
|
+
#
|
1867
|
+
# Gets a list of meters for a given location.
|
1868
|
+
#
|
1869
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1870
|
+
# to List operation.
|
1871
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1872
|
+
# will be added to the HTTP request.
|
1873
|
+
#
|
1874
|
+
# @return [BillingMeterCollection] operation results.
|
1875
|
+
#
|
1876
|
+
def list_billing_meters_next(next_page_link, custom_headers:nil)
|
1877
|
+
response = list_billing_meters_next_async(next_page_link, custom_headers:custom_headers).value!
|
1878
|
+
response.body unless response.nil?
|
1879
|
+
end
|
1880
|
+
|
1881
|
+
#
|
1882
|
+
# Gets a list of meters for a given location.
|
1883
|
+
#
|
1884
|
+
# Gets a list of meters for a given location.
|
1885
|
+
#
|
1886
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1887
|
+
# to List operation.
|
1888
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1889
|
+
# will be added to the HTTP request.
|
1890
|
+
#
|
1891
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1892
|
+
#
|
1893
|
+
def list_billing_meters_next_with_http_info(next_page_link, custom_headers:nil)
|
1894
|
+
list_billing_meters_next_async(next_page_link, custom_headers:custom_headers).value!
|
1895
|
+
end
|
1896
|
+
|
1897
|
+
#
|
1898
|
+
# Gets a list of meters for a given location.
|
1899
|
+
#
|
1900
|
+
# Gets a list of meters for a given location.
|
1901
|
+
#
|
1902
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1903
|
+
# to List operation.
|
1904
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1905
|
+
# to the HTTP request.
|
1906
|
+
#
|
1907
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1908
|
+
#
|
1909
|
+
def list_billing_meters_next_async(next_page_link, custom_headers:nil)
|
1910
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1911
|
+
|
1912
|
+
|
1913
|
+
request_headers = {}
|
1914
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1915
|
+
|
1916
|
+
# Set Headers
|
1917
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1918
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
1919
|
+
path_template = '{nextLink}'
|
1920
|
+
|
1921
|
+
request_url = @base_url || self.base_url
|
1922
|
+
|
1923
|
+
options = {
|
1924
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1925
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1926
|
+
headers: request_headers.merge(custom_headers || {}),
|
1927
|
+
base_url: request_url
|
1928
|
+
}
|
1929
|
+
promise = self.make_request_async(:get, path_template, options)
|
1930
|
+
|
1931
|
+
promise = promise.then do |result|
|
1932
|
+
http_response = result.response
|
1933
|
+
status_code = http_response.status
|
1934
|
+
response_content = http_response.body
|
1935
|
+
unless status_code == 200
|
1936
|
+
error_model = JSON.load(response_content)
|
1937
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1938
|
+
end
|
1939
|
+
|
1940
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1941
|
+
# Deserialize Response
|
1942
|
+
if status_code == 200
|
1943
|
+
begin
|
1944
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1945
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::BillingMeterCollection.mapper()
|
1946
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
1947
|
+
rescue Exception => e
|
1948
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1949
|
+
end
|
1950
|
+
end
|
1951
|
+
|
1952
|
+
result
|
1953
|
+
end
|
1954
|
+
|
1955
|
+
promise.execute
|
1956
|
+
end
|
1957
|
+
|
1958
|
+
#
|
1959
|
+
# Get a list of available geographical regions.
|
1960
|
+
#
|
1961
|
+
# Get a list of available geographical regions.
|
1962
|
+
#
|
1963
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1964
|
+
# to List operation.
|
1965
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1966
|
+
# will be added to the HTTP request.
|
1967
|
+
#
|
1968
|
+
# @return [GeoRegionCollection] operation results.
|
1969
|
+
#
|
1970
|
+
def list_geo_regions_next(next_page_link, custom_headers:nil)
|
1971
|
+
response = list_geo_regions_next_async(next_page_link, custom_headers:custom_headers).value!
|
1972
|
+
response.body unless response.nil?
|
1973
|
+
end
|
1974
|
+
|
1975
|
+
#
|
1976
|
+
# Get a list of available geographical regions.
|
1977
|
+
#
|
1978
|
+
# Get a list of available geographical regions.
|
1979
|
+
#
|
1980
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1981
|
+
# to List operation.
|
1982
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1983
|
+
# will be added to the HTTP request.
|
1984
|
+
#
|
1985
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1986
|
+
#
|
1987
|
+
def list_geo_regions_next_with_http_info(next_page_link, custom_headers:nil)
|
1988
|
+
list_geo_regions_next_async(next_page_link, custom_headers:custom_headers).value!
|
1989
|
+
end
|
1990
|
+
|
1991
|
+
#
|
1992
|
+
# Get a list of available geographical regions.
|
1993
|
+
#
|
1994
|
+
# Get a list of available geographical regions.
|
1995
|
+
#
|
1996
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1997
|
+
# to List operation.
|
1998
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1999
|
+
# to the HTTP request.
|
2000
|
+
#
|
2001
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2002
|
+
#
|
2003
|
+
def list_geo_regions_next_async(next_page_link, custom_headers:nil)
|
2004
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
2005
|
+
|
2006
|
+
|
2007
|
+
request_headers = {}
|
2008
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2009
|
+
|
2010
|
+
# Set Headers
|
2011
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2012
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
2013
|
+
path_template = '{nextLink}'
|
2014
|
+
|
2015
|
+
request_url = @base_url || self.base_url
|
2016
|
+
|
2017
|
+
options = {
|
2018
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2019
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
2020
|
+
headers: request_headers.merge(custom_headers || {}),
|
2021
|
+
base_url: request_url
|
2022
|
+
}
|
2023
|
+
promise = self.make_request_async(:get, path_template, options)
|
2024
|
+
|
2025
|
+
promise = promise.then do |result|
|
2026
|
+
http_response = result.response
|
2027
|
+
status_code = http_response.status
|
2028
|
+
response_content = http_response.body
|
2029
|
+
unless status_code == 200
|
2030
|
+
error_model = JSON.load(response_content)
|
2031
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
2032
|
+
end
|
2033
|
+
|
2034
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2035
|
+
# Deserialize Response
|
2036
|
+
if status_code == 200
|
2037
|
+
begin
|
2038
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2039
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::GeoRegionCollection.mapper()
|
2040
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
2041
|
+
rescue Exception => e
|
2042
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2043
|
+
end
|
2044
|
+
end
|
2045
|
+
|
2046
|
+
result
|
2047
|
+
end
|
2048
|
+
|
2049
|
+
promise.execute
|
2050
|
+
end
|
2051
|
+
|
2052
|
+
#
|
2053
|
+
# List all apps that are assigned to a hostname.
|
2054
|
+
#
|
2055
|
+
# List all apps that are assigned to a hostname.
|
2056
|
+
#
|
2057
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
2058
|
+
# to List operation.
|
2059
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2060
|
+
# will be added to the HTTP request.
|
2061
|
+
#
|
2062
|
+
# @return [IdentifierCollection] operation results.
|
2063
|
+
#
|
2064
|
+
def list_site_identifiers_assigned_to_host_name_next(next_page_link, custom_headers:nil)
|
2065
|
+
response = list_site_identifiers_assigned_to_host_name_next_async(next_page_link, custom_headers:custom_headers).value!
|
2066
|
+
response.body unless response.nil?
|
2067
|
+
end
|
2068
|
+
|
2069
|
+
#
|
2070
|
+
# List all apps that are assigned to a hostname.
|
2071
|
+
#
|
2072
|
+
# List all apps that are assigned to a hostname.
|
2073
|
+
#
|
2074
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
2075
|
+
# to List operation.
|
2076
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2077
|
+
# will be added to the HTTP request.
|
2078
|
+
#
|
2079
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2080
|
+
#
|
2081
|
+
def list_site_identifiers_assigned_to_host_name_next_with_http_info(next_page_link, custom_headers:nil)
|
2082
|
+
list_site_identifiers_assigned_to_host_name_next_async(next_page_link, custom_headers:custom_headers).value!
|
2083
|
+
end
|
2084
|
+
|
2085
|
+
#
|
2086
|
+
# List all apps that are assigned to a hostname.
|
2087
|
+
#
|
2088
|
+
# List all apps that are assigned to a hostname.
|
2089
|
+
#
|
2090
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
2091
|
+
# to List operation.
|
2092
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2093
|
+
# to the HTTP request.
|
2094
|
+
#
|
2095
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2096
|
+
#
|
2097
|
+
def list_site_identifiers_assigned_to_host_name_next_async(next_page_link, custom_headers:nil)
|
2098
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
2099
|
+
|
2100
|
+
|
2101
|
+
request_headers = {}
|
2102
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2103
|
+
|
2104
|
+
# Set Headers
|
2105
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2106
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
2107
|
+
path_template = '{nextLink}'
|
2108
|
+
|
2109
|
+
request_url = @base_url || self.base_url
|
2110
|
+
|
2111
|
+
options = {
|
2112
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2113
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
2114
|
+
headers: request_headers.merge(custom_headers || {}),
|
2115
|
+
base_url: request_url
|
2116
|
+
}
|
2117
|
+
promise = self.make_request_async(:post, path_template, options)
|
2118
|
+
|
2119
|
+
promise = promise.then do |result|
|
2120
|
+
http_response = result.response
|
2121
|
+
status_code = http_response.status
|
2122
|
+
response_content = http_response.body
|
2123
|
+
unless status_code == 200
|
2124
|
+
error_model = JSON.load(response_content)
|
2125
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
2126
|
+
end
|
2127
|
+
|
2128
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2129
|
+
# Deserialize Response
|
2130
|
+
if status_code == 200
|
2131
|
+
begin
|
2132
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2133
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::IdentifierCollection.mapper()
|
2134
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
2135
|
+
rescue Exception => e
|
2136
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2137
|
+
end
|
2138
|
+
end
|
2139
|
+
|
2140
|
+
result
|
2141
|
+
end
|
2142
|
+
|
2143
|
+
promise.execute
|
2144
|
+
end
|
2145
|
+
|
2146
|
+
#
|
2147
|
+
# List all premier add-on offers.
|
2148
|
+
#
|
2149
|
+
# List all premier add-on offers.
|
2150
|
+
#
|
2151
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
2152
|
+
# to List operation.
|
2153
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2154
|
+
# will be added to the HTTP request.
|
2155
|
+
#
|
2156
|
+
# @return [PremierAddOnOfferCollection] operation results.
|
2157
|
+
#
|
2158
|
+
def list_premier_add_on_offers_next(next_page_link, custom_headers:nil)
|
2159
|
+
response = list_premier_add_on_offers_next_async(next_page_link, custom_headers:custom_headers).value!
|
2160
|
+
response.body unless response.nil?
|
2161
|
+
end
|
2162
|
+
|
2163
|
+
#
|
2164
|
+
# List all premier add-on offers.
|
2165
|
+
#
|
2166
|
+
# List all premier add-on offers.
|
2167
|
+
#
|
2168
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
2169
|
+
# to List operation.
|
2170
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2171
|
+
# will be added to the HTTP request.
|
2172
|
+
#
|
2173
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2174
|
+
#
|
2175
|
+
def list_premier_add_on_offers_next_with_http_info(next_page_link, custom_headers:nil)
|
2176
|
+
list_premier_add_on_offers_next_async(next_page_link, custom_headers:custom_headers).value!
|
2177
|
+
end
|
2178
|
+
|
2179
|
+
#
|
2180
|
+
# List all premier add-on offers.
|
2181
|
+
#
|
2182
|
+
# List all premier add-on offers.
|
2183
|
+
#
|
2184
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
2185
|
+
# to List operation.
|
2186
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2187
|
+
# to the HTTP request.
|
2188
|
+
#
|
2189
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2190
|
+
#
|
2191
|
+
def list_premier_add_on_offers_next_async(next_page_link, custom_headers:nil)
|
2192
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
2193
|
+
|
2194
|
+
|
2195
|
+
request_headers = {}
|
2196
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2197
|
+
|
2198
|
+
# Set Headers
|
2199
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2200
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
2201
|
+
path_template = '{nextLink}'
|
2202
|
+
|
2203
|
+
request_url = @base_url || self.base_url
|
2204
|
+
|
2205
|
+
options = {
|
2206
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2207
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
2208
|
+
headers: request_headers.merge(custom_headers || {}),
|
2209
|
+
base_url: request_url
|
2210
|
+
}
|
2211
|
+
promise = self.make_request_async(:get, path_template, options)
|
2212
|
+
|
2213
|
+
promise = promise.then do |result|
|
2214
|
+
http_response = result.response
|
2215
|
+
status_code = http_response.status
|
2216
|
+
response_content = http_response.body
|
2217
|
+
unless status_code == 200
|
2218
|
+
error_model = JSON.load(response_content)
|
2219
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
2220
|
+
end
|
2221
|
+
|
2222
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2223
|
+
# Deserialize Response
|
2224
|
+
if status_code == 200
|
2225
|
+
begin
|
2226
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2227
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnOfferCollection.mapper()
|
2228
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
2229
|
+
rescue Exception => e
|
2230
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2231
|
+
end
|
2232
|
+
end
|
2233
|
+
|
2234
|
+
result
|
2235
|
+
end
|
2236
|
+
|
2237
|
+
promise.execute
|
2238
|
+
end
|
2239
|
+
|
2240
|
+
#
|
2241
|
+
# Gets the source controls available for Azure websites.
|
2242
|
+
#
|
2243
|
+
# Gets the source controls available for Azure websites.
|
2244
|
+
#
|
2245
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2246
|
+
# will be added to the HTTP request.
|
2247
|
+
#
|
2248
|
+
# @return [SourceControlCollection] operation results.
|
2249
|
+
#
|
2250
|
+
def list_source_controls_as_lazy(custom_headers:nil)
|
2251
|
+
first_page = list_source_controls_as_lazy_as_lazy(custom_headers:custom_headers)
|
2252
|
+
first_page.get_all_items
|
2253
|
+
end
|
2254
|
+
|
2255
|
+
#
|
2256
|
+
# Gets the source controls available for Azure websites.
|
2257
|
+
#
|
2258
|
+
# Gets the source controls available for Azure websites.
|
2259
|
+
#
|
2260
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2261
|
+
# will be added to the HTTP request.
|
2262
|
+
#
|
2263
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2264
|
+
#
|
2265
|
+
def list_source_controls_as_lazy_with_http_info(custom_headers:nil)
|
2266
|
+
list_source_controls_as_lazy_async(custom_headers:custom_headers).value!
|
2267
|
+
end
|
2268
|
+
|
2269
|
+
#
|
2270
|
+
# Gets the source controls available for Azure websites.
|
2271
|
+
#
|
2272
|
+
# Gets the source controls available for Azure websites.
|
2273
|
+
#
|
2274
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2275
|
+
# to the HTTP request.
|
2276
|
+
#
|
2277
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2278
|
+
#
|
2279
|
+
def list_source_controls_as_lazy_async(custom_headers:nil)
|
2280
|
+
|
2281
|
+
|
2282
|
+
request_headers = {}
|
2283
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2284
|
+
path_template = 'providers/Microsoft.Web/sourcecontrols'
|
2285
|
+
|
2286
|
+
request_url = @base_url || self.base_url
|
2287
|
+
|
2288
|
+
options = {
|
2289
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2290
|
+
headers: request_headers.merge(custom_headers || {}),
|
2291
|
+
base_url: request_url
|
2292
|
+
}
|
2293
|
+
promise = self.make_request_async(:get, path_template, options)
|
2294
|
+
|
2295
|
+
promise = promise.then do |result|
|
2296
|
+
http_response = result.response
|
2297
|
+
status_code = http_response.status
|
2298
|
+
response_content = http_response.body
|
2299
|
+
unless status_code == 200
|
2300
|
+
error_model = JSON.load(response_content)
|
2301
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
2302
|
+
end
|
2303
|
+
|
2304
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2305
|
+
# Deserialize Response
|
2306
|
+
if status_code == 200
|
2307
|
+
begin
|
2308
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2309
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::SourceControlCollection.mapper()
|
2310
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
2311
|
+
rescue Exception => e
|
2312
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2313
|
+
end
|
2314
|
+
end
|
2315
|
+
|
2316
|
+
result
|
2317
|
+
end
|
2318
|
+
|
2319
|
+
promise.execute
|
2320
|
+
end
|
2321
|
+
|
2322
|
+
#
|
2323
|
+
# Gets a list of meters for a given location.
|
2324
|
+
#
|
2325
|
+
# Gets a list of meters for a given location.
|
2326
|
+
#
|
2327
|
+
# @param billing_location [String] Azure Location of billable resource
|
2328
|
+
# @param os_type [String] App Service OS type meters used for
|
2329
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2330
|
+
# will be added to the HTTP request.
|
2331
|
+
#
|
2332
|
+
# @return [BillingMeterCollection] operation results.
|
2333
|
+
#
|
2334
|
+
def list_billing_meters_as_lazy(billing_location:nil, os_type:nil, custom_headers:nil)
|
2335
|
+
first_page = list_billing_meters_as_lazy_as_lazy(billing_location:billing_location, os_type:os_type, custom_headers:custom_headers)
|
2336
|
+
first_page.get_all_items
|
2337
|
+
end
|
2338
|
+
|
2339
|
+
#
|
2340
|
+
# Gets a list of meters for a given location.
|
2341
|
+
#
|
2342
|
+
# Gets a list of meters for a given location.
|
2343
|
+
#
|
2344
|
+
# @param billing_location [String] Azure Location of billable resource
|
2345
|
+
# @param os_type [String] App Service OS type meters used for
|
2346
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2347
|
+
# will be added to the HTTP request.
|
2348
|
+
#
|
2349
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2350
|
+
#
|
2351
|
+
def list_billing_meters_as_lazy_with_http_info(billing_location:nil, os_type:nil, custom_headers:nil)
|
2352
|
+
list_billing_meters_as_lazy_async(billing_location:billing_location, os_type:os_type, custom_headers:custom_headers).value!
|
2353
|
+
end
|
2354
|
+
|
2355
|
+
#
|
2356
|
+
# Gets a list of meters for a given location.
|
2357
|
+
#
|
2358
|
+
# Gets a list of meters for a given location.
|
2359
|
+
#
|
2360
|
+
# @param billing_location [String] Azure Location of billable resource
|
2361
|
+
# @param os_type [String] App Service OS type meters used for
|
2362
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2363
|
+
# to the HTTP request.
|
2364
|
+
#
|
2365
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2366
|
+
#
|
2367
|
+
def list_billing_meters_as_lazy_async(billing_location:nil, os_type:nil, custom_headers:nil)
|
2368
|
+
|
2369
|
+
|
2370
|
+
request_headers = {}
|
2371
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2372
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/billingMeters'
|
2373
|
+
|
2374
|
+
request_url = @base_url || self.base_url
|
2375
|
+
|
2376
|
+
options = {
|
2377
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2378
|
+
query_params: {'billingLocation' => billing_location,'osType' => os_type},
|
2379
|
+
headers: request_headers.merge(custom_headers || {}),
|
2380
|
+
base_url: request_url
|
2381
|
+
}
|
2382
|
+
promise = self.make_request_async(:get, path_template, options)
|
2383
|
+
|
2384
|
+
promise = promise.then do |result|
|
2385
|
+
http_response = result.response
|
2386
|
+
status_code = http_response.status
|
2387
|
+
response_content = http_response.body
|
2388
|
+
unless status_code == 200
|
2389
|
+
error_model = JSON.load(response_content)
|
2390
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
2391
|
+
end
|
2392
|
+
|
2393
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2394
|
+
# Deserialize Response
|
2395
|
+
if status_code == 200
|
2396
|
+
begin
|
2397
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2398
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::BillingMeterCollection.mapper()
|
2399
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
2400
|
+
rescue Exception => e
|
2401
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2402
|
+
end
|
2403
|
+
end
|
2404
|
+
|
2405
|
+
result
|
2406
|
+
end
|
2407
|
+
|
2408
|
+
promise.execute
|
2409
|
+
end
|
2410
|
+
|
2411
|
+
#
|
2412
|
+
# Get a list of available geographical regions.
|
2413
|
+
#
|
2414
|
+
# Get a list of available geographical regions.
|
2415
|
+
#
|
2416
|
+
# @param sku [SkuName] Name of SKU used to filter the regions. Possible values
|
2417
|
+
# include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic',
|
2418
|
+
# 'Isolated', 'PremiumV2'
|
2419
|
+
# @param linux_workers_enabled [Boolean] Specify <code>true</code> if you want
|
2420
|
+
# to filter to only regions that support Linux workers.
|
2421
|
+
# @param xenon_workers_enabled [Boolean] Specify <code>true</code> if you want
|
2422
|
+
# to filter to only regions that support Xenon workers.
|
2423
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2424
|
+
# will be added to the HTTP request.
|
2425
|
+
#
|
2426
|
+
# @return [GeoRegionCollection] operation results.
|
2427
|
+
#
|
2428
|
+
def list_geo_regions_as_lazy(sku:nil, linux_workers_enabled:nil, xenon_workers_enabled:nil, custom_headers:nil)
|
2429
|
+
first_page = list_geo_regions_as_lazy_as_lazy(sku:sku, linux_workers_enabled:linux_workers_enabled, xenon_workers_enabled:xenon_workers_enabled, custom_headers:custom_headers)
|
2430
|
+
first_page.get_all_items
|
2431
|
+
end
|
2432
|
+
|
2433
|
+
#
|
2434
|
+
# Get a list of available geographical regions.
|
2435
|
+
#
|
2436
|
+
# Get a list of available geographical regions.
|
2437
|
+
#
|
2438
|
+
# @param sku [SkuName] Name of SKU used to filter the regions. Possible values
|
2439
|
+
# include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic',
|
2440
|
+
# 'Isolated', 'PremiumV2'
|
2441
|
+
# @param linux_workers_enabled [Boolean] Specify <code>true</code> if you want
|
2442
|
+
# to filter to only regions that support Linux workers.
|
2443
|
+
# @param xenon_workers_enabled [Boolean] Specify <code>true</code> if you want
|
2444
|
+
# to filter to only regions that support Xenon workers.
|
2445
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2446
|
+
# will be added to the HTTP request.
|
2447
|
+
#
|
2448
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2449
|
+
#
|
2450
|
+
def list_geo_regions_as_lazy_with_http_info(sku:nil, linux_workers_enabled:nil, xenon_workers_enabled:nil, custom_headers:nil)
|
2451
|
+
list_geo_regions_as_lazy_async(sku:sku, linux_workers_enabled:linux_workers_enabled, xenon_workers_enabled:xenon_workers_enabled, custom_headers:custom_headers).value!
|
2452
|
+
end
|
2453
|
+
|
2454
|
+
#
|
2455
|
+
# Get a list of available geographical regions.
|
2456
|
+
#
|
2457
|
+
# Get a list of available geographical regions.
|
2458
|
+
#
|
2459
|
+
# @param sku [SkuName] Name of SKU used to filter the regions. Possible values
|
2460
|
+
# include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic',
|
2461
|
+
# 'Isolated', 'PremiumV2'
|
2462
|
+
# @param linux_workers_enabled [Boolean] Specify <code>true</code> if you want
|
2463
|
+
# to filter to only regions that support Linux workers.
|
2464
|
+
# @param xenon_workers_enabled [Boolean] Specify <code>true</code> if you want
|
2465
|
+
# to filter to only regions that support Xenon workers.
|
2466
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2467
|
+
# to the HTTP request.
|
2468
|
+
#
|
2469
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2470
|
+
#
|
2471
|
+
def list_geo_regions_as_lazy_async(sku:nil, linux_workers_enabled:nil, xenon_workers_enabled:nil, custom_headers:nil)
|
2472
|
+
|
2473
|
+
|
2474
|
+
request_headers = {}
|
2475
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2476
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions'
|
2477
|
+
|
2478
|
+
request_url = @base_url || self.base_url
|
2479
|
+
|
2480
|
+
options = {
|
2481
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2482
|
+
query_params: {'sku' => sku,'linuxWorkersEnabled' => linux_workers_enabled,'xenonWorkersEnabled' => xenon_workers_enabled},
|
2483
|
+
headers: request_headers.merge(custom_headers || {}),
|
2484
|
+
base_url: request_url
|
2485
|
+
}
|
2486
|
+
promise = self.make_request_async(:get, path_template, options)
|
2487
|
+
|
2488
|
+
promise = promise.then do |result|
|
2489
|
+
http_response = result.response
|
2490
|
+
status_code = http_response.status
|
2491
|
+
response_content = http_response.body
|
2492
|
+
unless status_code == 200
|
2493
|
+
error_model = JSON.load(response_content)
|
2494
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
2495
|
+
end
|
2496
|
+
|
2497
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2498
|
+
# Deserialize Response
|
2499
|
+
if status_code == 200
|
2500
|
+
begin
|
2501
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2502
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::GeoRegionCollection.mapper()
|
2503
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
2504
|
+
rescue Exception => e
|
2505
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2506
|
+
end
|
2507
|
+
end
|
2508
|
+
|
2509
|
+
result
|
2510
|
+
end
|
2511
|
+
|
2512
|
+
promise.execute
|
2513
|
+
end
|
2514
|
+
|
2515
|
+
#
|
2516
|
+
# List all apps that are assigned to a hostname.
|
2517
|
+
#
|
2518
|
+
# List all apps that are assigned to a hostname.
|
2519
|
+
#
|
2520
|
+
# @param name_identifier [NameIdentifier] Hostname information.
|
2521
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2522
|
+
# will be added to the HTTP request.
|
2523
|
+
#
|
2524
|
+
# @return [IdentifierCollection] operation results.
|
2525
|
+
#
|
2526
|
+
def list_site_identifiers_assigned_to_host_name_as_lazy(name_identifier, custom_headers:nil)
|
2527
|
+
first_page = list_site_identifiers_assigned_to_host_name_as_lazy_as_lazy(name_identifier, custom_headers:custom_headers)
|
2528
|
+
first_page.get_all_items
|
2529
|
+
end
|
2530
|
+
|
2531
|
+
#
|
2532
|
+
# List all apps that are assigned to a hostname.
|
2533
|
+
#
|
2534
|
+
# List all apps that are assigned to a hostname.
|
2535
|
+
#
|
2536
|
+
# @param name_identifier [NameIdentifier] Hostname information.
|
2537
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2538
|
+
# will be added to the HTTP request.
|
2539
|
+
#
|
2540
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2541
|
+
#
|
2542
|
+
def list_site_identifiers_assigned_to_host_name_as_lazy_with_http_info(name_identifier, custom_headers:nil)
|
2543
|
+
list_site_identifiers_assigned_to_host_name_as_lazy_async(name_identifier, custom_headers:custom_headers).value!
|
2544
|
+
end
|
2545
|
+
|
2546
|
+
#
|
2547
|
+
# List all apps that are assigned to a hostname.
|
2548
|
+
#
|
2549
|
+
# List all apps that are assigned to a hostname.
|
2550
|
+
#
|
2551
|
+
# @param name_identifier [NameIdentifier] Hostname information.
|
2552
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2553
|
+
# to the HTTP request.
|
2554
|
+
#
|
2555
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2556
|
+
#
|
2557
|
+
def list_site_identifiers_assigned_to_host_name_as_lazy_async(name_identifier, custom_headers:nil)
|
2558
|
+
fail ArgumentError, 'name_identifier is nil' if name_identifier.nil?
|
2559
|
+
|
2560
|
+
|
2561
|
+
request_headers = {}
|
2562
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2563
|
+
|
2564
|
+
# Serialize Request
|
2565
|
+
request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifier.mapper()
|
2566
|
+
request_content = self.serialize(request_mapper, name_identifier)
|
2567
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
2568
|
+
|
2569
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/listSitesAssignedToHostName'
|
2570
|
+
|
2571
|
+
request_url = @base_url || self.base_url
|
2572
|
+
|
2573
|
+
options = {
|
2574
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2575
|
+
body: request_content,
|
2576
|
+
headers: request_headers.merge(custom_headers || {}),
|
2577
|
+
base_url: request_url
|
2578
|
+
}
|
2579
|
+
promise = self.make_request_async(:post, path_template, options)
|
2580
|
+
|
2581
|
+
promise = promise.then do |result|
|
2582
|
+
http_response = result.response
|
2583
|
+
status_code = http_response.status
|
2584
|
+
response_content = http_response.body
|
2585
|
+
unless status_code == 200
|
2586
|
+
error_model = JSON.load(response_content)
|
2587
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
2588
|
+
end
|
2589
|
+
|
2590
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2591
|
+
# Deserialize Response
|
2592
|
+
if status_code == 200
|
2593
|
+
begin
|
2594
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2595
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::IdentifierCollection.mapper()
|
2596
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
2597
|
+
rescue Exception => e
|
2598
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2599
|
+
end
|
2600
|
+
end
|
2601
|
+
|
2602
|
+
result
|
2603
|
+
end
|
2604
|
+
|
2605
|
+
promise.execute
|
2606
|
+
end
|
2607
|
+
|
2608
|
+
#
|
2609
|
+
# List all premier add-on offers.
|
2610
|
+
#
|
2611
|
+
# List all premier add-on offers.
|
2612
|
+
#
|
2613
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2614
|
+
# will be added to the HTTP request.
|
2615
|
+
#
|
2616
|
+
# @return [PremierAddOnOfferCollection] operation results.
|
2617
|
+
#
|
2618
|
+
def list_premier_add_on_offers_as_lazy(custom_headers:nil)
|
2619
|
+
first_page = list_premier_add_on_offers_as_lazy_as_lazy(custom_headers:custom_headers)
|
2620
|
+
first_page.get_all_items
|
2621
|
+
end
|
2622
|
+
|
2623
|
+
#
|
2624
|
+
# List all premier add-on offers.
|
2625
|
+
#
|
2626
|
+
# List all premier add-on offers.
|
2627
|
+
#
|
2628
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2629
|
+
# will be added to the HTTP request.
|
2630
|
+
#
|
2631
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2632
|
+
#
|
2633
|
+
def list_premier_add_on_offers_as_lazy_with_http_info(custom_headers:nil)
|
2634
|
+
list_premier_add_on_offers_as_lazy_async(custom_headers:custom_headers).value!
|
2635
|
+
end
|
2636
|
+
|
2637
|
+
#
|
2638
|
+
# List all premier add-on offers.
|
2639
|
+
#
|
2640
|
+
# List all premier add-on offers.
|
2641
|
+
#
|
2642
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2643
|
+
# to the HTTP request.
|
2644
|
+
#
|
2645
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2646
|
+
#
|
2647
|
+
def list_premier_add_on_offers_as_lazy_async(custom_headers:nil)
|
2648
|
+
|
2649
|
+
|
2650
|
+
request_headers = {}
|
2651
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2652
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/premieraddonoffers'
|
2653
|
+
|
2654
|
+
request_url = @base_url || self.base_url
|
2655
|
+
|
2656
|
+
options = {
|
2657
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2658
|
+
headers: request_headers.merge(custom_headers || {}),
|
2659
|
+
base_url: request_url
|
2660
|
+
}
|
2661
|
+
promise = self.make_request_async(:get, path_template, options)
|
2662
|
+
|
2663
|
+
promise = promise.then do |result|
|
2664
|
+
http_response = result.response
|
2665
|
+
status_code = http_response.status
|
2666
|
+
response_content = http_response.body
|
2667
|
+
unless status_code == 200
|
2668
|
+
error_model = JSON.load(response_content)
|
2669
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
2670
|
+
end
|
2671
|
+
|
2672
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2673
|
+
# Deserialize Response
|
2674
|
+
if status_code == 200
|
2675
|
+
begin
|
2676
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2677
|
+
result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnOfferCollection.mapper()
|
2678
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
2679
|
+
rescue Exception => e
|
2680
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2681
|
+
end
|
2682
|
+
end
|
2683
|
+
|
2684
|
+
result
|
2685
|
+
end
|
2686
|
+
|
2687
|
+
promise.execute
|
2688
|
+
end
|
2689
|
+
|
2690
|
+
|
2691
|
+
private
|
2692
|
+
#
|
2693
|
+
# Adds telemetry information.
|
2694
|
+
#
|
2695
|
+
def add_telemetry
|
2696
|
+
sdk_information = 'azure_mgmt_web'
|
2697
|
+
sdk_information = "#{sdk_information}/0.17.0"
|
2698
|
+
add_user_agent_information(sdk_information)
|
2699
|
+
end
|
2700
|
+
end
|
2701
|
+
end
|