azure_mgmt_web 0.17.1 → 0.17.6
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/domain_registration_provider.rb +4 -0
- data/lib/2015-04-01/generated/azure_mgmt_web/domains.rb +38 -0
- data/lib/2015-04-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_web/models/domain_collection.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_web/models/name_identifier_collection.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_web/models/top_level_domain_collection.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_web/top_level_domains.rb +10 -0
- data/lib/2015-04-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +46 -0
- data/lib/2015-08-01/generated/azure_mgmt_web/certificate_registration_provider.rb +4 -0
- data/lib/2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/billing_meters.rb +4 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/certificates.rb +16 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/deleted_web_apps.rb +4 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/diagnostics.rb +66 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/models/application_stack_collection.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/models/billing_meter_collection.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/models/certificate_collection.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/models/detector_response_collection.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_analysis_collection.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_category_collection.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_detector_collection.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/models/geo_region_collection.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/models/identifier_collection.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/models/recommendation_collection.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/models/resource_health_metadata_collection.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/models/source_control_collection.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_web/provider.rb +12 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/recommendations.rb +24 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +20 -0
- data/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb +47 -1
- data/lib/2016-06-01/generated/azure_mgmt_web.rb +76 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/connection_gateway_installations.rb +240 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/connection_gateways.rb +682 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/connections.rb +815 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/custom_apis.rb +997 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/logic_apps_management_client.rb +140 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/managed_apis.rb +233 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition.rb +106 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition_collection.rb +55 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_definition_properties.rb +179 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/api_connection_test_link.rb +57 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/api_oauth_settings.rb +130 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/api_oauth_settings_parameter.rb +68 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/api_reference.rb +118 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_backend_service.rb +46 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_definitions.rb +57 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_general_information.rb +90 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_metadata.rb +135 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_policies.rb +58 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_properties.rb +186 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/api_type.rb +17 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/confirm_consent_code_definition.rb +68 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_error.rb +116 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition.rb +106 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition_collection.rb +56 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition_properties.rb +122 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition.rb +106 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition_collection.rb +57 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition_properties.rb +123 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_gateway_reference.rb +73 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_parameter.rb +61 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_parameter_type.rb +23 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/connection_status_definition.rb +69 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_collection.rb +55 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_definition.rb +81 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/consent_link_parameter_definition.rb +82 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_definition.rb +106 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_definition_collection.rb +55 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_properties_definition.rb +196 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/custom_api_reference.rb +99 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/link_state.rb +17 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/list_connection_keys_definition.rb +105 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/list_consent_links_definition.rb +55 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/managed_api_definition.rb +106 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/managed_api_definition_collection.rb +55 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/resource_definition.rb +112 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/resource_reference.rb +58 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_definition.rb +81 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_import_method.rb +17 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_service.rb +65 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/models/wsdl_service_collection.rb +55 -0
- data/lib/2016-06-01/generated/azure_mgmt_web/module_definition.rb +9 -0
- data/lib/2016-08-01/generated/azure_mgmt_web/models/backup_item_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/continuous_web_job_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/deployment_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/function_envelope_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/host_name_binding_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/identifier_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/process_info_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/process_module_info_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/process_thread_info_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/public_certificate_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/resource_metric_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/site_config_resource_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/site_extension_info_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/slot_difference_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/snapshot_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/triggered_job_history_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/triggered_web_job_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/web_app_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/web_app_instance_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/models/web_job_collection.rb +1 -1
- data/lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb +732 -0
- data/lib/2016-08-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb +124 -0
- data/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb +74 -0
- data/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_web/models/app_service_plan_collection.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_web/models/hybrid_connection_collection.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_web/models/resource_collection.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_web/models/resource_metric_collection.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_web/models/sku_info_collection.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_web/models/usage_collection.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_web/models/web_app_collection.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_web/models/worker_pool_collection.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_web/web_site_management_client.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web.rb +99 -91
- data/lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +46 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb +168 -40
- data/lib/2018-02-01/generated/azure_mgmt_web/app_service_plans.rb +82 -8
- data/lib/2018-02-01/generated/azure_mgmt_web/certificate_registration_provider.rb +4 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/certificates.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/deleted_web_apps.rb +4 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb +66 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/domain_registration_provider.rb +4 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/domains.rb +38 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_environment_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan.rb +26 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/app_service_plan_patch_resource.rb +26 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/application_stack_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_storage_info_value.rb +109 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_storage_property_dictionary_resource.rb +90 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_storage_state.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/azure_storage_type.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_item_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/backup_request.rb +11 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/billing_meter_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/certificate_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/continuous_web_job_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_operation_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb +11 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/deleted_site.rb +54 -7
- data/lib/2018-02-01/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/deployment_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/detector_response_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_analysis_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_category_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_detector_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/function_envelope_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/geo_region_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/host_name_binding_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/hybrid_connection_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/identifier_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/name_identifier_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/network_trace.rb +70 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/process_info_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/process_module_info_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/process_thread_info_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/public_certificate_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/recommendation_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_health_metadata.rb +93 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_health_metadata_collection.rb +99 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site.rb +13 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config.rb +21 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config_resource.rb +21 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_config_resource_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_configuration_snapshot_info_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_extension_info_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/site_patch_resource.rb +13 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_info_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/sku_name.rb +2 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_config_names_resource.rb +20 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/models/slot_difference_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/source_control_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/top_level_domain_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_job_history_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/triggered_web_job_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/usage_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/web_app_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/web_app_instance_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/web_job_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/models/worker_pool_collection.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_web/provider.rb +28 -8
- data/lib/2018-02-01/generated/azure_mgmt_web/recommendations.rb +44 -20
- data/lib/2018-02-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb +1181 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/top_level_domains.rb +10 -0
- data/lib/2018-02-01/generated/azure_mgmt_web/web_apps.rb +2504 -312
- data/lib/2018-02-01/generated/azure_mgmt_web/web_site_management_client.rb +88 -19
- data/lib/azure_mgmt_web.rb +6 -3
- data/lib/profiles/latest/modules/web_profile_module.rb +315 -285
- data/lib/profiles/v2018_03_01/modules/web_profile_module.rb +1235 -0
- data/lib/profiles/v2018_03_01/web_module_definition.rb +8 -0
- data/lib/profiles/v2018_03_01/web_v2018_03_01_profile_client.rb +40 -0
- data/lib/profiles/v2019_03_01_hybrid/modules/web_profile_module.rb +1469 -0
- data/lib/profiles/v2019_03_01_hybrid/web_module_definition.rb +8 -0
- data/lib/profiles/v2019_03_01_hybrid/web_v2019_03_01_hybrid_profile_client.rb +40 -0
- data/lib/version.rb +1 -1
- metadata +71 -5
@@ -0,0 +1,76 @@
|
|
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
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '2016-06-01/generated/azure_mgmt_web/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Web::Mgmt::V2016_06_01
|
23
|
+
autoload :ConnectionGateways, '2016-06-01/generated/azure_mgmt_web/connection_gateways.rb'
|
24
|
+
autoload :ConnectionGatewayInstallations, '2016-06-01/generated/azure_mgmt_web/connection_gateway_installations.rb'
|
25
|
+
autoload :CustomApis, '2016-06-01/generated/azure_mgmt_web/custom_apis.rb'
|
26
|
+
autoload :ManagedApis, '2016-06-01/generated/azure_mgmt_web/managed_apis.rb'
|
27
|
+
autoload :Connections, '2016-06-01/generated/azure_mgmt_web/connections.rb'
|
28
|
+
autoload :LogicAppsManagementClient, '2016-06-01/generated/azure_mgmt_web/logic_apps_management_client.rb'
|
29
|
+
|
30
|
+
module Models
|
31
|
+
autoload :WsdlDefinition, '2016-06-01/generated/azure_mgmt_web/models/wsdl_definition.rb'
|
32
|
+
autoload :ApiResourceDefinitions, '2016-06-01/generated/azure_mgmt_web/models/api_resource_definitions.rb'
|
33
|
+
autoload :ApiResourceProperties, '2016-06-01/generated/azure_mgmt_web/models/api_resource_properties.rb'
|
34
|
+
autoload :ConsentLinkCollection, '2016-06-01/generated/azure_mgmt_web/models/consent_link_collection.rb'
|
35
|
+
autoload :ApiConnectionDefinitionProperties, '2016-06-01/generated/azure_mgmt_web/models/api_connection_definition_properties.rb'
|
36
|
+
autoload :ManagedApiDefinitionCollection, '2016-06-01/generated/azure_mgmt_web/models/managed_api_definition_collection.rb'
|
37
|
+
autoload :ApiConnectionDefinitionCollection, '2016-06-01/generated/azure_mgmt_web/models/api_connection_definition_collection.rb'
|
38
|
+
autoload :WsdlServiceCollection, '2016-06-01/generated/azure_mgmt_web/models/wsdl_service_collection.rb'
|
39
|
+
autoload :ApiOAuthSettings, '2016-06-01/generated/azure_mgmt_web/models/api_oauth_settings.rb'
|
40
|
+
autoload :ConsentLinkDefinition, '2016-06-01/generated/azure_mgmt_web/models/consent_link_definition.rb'
|
41
|
+
autoload :WsdlService, '2016-06-01/generated/azure_mgmt_web/models/wsdl_service.rb'
|
42
|
+
autoload :CustomApiPropertiesDefinition, '2016-06-01/generated/azure_mgmt_web/models/custom_api_properties_definition.rb'
|
43
|
+
autoload :ApiResourceGeneralInformation, '2016-06-01/generated/azure_mgmt_web/models/api_resource_general_information.rb'
|
44
|
+
autoload :ListConsentLinksDefinition, '2016-06-01/generated/azure_mgmt_web/models/list_consent_links_definition.rb'
|
45
|
+
autoload :ApiResourcePolicies, '2016-06-01/generated/azure_mgmt_web/models/api_resource_policies.rb'
|
46
|
+
autoload :CustomApiDefinitionCollection, '2016-06-01/generated/azure_mgmt_web/models/custom_api_definition_collection.rb'
|
47
|
+
autoload :ApiConnectionTestLink, '2016-06-01/generated/azure_mgmt_web/models/api_connection_test_link.rb'
|
48
|
+
autoload :ConsentLinkParameterDefinition, '2016-06-01/generated/azure_mgmt_web/models/consent_link_parameter_definition.rb'
|
49
|
+
autoload :ApiOAuthSettingsParameter, '2016-06-01/generated/azure_mgmt_web/models/api_oauth_settings_parameter.rb'
|
50
|
+
autoload :ConnectionGatewayInstallationDefinitionProperties, '2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition_properties.rb'
|
51
|
+
autoload :ApiResourceMetadata, '2016-06-01/generated/azure_mgmt_web/models/api_resource_metadata.rb'
|
52
|
+
autoload :ResourceDefinition, '2016-06-01/generated/azure_mgmt_web/models/resource_definition.rb'
|
53
|
+
autoload :ConnectionStatusDefinition, '2016-06-01/generated/azure_mgmt_web/models/connection_status_definition.rb'
|
54
|
+
autoload :ConnectionGatewayInstallationDefinitionCollection, '2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition_collection.rb'
|
55
|
+
autoload :ConnectionParameter, '2016-06-01/generated/azure_mgmt_web/models/connection_parameter.rb'
|
56
|
+
autoload :ConnectionGatewayDefinitionProperties, '2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition_properties.rb'
|
57
|
+
autoload :ConfirmConsentCodeDefinition, '2016-06-01/generated/azure_mgmt_web/models/confirm_consent_code_definition.rb'
|
58
|
+
autoload :ResourceReference, '2016-06-01/generated/azure_mgmt_web/models/resource_reference.rb'
|
59
|
+
autoload :ApiResourceBackendService, '2016-06-01/generated/azure_mgmt_web/models/api_resource_backend_service.rb'
|
60
|
+
autoload :ConnectionGatewayDefinitionCollection, '2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition_collection.rb'
|
61
|
+
autoload :ConnectionError, '2016-06-01/generated/azure_mgmt_web/models/connection_error.rb'
|
62
|
+
autoload :ApiReference, '2016-06-01/generated/azure_mgmt_web/models/api_reference.rb'
|
63
|
+
autoload :ApiConnectionDefinition, '2016-06-01/generated/azure_mgmt_web/models/api_connection_definition.rb'
|
64
|
+
autoload :ManagedApiDefinition, '2016-06-01/generated/azure_mgmt_web/models/managed_api_definition.rb'
|
65
|
+
autoload :CustomApiDefinition, '2016-06-01/generated/azure_mgmt_web/models/custom_api_definition.rb'
|
66
|
+
autoload :ConnectionGatewayReference, '2016-06-01/generated/azure_mgmt_web/models/connection_gateway_reference.rb'
|
67
|
+
autoload :ConnectionGatewayInstallationDefinition, '2016-06-01/generated/azure_mgmt_web/models/connection_gateway_installation_definition.rb'
|
68
|
+
autoload :ConnectionGatewayDefinition, '2016-06-01/generated/azure_mgmt_web/models/connection_gateway_definition.rb'
|
69
|
+
autoload :CustomApiReference, '2016-06-01/generated/azure_mgmt_web/models/custom_api_reference.rb'
|
70
|
+
autoload :ListConnectionKeysDefinition, '2016-06-01/generated/azure_mgmt_web/models/list_connection_keys_definition.rb'
|
71
|
+
autoload :ConnectionParameterType, '2016-06-01/generated/azure_mgmt_web/models/connection_parameter_type.rb'
|
72
|
+
autoload :ApiType, '2016-06-01/generated/azure_mgmt_web/models/api_type.rb'
|
73
|
+
autoload :WsdlImportMethod, '2016-06-01/generated/azure_mgmt_web/models/wsdl_import_method.rb'
|
74
|
+
autoload :LinkState, '2016-06-01/generated/azure_mgmt_web/models/link_state.rb'
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,240 @@
|
|
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::V2016_06_01
|
7
|
+
#
|
8
|
+
# ConnectionGatewayInstallations
|
9
|
+
#
|
10
|
+
class ConnectionGatewayInstallations
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the ConnectionGatewayInstallations class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [LogicAppsManagementClient] reference to the LogicAppsManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets a list of installed gateways that the user is an admin of
|
26
|
+
#
|
27
|
+
# Gets a list of installed gateways that the user is an admin of, in a specific
|
28
|
+
# subscription and at a certain location
|
29
|
+
#
|
30
|
+
# @param subscription_id [String] Subscription Id
|
31
|
+
# @param location [String] The location
|
32
|
+
# @param api_version [String] API Version
|
33
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
|
+
# will be added to the HTTP request.
|
35
|
+
#
|
36
|
+
# @return [ConnectionGatewayInstallationDefinitionCollection] operation
|
37
|
+
# results.
|
38
|
+
#
|
39
|
+
def list(subscription_id, location, api_version, custom_headers:nil)
|
40
|
+
response = list_async(subscription_id, location, api_version, custom_headers:custom_headers).value!
|
41
|
+
response.body unless response.nil?
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
# Gets a list of installed gateways that the user is an admin of
|
46
|
+
#
|
47
|
+
# Gets a list of installed gateways that the user is an admin of, in a specific
|
48
|
+
# subscription and at a certain location
|
49
|
+
#
|
50
|
+
# @param subscription_id [String] Subscription Id
|
51
|
+
# @param location [String] The location
|
52
|
+
# @param api_version [String] API Version
|
53
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
54
|
+
# will be added to the HTTP request.
|
55
|
+
#
|
56
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
57
|
+
#
|
58
|
+
def list_with_http_info(subscription_id, location, api_version, custom_headers:nil)
|
59
|
+
list_async(subscription_id, location, api_version, custom_headers:custom_headers).value!
|
60
|
+
end
|
61
|
+
|
62
|
+
#
|
63
|
+
# Gets a list of installed gateways that the user is an admin of
|
64
|
+
#
|
65
|
+
# Gets a list of installed gateways that the user is an admin of, in a specific
|
66
|
+
# subscription and at a certain location
|
67
|
+
#
|
68
|
+
# @param subscription_id [String] Subscription Id
|
69
|
+
# @param location [String] The location
|
70
|
+
# @param api_version [String] API Version
|
71
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
72
|
+
# to the HTTP request.
|
73
|
+
#
|
74
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
75
|
+
#
|
76
|
+
def list_async(subscription_id, location, api_version, custom_headers:nil)
|
77
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
78
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
79
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
80
|
+
|
81
|
+
|
82
|
+
request_headers = {}
|
83
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
84
|
+
|
85
|
+
# Set Headers
|
86
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
87
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
88
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/connectionGatewayInstallations'
|
89
|
+
|
90
|
+
request_url = @base_url || @client.base_url
|
91
|
+
|
92
|
+
options = {
|
93
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
94
|
+
path_params: {'subscriptionId' => subscription_id,'location' => location},
|
95
|
+
query_params: {'api-version' => api_version},
|
96
|
+
headers: request_headers.merge(custom_headers || {}),
|
97
|
+
base_url: request_url
|
98
|
+
}
|
99
|
+
promise = @client.make_request_async(:get, path_template, options)
|
100
|
+
|
101
|
+
promise = promise.then do |result|
|
102
|
+
http_response = result.response
|
103
|
+
status_code = http_response.status
|
104
|
+
response_content = http_response.body
|
105
|
+
unless status_code == 200
|
106
|
+
error_model = JSON.load(response_content)
|
107
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
108
|
+
end
|
109
|
+
|
110
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
111
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
112
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
113
|
+
# Deserialize Response
|
114
|
+
if status_code == 200
|
115
|
+
begin
|
116
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
117
|
+
result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ConnectionGatewayInstallationDefinitionCollection.mapper()
|
118
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
119
|
+
rescue Exception => e
|
120
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
result
|
125
|
+
end
|
126
|
+
|
127
|
+
promise.execute
|
128
|
+
end
|
129
|
+
|
130
|
+
#
|
131
|
+
# Gets an installed gateway that the user is an admin of
|
132
|
+
#
|
133
|
+
# Get a specific installed gateway that the user is an admin of, in a specific
|
134
|
+
# subscription and at a certain location
|
135
|
+
#
|
136
|
+
# @param subscription_id [String] Subscription Id
|
137
|
+
# @param location [String] The location
|
138
|
+
# @param gateway_id [String] Gateway ID
|
139
|
+
# @param api_version [String] API Version
|
140
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
141
|
+
# will be added to the HTTP request.
|
142
|
+
#
|
143
|
+
# @return [ConnectionGatewayInstallationDefinition] operation results.
|
144
|
+
#
|
145
|
+
def get(subscription_id, location, gateway_id, api_version, custom_headers:nil)
|
146
|
+
response = get_async(subscription_id, location, gateway_id, api_version, custom_headers:custom_headers).value!
|
147
|
+
response.body unless response.nil?
|
148
|
+
end
|
149
|
+
|
150
|
+
#
|
151
|
+
# Gets an installed gateway that the user is an admin of
|
152
|
+
#
|
153
|
+
# Get a specific installed gateway that the user is an admin of, in a specific
|
154
|
+
# subscription and at a certain location
|
155
|
+
#
|
156
|
+
# @param subscription_id [String] Subscription Id
|
157
|
+
# @param location [String] The location
|
158
|
+
# @param gateway_id [String] Gateway ID
|
159
|
+
# @param api_version [String] API Version
|
160
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
161
|
+
# will be added to the HTTP request.
|
162
|
+
#
|
163
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
164
|
+
#
|
165
|
+
def get_with_http_info(subscription_id, location, gateway_id, api_version, custom_headers:nil)
|
166
|
+
get_async(subscription_id, location, gateway_id, api_version, custom_headers:custom_headers).value!
|
167
|
+
end
|
168
|
+
|
169
|
+
#
|
170
|
+
# Gets an installed gateway that the user is an admin of
|
171
|
+
#
|
172
|
+
# Get a specific installed gateway that the user is an admin of, in a specific
|
173
|
+
# subscription and at a certain location
|
174
|
+
#
|
175
|
+
# @param subscription_id [String] Subscription Id
|
176
|
+
# @param location [String] The location
|
177
|
+
# @param gateway_id [String] Gateway ID
|
178
|
+
# @param api_version [String] API Version
|
179
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
180
|
+
# to the HTTP request.
|
181
|
+
#
|
182
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
183
|
+
#
|
184
|
+
def get_async(subscription_id, location, gateway_id, api_version, custom_headers:nil)
|
185
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
186
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
187
|
+
fail ArgumentError, 'gateway_id is nil' if gateway_id.nil?
|
188
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
189
|
+
|
190
|
+
|
191
|
+
request_headers = {}
|
192
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
193
|
+
|
194
|
+
# Set Headers
|
195
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
196
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
197
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/connectionGatewayInstallations/{gatewayId}'
|
198
|
+
|
199
|
+
request_url = @base_url || @client.base_url
|
200
|
+
|
201
|
+
options = {
|
202
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
203
|
+
path_params: {'subscriptionId' => subscription_id,'location' => location,'gatewayId' => gateway_id},
|
204
|
+
query_params: {'api-version' => api_version},
|
205
|
+
headers: request_headers.merge(custom_headers || {}),
|
206
|
+
base_url: request_url
|
207
|
+
}
|
208
|
+
promise = @client.make_request_async(:get, path_template, options)
|
209
|
+
|
210
|
+
promise = promise.then do |result|
|
211
|
+
http_response = result.response
|
212
|
+
status_code = http_response.status
|
213
|
+
response_content = http_response.body
|
214
|
+
unless status_code == 200
|
215
|
+
error_model = JSON.load(response_content)
|
216
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
217
|
+
end
|
218
|
+
|
219
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
220
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
221
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
222
|
+
# Deserialize Response
|
223
|
+
if status_code == 200
|
224
|
+
begin
|
225
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
226
|
+
result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ConnectionGatewayInstallationDefinition.mapper()
|
227
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
228
|
+
rescue Exception => e
|
229
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
result
|
234
|
+
end
|
235
|
+
|
236
|
+
promise.execute
|
237
|
+
end
|
238
|
+
|
239
|
+
end
|
240
|
+
end
|
@@ -0,0 +1,682 @@
|
|
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::V2016_06_01
|
7
|
+
#
|
8
|
+
# ConnectionGateways
|
9
|
+
#
|
10
|
+
class ConnectionGateways
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the ConnectionGateways class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [LogicAppsManagementClient] reference to the LogicAppsManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Lists all of the connection gateways
|
26
|
+
#
|
27
|
+
# Gets a list of gateways under a subscription
|
28
|
+
#
|
29
|
+
# @param subscription_id [String] Subscription Id
|
30
|
+
# @param api_version [String] API Version
|
31
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
|
+
# will be added to the HTTP request.
|
33
|
+
#
|
34
|
+
# @return [ConnectionGatewayDefinitionCollection] operation results.
|
35
|
+
#
|
36
|
+
def list(subscription_id, api_version, custom_headers:nil)
|
37
|
+
response = list_async(subscription_id, api_version, custom_headers:custom_headers).value!
|
38
|
+
response.body unless response.nil?
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Lists all of the connection gateways
|
43
|
+
#
|
44
|
+
# Gets a list of gateways under a subscription
|
45
|
+
#
|
46
|
+
# @param subscription_id [String] Subscription Id
|
47
|
+
# @param api_version [String] API Version
|
48
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
49
|
+
# will be added to the HTTP request.
|
50
|
+
#
|
51
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
|
+
#
|
53
|
+
def list_with_http_info(subscription_id, api_version, custom_headers:nil)
|
54
|
+
list_async(subscription_id, api_version, custom_headers:custom_headers).value!
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Lists all of the connection gateways
|
59
|
+
#
|
60
|
+
# Gets a list of gateways under a subscription
|
61
|
+
#
|
62
|
+
# @param subscription_id [String] Subscription Id
|
63
|
+
# @param api_version [String] API Version
|
64
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
65
|
+
# to the HTTP request.
|
66
|
+
#
|
67
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
|
+
#
|
69
|
+
def list_async(subscription_id, api_version, custom_headers:nil)
|
70
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
71
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
72
|
+
|
73
|
+
|
74
|
+
request_headers = {}
|
75
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
76
|
+
|
77
|
+
# Set Headers
|
78
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
79
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
80
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/connectionGateways'
|
81
|
+
|
82
|
+
request_url = @base_url || @client.base_url
|
83
|
+
|
84
|
+
options = {
|
85
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
86
|
+
path_params: {'subscriptionId' => subscription_id},
|
87
|
+
query_params: {'api-version' => api_version},
|
88
|
+
headers: request_headers.merge(custom_headers || {}),
|
89
|
+
base_url: request_url
|
90
|
+
}
|
91
|
+
promise = @client.make_request_async(:get, path_template, options)
|
92
|
+
|
93
|
+
promise = promise.then do |result|
|
94
|
+
http_response = result.response
|
95
|
+
status_code = http_response.status
|
96
|
+
response_content = http_response.body
|
97
|
+
unless status_code == 200
|
98
|
+
error_model = JSON.load(response_content)
|
99
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
100
|
+
end
|
101
|
+
|
102
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
103
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
104
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
105
|
+
# Deserialize Response
|
106
|
+
if status_code == 200
|
107
|
+
begin
|
108
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
109
|
+
result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ConnectionGatewayDefinitionCollection.mapper()
|
110
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
111
|
+
rescue Exception => e
|
112
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
result
|
117
|
+
end
|
118
|
+
|
119
|
+
promise.execute
|
120
|
+
end
|
121
|
+
|
122
|
+
#
|
123
|
+
# Lists all of the connection gateways
|
124
|
+
#
|
125
|
+
# Gets a list of gateways under a subscription and in a specific resource group
|
126
|
+
#
|
127
|
+
# @param subscription_id [String] Subscription Id
|
128
|
+
# @param resource_group_name [String] The resource group
|
129
|
+
# @param api_version [String] API Version
|
130
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
131
|
+
# will be added to the HTTP request.
|
132
|
+
#
|
133
|
+
# @return [ConnectionGatewayDefinitionCollection] operation results.
|
134
|
+
#
|
135
|
+
def list_by_resource_group(subscription_id, resource_group_name, api_version, custom_headers:nil)
|
136
|
+
response = list_by_resource_group_async(subscription_id, resource_group_name, api_version, custom_headers:custom_headers).value!
|
137
|
+
response.body unless response.nil?
|
138
|
+
end
|
139
|
+
|
140
|
+
#
|
141
|
+
# Lists all of the connection gateways
|
142
|
+
#
|
143
|
+
# Gets a list of gateways under a subscription and in a specific resource group
|
144
|
+
#
|
145
|
+
# @param subscription_id [String] Subscription Id
|
146
|
+
# @param resource_group_name [String] The resource group
|
147
|
+
# @param api_version [String] API Version
|
148
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
149
|
+
# will be added to the HTTP request.
|
150
|
+
#
|
151
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
152
|
+
#
|
153
|
+
def list_by_resource_group_with_http_info(subscription_id, resource_group_name, api_version, custom_headers:nil)
|
154
|
+
list_by_resource_group_async(subscription_id, resource_group_name, api_version, custom_headers:custom_headers).value!
|
155
|
+
end
|
156
|
+
|
157
|
+
#
|
158
|
+
# Lists all of the connection gateways
|
159
|
+
#
|
160
|
+
# Gets a list of gateways under a subscription and in a specific resource group
|
161
|
+
#
|
162
|
+
# @param subscription_id [String] Subscription Id
|
163
|
+
# @param resource_group_name [String] The resource group
|
164
|
+
# @param api_version [String] API Version
|
165
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
166
|
+
# to the HTTP request.
|
167
|
+
#
|
168
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
169
|
+
#
|
170
|
+
def list_by_resource_group_async(subscription_id, resource_group_name, api_version, custom_headers:nil)
|
171
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
172
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
173
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
174
|
+
|
175
|
+
|
176
|
+
request_headers = {}
|
177
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
178
|
+
|
179
|
+
# Set Headers
|
180
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
181
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
182
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/connectionGateways'
|
183
|
+
|
184
|
+
request_url = @base_url || @client.base_url
|
185
|
+
|
186
|
+
options = {
|
187
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
188
|
+
path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name},
|
189
|
+
query_params: {'api-version' => api_version},
|
190
|
+
headers: request_headers.merge(custom_headers || {}),
|
191
|
+
base_url: request_url
|
192
|
+
}
|
193
|
+
promise = @client.make_request_async(:get, path_template, options)
|
194
|
+
|
195
|
+
promise = promise.then do |result|
|
196
|
+
http_response = result.response
|
197
|
+
status_code = http_response.status
|
198
|
+
response_content = http_response.body
|
199
|
+
unless status_code == 200
|
200
|
+
error_model = JSON.load(response_content)
|
201
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
202
|
+
end
|
203
|
+
|
204
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
205
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
206
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
207
|
+
# Deserialize Response
|
208
|
+
if status_code == 200
|
209
|
+
begin
|
210
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
211
|
+
result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ConnectionGatewayDefinitionCollection.mapper()
|
212
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
213
|
+
rescue Exception => e
|
214
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
result
|
219
|
+
end
|
220
|
+
|
221
|
+
promise.execute
|
222
|
+
end
|
223
|
+
|
224
|
+
#
|
225
|
+
# Gets a specific gateway
|
226
|
+
#
|
227
|
+
# Gets a specific gateway under a subscription and in a specific resource group
|
228
|
+
#
|
229
|
+
# @param subscription_id [String] Subscription Id
|
230
|
+
# @param resource_group_name [String] The resource group
|
231
|
+
# @param connection_gateway_name [String] The connection gateway name
|
232
|
+
# @param api_version [String] API Version
|
233
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
234
|
+
# will be added to the HTTP request.
|
235
|
+
#
|
236
|
+
# @return [ConnectionGatewayDefinition] operation results.
|
237
|
+
#
|
238
|
+
def get(subscription_id, resource_group_name, connection_gateway_name, api_version, custom_headers:nil)
|
239
|
+
response = get_async(subscription_id, resource_group_name, connection_gateway_name, api_version, custom_headers:custom_headers).value!
|
240
|
+
response.body unless response.nil?
|
241
|
+
end
|
242
|
+
|
243
|
+
#
|
244
|
+
# Gets a specific gateway
|
245
|
+
#
|
246
|
+
# Gets a specific gateway under a subscription and in a specific resource group
|
247
|
+
#
|
248
|
+
# @param subscription_id [String] Subscription Id
|
249
|
+
# @param resource_group_name [String] The resource group
|
250
|
+
# @param connection_gateway_name [String] The connection gateway name
|
251
|
+
# @param api_version [String] API Version
|
252
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
253
|
+
# will be added to the HTTP request.
|
254
|
+
#
|
255
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
256
|
+
#
|
257
|
+
def get_with_http_info(subscription_id, resource_group_name, connection_gateway_name, api_version, custom_headers:nil)
|
258
|
+
get_async(subscription_id, resource_group_name, connection_gateway_name, api_version, custom_headers:custom_headers).value!
|
259
|
+
end
|
260
|
+
|
261
|
+
#
|
262
|
+
# Gets a specific gateway
|
263
|
+
#
|
264
|
+
# Gets a specific gateway under a subscription and in a specific resource group
|
265
|
+
#
|
266
|
+
# @param subscription_id [String] Subscription Id
|
267
|
+
# @param resource_group_name [String] The resource group
|
268
|
+
# @param connection_gateway_name [String] The connection gateway name
|
269
|
+
# @param api_version [String] API Version
|
270
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
271
|
+
# to the HTTP request.
|
272
|
+
#
|
273
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
274
|
+
#
|
275
|
+
def get_async(subscription_id, resource_group_name, connection_gateway_name, api_version, custom_headers:nil)
|
276
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
277
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
278
|
+
fail ArgumentError, 'connection_gateway_name is nil' if connection_gateway_name.nil?
|
279
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
280
|
+
|
281
|
+
|
282
|
+
request_headers = {}
|
283
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
284
|
+
|
285
|
+
# Set Headers
|
286
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
287
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
288
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/connectionGateways/{connectionGatewayName}'
|
289
|
+
|
290
|
+
request_url = @base_url || @client.base_url
|
291
|
+
|
292
|
+
options = {
|
293
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
294
|
+
path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'connectionGatewayName' => connection_gateway_name},
|
295
|
+
query_params: {'api-version' => api_version},
|
296
|
+
headers: request_headers.merge(custom_headers || {}),
|
297
|
+
base_url: request_url
|
298
|
+
}
|
299
|
+
promise = @client.make_request_async(:get, path_template, options)
|
300
|
+
|
301
|
+
promise = promise.then do |result|
|
302
|
+
http_response = result.response
|
303
|
+
status_code = http_response.status
|
304
|
+
response_content = http_response.body
|
305
|
+
unless status_code == 200
|
306
|
+
error_model = JSON.load(response_content)
|
307
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
308
|
+
end
|
309
|
+
|
310
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
311
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
312
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
313
|
+
# Deserialize Response
|
314
|
+
if status_code == 200
|
315
|
+
begin
|
316
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
317
|
+
result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ConnectionGatewayDefinition.mapper()
|
318
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
319
|
+
rescue Exception => e
|
320
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
324
|
+
result
|
325
|
+
end
|
326
|
+
|
327
|
+
promise.execute
|
328
|
+
end
|
329
|
+
|
330
|
+
#
|
331
|
+
# Replaces a specific gateway
|
332
|
+
#
|
333
|
+
# Creates or updates a specific gateway for under a subscription and in a
|
334
|
+
# specific resource group
|
335
|
+
#
|
336
|
+
# @param subscription_id [String] Subscription Id
|
337
|
+
# @param resource_group_name [String] The resource group
|
338
|
+
# @param connection_gateway_name [String] The connection gateway name
|
339
|
+
# @param connection_gateway [ConnectionGatewayDefinition] The connection
|
340
|
+
# gateway
|
341
|
+
# @param api_version [String] API Version
|
342
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
343
|
+
# will be added to the HTTP request.
|
344
|
+
#
|
345
|
+
# @return [ConnectionGatewayDefinition] operation results.
|
346
|
+
#
|
347
|
+
def create_or_update(subscription_id, resource_group_name, connection_gateway_name, connection_gateway, api_version, custom_headers:nil)
|
348
|
+
response = create_or_update_async(subscription_id, resource_group_name, connection_gateway_name, connection_gateway, api_version, custom_headers:custom_headers).value!
|
349
|
+
response.body unless response.nil?
|
350
|
+
end
|
351
|
+
|
352
|
+
#
|
353
|
+
# Replaces a specific gateway
|
354
|
+
#
|
355
|
+
# Creates or updates a specific gateway for under a subscription and in a
|
356
|
+
# specific resource group
|
357
|
+
#
|
358
|
+
# @param subscription_id [String] Subscription Id
|
359
|
+
# @param resource_group_name [String] The resource group
|
360
|
+
# @param connection_gateway_name [String] The connection gateway name
|
361
|
+
# @param connection_gateway [ConnectionGatewayDefinition] The connection
|
362
|
+
# gateway
|
363
|
+
# @param api_version [String] API Version
|
364
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
365
|
+
# will be added to the HTTP request.
|
366
|
+
#
|
367
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
368
|
+
#
|
369
|
+
def create_or_update_with_http_info(subscription_id, resource_group_name, connection_gateway_name, connection_gateway, api_version, custom_headers:nil)
|
370
|
+
create_or_update_async(subscription_id, resource_group_name, connection_gateway_name, connection_gateway, api_version, custom_headers:custom_headers).value!
|
371
|
+
end
|
372
|
+
|
373
|
+
#
|
374
|
+
# Replaces a specific gateway
|
375
|
+
#
|
376
|
+
# Creates or updates a specific gateway for under a subscription and in a
|
377
|
+
# specific resource group
|
378
|
+
#
|
379
|
+
# @param subscription_id [String] Subscription Id
|
380
|
+
# @param resource_group_name [String] The resource group
|
381
|
+
# @param connection_gateway_name [String] The connection gateway name
|
382
|
+
# @param connection_gateway [ConnectionGatewayDefinition] The connection
|
383
|
+
# gateway
|
384
|
+
# @param api_version [String] API Version
|
385
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
386
|
+
# to the HTTP request.
|
387
|
+
#
|
388
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
389
|
+
#
|
390
|
+
def create_or_update_async(subscription_id, resource_group_name, connection_gateway_name, connection_gateway, api_version, custom_headers:nil)
|
391
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
392
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
393
|
+
fail ArgumentError, 'connection_gateway_name is nil' if connection_gateway_name.nil?
|
394
|
+
fail ArgumentError, 'connection_gateway is nil' if connection_gateway.nil?
|
395
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
396
|
+
|
397
|
+
|
398
|
+
request_headers = {}
|
399
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
400
|
+
|
401
|
+
# Set Headers
|
402
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
403
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
404
|
+
|
405
|
+
# Serialize Request
|
406
|
+
request_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ConnectionGatewayDefinition.mapper()
|
407
|
+
request_content = @client.serialize(request_mapper, connection_gateway)
|
408
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
409
|
+
|
410
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/connectionGateways/{connectionGatewayName}'
|
411
|
+
|
412
|
+
request_url = @base_url || @client.base_url
|
413
|
+
|
414
|
+
options = {
|
415
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
416
|
+
path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'connectionGatewayName' => connection_gateway_name},
|
417
|
+
query_params: {'api-version' => api_version},
|
418
|
+
body: request_content,
|
419
|
+
headers: request_headers.merge(custom_headers || {}),
|
420
|
+
base_url: request_url
|
421
|
+
}
|
422
|
+
promise = @client.make_request_async(:put, path_template, options)
|
423
|
+
|
424
|
+
promise = promise.then do |result|
|
425
|
+
http_response = result.response
|
426
|
+
status_code = http_response.status
|
427
|
+
response_content = http_response.body
|
428
|
+
unless status_code == 200 || status_code == 201
|
429
|
+
error_model = JSON.load(response_content)
|
430
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
431
|
+
end
|
432
|
+
|
433
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
434
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
435
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
436
|
+
# Deserialize Response
|
437
|
+
if status_code == 200
|
438
|
+
begin
|
439
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
440
|
+
result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ConnectionGatewayDefinition.mapper()
|
441
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
442
|
+
rescue Exception => e
|
443
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
444
|
+
end
|
445
|
+
end
|
446
|
+
# Deserialize Response
|
447
|
+
if status_code == 201
|
448
|
+
begin
|
449
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
450
|
+
result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ConnectionGatewayDefinition.mapper()
|
451
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
452
|
+
rescue Exception => e
|
453
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
454
|
+
end
|
455
|
+
end
|
456
|
+
|
457
|
+
result
|
458
|
+
end
|
459
|
+
|
460
|
+
promise.execute
|
461
|
+
end
|
462
|
+
|
463
|
+
#
|
464
|
+
# Updates a specific gateway
|
465
|
+
#
|
466
|
+
# Updates a connection gateway's tags
|
467
|
+
#
|
468
|
+
# @param subscription_id [String] Subscription Id
|
469
|
+
# @param resource_group_name [String] The resource group
|
470
|
+
# @param connection_gateway_name [String] The connection gateway name
|
471
|
+
# @param connection_gateway [ConnectionGatewayDefinition] The connection
|
472
|
+
# gateway
|
473
|
+
# @param api_version [String] API Version
|
474
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
475
|
+
# will be added to the HTTP request.
|
476
|
+
#
|
477
|
+
# @return [ConnectionGatewayDefinition] operation results.
|
478
|
+
#
|
479
|
+
def update(subscription_id, resource_group_name, connection_gateway_name, connection_gateway, api_version, custom_headers:nil)
|
480
|
+
response = update_async(subscription_id, resource_group_name, connection_gateway_name, connection_gateway, api_version, custom_headers:custom_headers).value!
|
481
|
+
response.body unless response.nil?
|
482
|
+
end
|
483
|
+
|
484
|
+
#
|
485
|
+
# Updates a specific gateway
|
486
|
+
#
|
487
|
+
# Updates a connection gateway's tags
|
488
|
+
#
|
489
|
+
# @param subscription_id [String] Subscription Id
|
490
|
+
# @param resource_group_name [String] The resource group
|
491
|
+
# @param connection_gateway_name [String] The connection gateway name
|
492
|
+
# @param connection_gateway [ConnectionGatewayDefinition] The connection
|
493
|
+
# gateway
|
494
|
+
# @param api_version [String] API Version
|
495
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
496
|
+
# will be added to the HTTP request.
|
497
|
+
#
|
498
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
499
|
+
#
|
500
|
+
def update_with_http_info(subscription_id, resource_group_name, connection_gateway_name, connection_gateway, api_version, custom_headers:nil)
|
501
|
+
update_async(subscription_id, resource_group_name, connection_gateway_name, connection_gateway, api_version, custom_headers:custom_headers).value!
|
502
|
+
end
|
503
|
+
|
504
|
+
#
|
505
|
+
# Updates a specific gateway
|
506
|
+
#
|
507
|
+
# Updates a connection gateway's tags
|
508
|
+
#
|
509
|
+
# @param subscription_id [String] Subscription Id
|
510
|
+
# @param resource_group_name [String] The resource group
|
511
|
+
# @param connection_gateway_name [String] The connection gateway name
|
512
|
+
# @param connection_gateway [ConnectionGatewayDefinition] The connection
|
513
|
+
# gateway
|
514
|
+
# @param api_version [String] API Version
|
515
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
516
|
+
# to the HTTP request.
|
517
|
+
#
|
518
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
519
|
+
#
|
520
|
+
def update_async(subscription_id, resource_group_name, connection_gateway_name, connection_gateway, api_version, custom_headers:nil)
|
521
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
522
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
523
|
+
fail ArgumentError, 'connection_gateway_name is nil' if connection_gateway_name.nil?
|
524
|
+
fail ArgumentError, 'connection_gateway is nil' if connection_gateway.nil?
|
525
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
526
|
+
|
527
|
+
|
528
|
+
request_headers = {}
|
529
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
530
|
+
|
531
|
+
# Set Headers
|
532
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
533
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
534
|
+
|
535
|
+
# Serialize Request
|
536
|
+
request_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ConnectionGatewayDefinition.mapper()
|
537
|
+
request_content = @client.serialize(request_mapper, connection_gateway)
|
538
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
539
|
+
|
540
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/connectionGateways/{connectionGatewayName}'
|
541
|
+
|
542
|
+
request_url = @base_url || @client.base_url
|
543
|
+
|
544
|
+
options = {
|
545
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
546
|
+
path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'connectionGatewayName' => connection_gateway_name},
|
547
|
+
query_params: {'api-version' => api_version},
|
548
|
+
body: request_content,
|
549
|
+
headers: request_headers.merge(custom_headers || {}),
|
550
|
+
base_url: request_url
|
551
|
+
}
|
552
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
553
|
+
|
554
|
+
promise = promise.then do |result|
|
555
|
+
http_response = result.response
|
556
|
+
status_code = http_response.status
|
557
|
+
response_content = http_response.body
|
558
|
+
unless status_code == 200
|
559
|
+
error_model = JSON.load(response_content)
|
560
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
561
|
+
end
|
562
|
+
|
563
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
564
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
565
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
566
|
+
# Deserialize Response
|
567
|
+
if status_code == 200
|
568
|
+
begin
|
569
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
570
|
+
result_mapper = Azure::Web::Mgmt::V2016_06_01::Models::ConnectionGatewayDefinition.mapper()
|
571
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
572
|
+
rescue Exception => e
|
573
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
574
|
+
end
|
575
|
+
end
|
576
|
+
|
577
|
+
result
|
578
|
+
end
|
579
|
+
|
580
|
+
promise.execute
|
581
|
+
end
|
582
|
+
|
583
|
+
#
|
584
|
+
# Deletes a specific gateway
|
585
|
+
#
|
586
|
+
# Deletes a specific gateway for under a subscription and in a specific
|
587
|
+
# resource group
|
588
|
+
#
|
589
|
+
# @param subscription_id [String] Subscription Id
|
590
|
+
# @param resource_group_name [String] The resource group
|
591
|
+
# @param connection_gateway_name [String] The connection gateway name
|
592
|
+
# @param api_version [String] API Version
|
593
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
594
|
+
# will be added to the HTTP request.
|
595
|
+
#
|
596
|
+
#
|
597
|
+
def delete(subscription_id, resource_group_name, connection_gateway_name, api_version, custom_headers:nil)
|
598
|
+
response = delete_async(subscription_id, resource_group_name, connection_gateway_name, api_version, custom_headers:custom_headers).value!
|
599
|
+
nil
|
600
|
+
end
|
601
|
+
|
602
|
+
#
|
603
|
+
# Deletes a specific gateway
|
604
|
+
#
|
605
|
+
# Deletes a specific gateway for under a subscription and in a specific
|
606
|
+
# resource group
|
607
|
+
#
|
608
|
+
# @param subscription_id [String] Subscription Id
|
609
|
+
# @param resource_group_name [String] The resource group
|
610
|
+
# @param connection_gateway_name [String] The connection gateway name
|
611
|
+
# @param api_version [String] API Version
|
612
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
613
|
+
# will be added to the HTTP request.
|
614
|
+
#
|
615
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
616
|
+
#
|
617
|
+
def delete_with_http_info(subscription_id, resource_group_name, connection_gateway_name, api_version, custom_headers:nil)
|
618
|
+
delete_async(subscription_id, resource_group_name, connection_gateway_name, api_version, custom_headers:custom_headers).value!
|
619
|
+
end
|
620
|
+
|
621
|
+
#
|
622
|
+
# Deletes a specific gateway
|
623
|
+
#
|
624
|
+
# Deletes a specific gateway for under a subscription and in a specific
|
625
|
+
# resource group
|
626
|
+
#
|
627
|
+
# @param subscription_id [String] Subscription Id
|
628
|
+
# @param resource_group_name [String] The resource group
|
629
|
+
# @param connection_gateway_name [String] The connection gateway name
|
630
|
+
# @param api_version [String] API Version
|
631
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
632
|
+
# to the HTTP request.
|
633
|
+
#
|
634
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
635
|
+
#
|
636
|
+
def delete_async(subscription_id, resource_group_name, connection_gateway_name, api_version, custom_headers:nil)
|
637
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
638
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
639
|
+
fail ArgumentError, 'connection_gateway_name is nil' if connection_gateway_name.nil?
|
640
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
641
|
+
|
642
|
+
|
643
|
+
request_headers = {}
|
644
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
645
|
+
|
646
|
+
# Set Headers
|
647
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
648
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
649
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/connectionGateways/{connectionGatewayName}'
|
650
|
+
|
651
|
+
request_url = @base_url || @client.base_url
|
652
|
+
|
653
|
+
options = {
|
654
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
655
|
+
path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'connectionGatewayName' => connection_gateway_name},
|
656
|
+
query_params: {'api-version' => api_version},
|
657
|
+
headers: request_headers.merge(custom_headers || {}),
|
658
|
+
base_url: request_url
|
659
|
+
}
|
660
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
661
|
+
|
662
|
+
promise = promise.then do |result|
|
663
|
+
http_response = result.response
|
664
|
+
status_code = http_response.status
|
665
|
+
response_content = http_response.body
|
666
|
+
unless status_code == 200 || status_code == 204
|
667
|
+
error_model = JSON.load(response_content)
|
668
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
669
|
+
end
|
670
|
+
|
671
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
672
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
673
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
674
|
+
|
675
|
+
result
|
676
|
+
end
|
677
|
+
|
678
|
+
promise.execute
|
679
|
+
end
|
680
|
+
|
681
|
+
end
|
682
|
+
end
|